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

21 comments:

blend3d said...

Hello Mariano,
Your script works beautifully with Blender 2.43. I was very happy to see you back on the web with this update. I look forward to your future projects.
Thanks for all your hard work,
David W.(aka Blend3d)

Pepijn said...

Hi There, I really like the idea of your library sadly it doesnot seem to work.. the console tells me:
AttributeError: "Blender RenderData" object has no atribute "enableUnifiedRenderer"

Am I doing somthing wrong?

MaeBe said...

I've encountered the same error.
Just open the file blender_library.py in the text editor, search for the string rc.enableUnifiedRenderer(1) and comment it out with the # symbol. It fixes everything

t|om said...

Hi Mariano,
are you still developing this nice library script? In 2.44 I still have some bugs. Do you plan an new version? If yes, when? *g

TOTAL ITEMS IN Material: 0
Blender.Scene.getCurrent() is deprecated,
use Blender.Scene.GetCurrent() instead.
scene.link(ob) deprecated!
use scene.objects.link(ob) instead
Traceback (most recent call last):
File "string", line 784, in button_event
File "string", line 1836, in save_mat
File "string", line 1676, in prepare_scene
AttributeError: 'Blender RenderData' object has no attribute 'enableUnifiedRende
rer'

les said...

I have this working very nicely in 2.45 with Python 2.5. I have been through nearly every materials tutorial I could find, and although I've made some progress, I am still a long way from getting my brain wrapped around the Blender materials system. Having a "materials library" will get me past some roadblocks on a few projects. What a great idea. I hope to see it go forward and eventually become integrated somehow into the main Blender code. THANK YOU so much!

dawid said...

File "< string >", line 1, in < module >
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\blender_lib
rary.py", line 138
SyntaxError: Non-ASCII character '\xb4' in file C:\Program Files\Blender Foundat
ion\Blender\.blender\scripts\blender_library.py on line 138, but no encoding dec
lared; see http://www.python.org/peps/pep-0263.html for details

Can anyone help me with this?
tibicen(at)tlen.pl

Anonymous said...

i fixed the syntax errors and commented a line 1676 out which caused problems.

http://www.megaupload.com/?d=8CAD5YWW

is this project dead or will we get an official fix?

aiyipianni said...

Aston Villa rode their luck at Hull City where an 88-minute own goal from Kamil Zayatte saw them leapfrog three points clear of Arsenal and into fourth place in the Premier League wow gold with a 1-0 win.

Villa had to survive Hull penalty wotlk gold appeals for a handball against Ashley Young in time added on, television replays showing that referee Steve Bennett wow gold correctly rejected the claims after consulting a linesman.

Bennett had been involved in controversy after just five minutes when American goalkeeper Brad Friedel looked to have handed Hull the initiative and threaten Villa's return to the Champions League qualifying wow gold zone.

Friedel spilled wow gold the ball under pressure from Nick Barmby and stand-in right-back Nigel Reo-Coker turned it into his own net as he attempted to wow gold clear.

But Bennett cut short wow gold celebrations at the KC Stadium -- and let Friedel off the hook -- when he ruled out the score for an wow wotlkapparent infringement by Barmby.

Zayatte's intervention from a Young cross bound for wow gold Gabriel Agbonlahor then saw Villa leapfrog Arsenal and draw level with Manchester United on 38 points -- seven adrift of leaders Liverpool and four wow gold behind Chelsea.

Stung by an on-pitch dressing down wow gold by manager Phil Brown at Manchester City last week, Hull showed five changes and a vastly improved performance.

Promoted Hull were looking for only their second win in 11 games while wow gold Villa arrived unbeaten in seven and it looked to be heading for a goalless draw when the home side suffered a cruel late blow.

aiyipianni said...

South Africa inflicted the world of warcraft gold first home series defeat on Australia in almost 16 wow powerleveling years as they wrapped up a nine-wicket win over the world's number one ranked world of warcraft gold Test nation in Melbourne on Tuesday.

Captain Graeme Smith wow power leveling hit a fluent 75 as his side successfully passed a world of warcraft gold modest victory target of 183 on the final day at the MCG to take an wow powerleveling unassailable 2-0 lead.

It was the South dofus kamas African's first-ever Test series triumph in Australia and dofus kamas victory in the third and final match in Sydney will see them leapfrog the home side at the top of the global Lord of the Rings Online Gold rankings.

Hashim Amla LOTRO Gold (30 not out) scored the winning fly for fun penya runs shortly after lunch as South Africa flyff penya became the first team to overcome Australia at home Final Fantasy XI gilsince the West Indies in 1992-93.

South Africa ffxi gil were never under any pressure in eq2 plat their run chase and did not lose eq2 gold a wicket until just before lunch when the inspirational Smith Lord of the Rings Online Gold was trapped leg before wicket by Nathan LOTRO Gold Hauritz.

Smith had flyff penya dominated a 121-run opening stand flyff money with Neil McKenzie, hitting ffxi gil 10 boundaries.

McKenzie struggled to buy ffxi gil a half century and survived strong eq2 plat lbw shouts from Brett Lee, eq2 gold who was bowling despite an injured foot that will Lord of the Rings Online gold keep him out of the Sydney Test.

South Africa's LOTRO gold victory was set up by a brilliant maiden Test century fly for fun penya from JP Duminy, who shared a stunning flyff penya 180-run ninth wicket partnership with pace bowler Dale Final Fantasy XI gil Steyn.

