Showing posts with label scripts. Show all posts
Showing posts with label scripts. Show all posts

Thursday, March 22, 2007

Blender Library

Blender Library is a Python script for Blender intended to provide an easy way to store, manage and retrieve frecuently used items; such as materials, textures, objects, etc.

It also has built in import and export options to help share your items with the rest of the user comunity.

Since the script is merely and interface built on top of the current Blender appending system (SHIFT F1) it will be most likely compatible with all future enhancements in upcoming Blender releases. As an example the material library was coded before the new Material Nodes and without changes in the script it can now store materials with nodes.



To install, just place the script and the image in your Blender scripts folder. It register itself in the Object Scripts menu. The best way to run it is to split a Space side by side, switch it to Scripts and choose Blender Library from SCRIPTS -> OBJECT in the space header.

The first time you run it, it will ask you to choose a folder to store library content. Choose a folder and the library directory will be created there. If you choose C:\ for example, library will be C:\BlenderLib\
If you loose your settings or want to reuse an existing library in other blender installation, just choose the existing library folder in the previous step and the script will recognize it, gainning you access to all your previous items.

There are separated libraries for each type of items you can store. Currently there are libraries for:
Actions, Armatures, Cameras, IPOs, Lamps, Lattices, Logic Bricks, Materials, Objects,
Particle Settings, Paths, Poses, Scenes, Textures, Worlds.

Lamp library and Object library can store several lamps or objects in the same library item. This mean you can store lamps sets to properly light a scene or to store a full character made of diferent meshes and curves with its corresponding armature. The rest of the libraries can only store a single Blender datablock.

Despite this, when you add an item to the library it will also add all the stuff is related to it. If you add a object, its materials, textures, ipos, etc are also added. If you add a material, the textures it uses are also added.

Version 1.3.4 Download

Read more...

Monday, March 19, 2007

Lamp Widgets

This script displays information about Lamps right on the 3dView.
Several lamps with their colors displayed on 3dView

Dot color is Lamp's color.
Dot size is Lamp's energy.
Square on the floor shows Lamp's distance.
Black triangle on top shows up if the lamp cast shadows.

Just place the script in your Blender scripts folder. It registers itself in the OBJECT menu.
Run the script from the object scripts menu and it will load in the current .blend. Since it´s a SpaceHandler script you have to enable for each 3dView you want it to be active.

Version 1.1 Download

Read more...

Autoname Textures

This little script will help you to get your .blend files a bit more tidy ;)
After creating a new materil I usually forgot to name the textures (Yeah I´m lazy, but I´ve seen lots of materials with this issue).
The script does this for you. Notice the change in the picture below. After running the script all textures have a name made of the first six letters of the material name, plus a dot, plus the texture type.


Just place the script in your Blender scripts folder. It registers itself in the Material scripts menu.

When run, the script will prompt you to choose a material. Choose one and if the material have textures they will be renamed MATERIALNAME.TEXTURETYPE, using the first six letters of the material name; you can tweak these names now if you want to.

I coded this mainly for my Blender Library script. It will be more polite to properly name stuff before sharing with others..

Version 1.1 Download

Read more...

Blend Information

A panel with information about the currently opened .blend. It shows detailed info about the current scene plus info on the amount of datablocks the .blend contains.



It´s usefull when openning .blends you get from other people or to quickly have a glimpse of whats on and old .blend.
Just place the script in your Blender scripts folder. It registers itself in the HELP menu, for quick access.

Version 1.0 Download

Read more...

Saturday, March 17, 2007

3D Cursor Menu

This SpaceHandler script adds a right-click menu to the 3D Cursor, with some useful operations, including resetting the cursor's position to the center of the space and an option to spin the 3d View for display purposes.


Run the script from the object scripts menu and it will load in the current .blend, then just make it active for each 3d View you want.

Right click on the 3D Cursor and the menu will show up.



Please note this needs the Enable Script Links option pressed.

Version 1.1 Download

Read more...

Image Information

This script displays information about the currently displayed image in the UV/Image Space (Window). The information it provides is already available from Blender, but it´s scattered in different places.

The script displays all this info (and some extra one) in a pop up menu. Check the screenshot below:


The menu shows:
The image object name (on the title of the menu).
The file name of the image.
The folder where the image is located.
Width and height in pixels.
Image depth.
Image file size in Kilobytes.
Image type.

Have an image displayed in the UV/Image Window and then from the UVs menu, run the script. The menu with info will be displayed, that´s it.

If you running Windows, you get some extra options (if you have a full Python installation). By clicking in the Image File name row on the menu, a standard Windows Open Dialog will launch, when you can choose to load a new image to replace the current one. If you click on the Image location row in the menu, the dialog will open at that location and will allow you to choose new image(s) to load (without replacing the current one).

Version 1.1 Download

Read more...