It gave the tourists ffxi gil a priceless 65-run lead on first innings before man of eq2 plat the match Steyn worked his magic with the ball as Australia were eq2 gold bowled out on the fourth day for 247 in their second innings.

The pugnacious Smith was virtually runescape money lost for words in his victory speech.

"It has been such a special moment runescape gold for all of us, it has been an incredible team effort," he said.

"I have been smiling non-stop wow po since we hit the winning runs.

"To be 2-0 up after this game was something wow or we only dreamt of."

South Africa won the first Test in Perth from an unlikely position, chasing 414 for victory for the loss of only four wickets.

Pedro Lara said...

Hi Mariano:

My name is Pedro Lara, I work as a vfx compositor for films, and occasionally I do my own CG for other VFX projects I do on my own. I'm interested on the potential of blender as a tool for CG / compositing for visual effects.
Have you crossed anyone interested on the same subjects? There are a few specific needs for VFX that could be implemented as plugins or even features for future versions I would like to discuss.
Any help/glint will be welcome.

Bruce Westfall said...

Looks like it's time to clean out the comment list! Spam, spam everywhere...

Nice looking script. Haven't tried it yet, but looking forward to giving it a shot.

crazyloko said...

buy products wholesaleThis phenomenom is typified by China Wholesalersthe rise ofbusiness. Incredible range of products available with China Wholesale “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and China Wholesale will skyroket your profits.china wholesale productsbuy china wholesalewholesale chinawholesale productsbuy products

chaoyang said...

Your blog is wonderful, I like it very much, thank you!
By the way, do you like polo shirts, which are very chic, especially the polo t shirts, I love them very much. I also like playing tennis rackets, it can keep healthy, what do you like to do?
We are the outlet of polo t shirts women, polo t shirts on sale, polo t shirts for women, polo shirts on sale, these products are best-seller in our store online.besides we also sell polo shirts men, men's polo shirt, men polo shirt, mens polo shirts, mens polo shirt and cheap polo shirts, discount polo shirts, men's polo shirts, women's polo shirts We are also the outlet of cheap tennis racket, discount tennis racket and the main product is prince tennis racquet, head tennis rackets, wilson tennis racket, babolat tennis racquet. So if you love sports, you should not miss our store, we can meet what you want, and you can find many surprise in our store

mcmature said...

Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming.
big boobs

Anonymous said...

I'm testing this script with Blender 2.48b on AmigaOS 4, and had to make a few changes, like:
'import os' instead of 'import posix' and removed the 'os=' and 'path=' as importing nt or posix both fail here.

I got the non-ASCII char error as well, and it was just a matter of replacing all the apostrophes: ' (char 180) with the one printed by the keyboard (char 39)

Also commented out line 1676 and it runs fine now.

Minor issues but the script points to obsolete websites.

Microsoft Office 2007 said...

The Tax Return Crack-Up<3>
Granted, there are usuallyMicrosoft Office 2010write-ups when presidential contenders make their tax returns available, but the coverage falls far short of the Office 2010
full court press (pardon the pun) that the Clintons have received. What's Microsoft Office 2007different now?Office 2007One possibility is that most upper middle class Democrats, and therefore most Microsoft OfficeOffice 2007 keyeditors and reporters of our nation's big papers as well as Office 2007 downloadtelevision producers, are Obama supporters who think that Hillary should hurry up Office 2007 Professionaland drop out of the race already.Microsoft outlook
Microsoft outlook 2010Whom elite liberals are pulling for really does shape political coverage in ways

Microsoft Office 2007 said...

The Tax Return Crack-Up<3>
Granted, there are usuallyMicrosoft Office 2010write-ups when presidential contenders make their tax returns available, but the coverage falls far short of the Office 2010
full court press (pardon the pun) that the Clintons have received. What's Microsoft Office 2007different now?Office 2007One possibility is that most upper middle class Democrats, and therefore most Microsoft OfficeOffice 2007 keyeditors and reporters of our nation's big papers as well as Office 2007 downloadtelevision producers, are Obama supporters who think that Hillary should hurry up Office 2007 Professionaland drop out of the race already.Microsoft outlook
Microsoft outlook 2010Whom elite liberals are pulling for really does shape political coverage in ways

Microsoft Office 2007 said...

The Tax Return Crack-Up<3>
Granted, there are usuallyMicrosoft Office 2010write-ups when presidential contenders make their tax returns available, but the coverage falls far short of the Office 2010
full court press (pardon the pun) that the Clintons have received. What's Microsoft Office 2007different now?Office 2007One possibility is that most upper middle class Democrats, and therefore most Microsoft OfficeOffice 2007 keyeditors and reporters of our nation's big papers as well as Office 2007 downloadtelevision producers, are Obama supporters who think that Hillary should hurry up Office 2007 Professionaland drop out of the race already.Microsoft outlook
Microsoft outlook 2010Whom elite liberals are pulling for really does shape political coverage in ways

Anonymous said...

Hi There, I really like the idea of your library sadly it doesnot seem to work.. the console tells me: AttributeError: "Blender RenderData" object has no atribute "enableUnifiedRenderer"

Yesilcam arsivler

Anonymous said...

Hi There, I really like the idea of your library sadly it doesnot seem to work.. the console tells me:
AttributeError: "Blender RenderData" object has no atribute "enableUnifiedRenderer"
Am I doing somthing wrong?Pasta Tarifleri Kolay Pastalar

Anonymous said...

Are you alive and well? Is this add-on still running around?

Related Scripts