Blender Library 1.3.1 beta

1.3.3
New help system
Not fully coded batch mode for materials, but already working :slight_smile:

Blender library 1.3.2
New library LOGIC, to store game logic bricks.
Maybe a final fix to the long filename bug ( I manage to place the library in “C:\Program Files\Blender Foundation\Blender.blender\BlenderLib” and works)
POSE and ACTION libs working great… i tested this and turned out very cool. Pose library does’t need to reopen the .blend. Also despite the .blend extension saved poses are actually txt files, so dont try to open’em in Blender. This is to save the hassle of recoding everithing.
Some other errors fixed.

15 Fully Functional libraries now, still some little issues with the preview in IPO and Logic.

I havent got the time to update my site nor Blender stuff… sorry for that. Maybe in a couple of days I will.

Old New Features: New database system (is the filesystem actually), categories and subcategories (just regular folders, so you can rearrage things without the script). Load at 3d Cursor. Can now import a full folder of items at once, from any library. Author can choose a license text to add to the item, it will be displayed on open and more… check the image below :slight_smile:

http://uselessdreamer.byethost32.com/images/blender_library_10k.jpg

For change log go here:
http://uselessdreamer.byethost32.com/blender_library_history.html

A .blend with custom backgrounds for the preview thumbs (place in your library folder)
http://blender-stuff.byethost32.com/scripts/library.blend
if you edit the worlds in this file you can have custom previews (with you logo or something) just dont change the name of the worlds :slight_smile:

Blender Stuff Website (Lots of blender items to download):
http://blender-stuff.byethost32.com

With this script you can easily store and retrieve all your materials, objects, textures, etc.
You can also quickly share your stuff with other Blender users by using the built in import/
export functionality.

To use, place the script in your script folder and runit. On first run you have to select a folder for the library (if you choose “C:” the library will be “C:\BlenderLib”) and thats it… you can if you want use the preferences to store your personal data and get rid of warnings and tips that popup).

Please CHOOSE A FOLDER AS CLOSE AS YOUR ROOT AS POSIBLE, if you don´t you´ll sooner or later will run into errors. This is due some limitations in bpython.

very nice, but somehow fell on generating a thumb. do you have a sample library? would be great.

It generates the thumb without user interaction and works for me… iva added a sample pack of items to import to the library… :slight_smile:

Edit

You need at least a 3d view open along with the script window for it to work

Hi

I found a feature(?). If you use alt-lmb on the script window, it is closed. I am using Blender 2.41.

Yeah sorry … while developing i use middle mouse click (or alt-lmb)to exit the script…

:slight_smile:

ok, took the time to test it now, i think it’s really great.!!!..!.!.!
only i found some little bugs:
i reinstalled the script, but tried to link it to an already existing library. it failed(error - folder exists)
the middle mouse shouldn’t be for quitting, i think…
the preview is bigger than used in the script, which causes antialiasing go wrong.

Hallo Mariano!

That works Great so far! ……Thanks!
…ofcourse needs some corrections like you say: Its a beta right now but i think it will be fully operational in a couple of days.
also your “Hotspots Python Script” is Great i use it all the Time!
What about a Hotspot Updated Script for new 2.42 Blender Version!
I mean the Python Script with the Icons in 3D Window View to Render…Play Animation…Select Camera …and Scripts e.t.c
are you plan to make a New and Better Hotspots Script also with more Features?
That would be GREAT!!
SeeeYa

Its a great idea, but there are a lot of errors in your script, but fix those and you might be onto somthing:)

is anybody encountering problems with the filehoster? it allways gives me zero-length zip files. i tried it with firefox and with konqueror. allways with the same result.

Hi Mariano,

I have a problem using your script:

The first time I run it I have choosen the folder for the library. Your script have correctly created the BlenderLib and all the sub-folders.
The problem is the second time that I run the script. In the console are displayed the following errors:

Using Python version 2.4
Traceback (most recent call last):
File “<string>”, line 1681, in ?
File “<string>”, line 155, in init
File “<string>”, line 545, in get_categories
AttributeError: text file not found

What can I do to be able to use your script?
I’m on a Linux PC.

thank’s in advance for your help.

Hi, Having problems with your script.
This is output in the console running it the first time:
I’m running
FedoraCore 5 x86_64
Python 2.4
Blender 241 x86_64

Using Python version 2.4
Traceback (most recent call last):
File “<string>”, line 1, in ?
File “/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py”, line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get(‘datadir’), ‘config’)
TypeError: expected string argument
Traceback (most recent call last):
File “<string>”, line 1, in ?
File “/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py”, line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get(‘datadir’), ‘config’)
TypeError: expected string argument
Traceback (most recent call last):
File “<string>”, line 414, in gui
File “<string>”, line 107, in first_setup
File “<string>”, line 155, in init
File “<string>”, line 545, in get_categories
AttributeError: text file not found

Can’t download the file, maybe due to pop-up/ad blocker.

Any mirrors available?

Excellent idea, really looks like you’ve found something here. Keep it up.

Hi Mariano,

looks like a cool script, hoever, I had the same issues as AloRom and 3Dre (I’m also on Linux). It seems an os specific path separator crept in in line 121:

LIB_FOLDER = LibraryDir + LIB +"Lib\\"

Changing it to:

LIB_FOLDER = LibraryDir + LIB + "Lib" + os.sep

fixed the error for me.

Cheers, Sanne

where is the file to download??? there’s nothing to download… just pub :expressionless:

there’s a line at the bottom in red with something like “click here to download”

Thanks Sanne. It’s solves the first part.

After I run the script, I can select the folder.
It creates all the folders.
But there’s an error in the console:

Using Python version 2.4
Traceback (most recent call last):
File “<string>”, line 1, in ?
File “/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py”, line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get(‘datadir’), ‘config’)
TypeError: expected string argument
Traceback (most recent call last):
File “<string>”, line 1, in ?
File “/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py”, line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get(‘datadir’), ‘config’)
TypeError: expected string argument

If I quit Blender and restart it, it asks me again to choose a folder because the script thinks I run it for the first time.
It doesn’t save some kind of config I think.
When I reselect the folder I get an error:

Using Python version 2.4
Traceback (most recent call last):
File “<string>”, line 1, in ?
File “/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py”, line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get(‘datadir’), ‘config’)
TypeError: expected string argument
Traceback (most recent call last):
File “<string>”, line 414, in gui
File “<string>”, line 92, in first_setup
OSError: [Errno 17] File exists: ‘/home/Andre/data/BlenderLib’

It doesn’t help if I save my “user defaults”

OSX intell 10.4.6
===== Saturday, April 29, 2006 12:20:16 PM US/Eastern =====
Traceback (most recent call last):
File “blender_library.py”, line 1681, in ?
File “blender_library.py”, line 155, in init
File “blender_library.py”, line 545, in get_categories
AttributeError: text file not found

hey this is great. how can you get at it from the ‘scripts’ button in blender? i put it in the scripts folder, but nothing happened.

im weak in this area btw. if you didn’t notice :slight_smile:

-theblenderboy

3Dre,

yeah, my fix is for the ‘AttributeError: text file not found’ error, I don’t get your other error. This part of your error

File "/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py", line 53, in ?
 _CFG_DIR = Blender.sys.join(Blender.Get('datadir'), 'config')
TypeError: expected string argument

indicates that the problem lies somewhere in the BPyRegistry.py script or in the calling of a function in this script from blender_library.py.

I had a quick look, but nothing jumped at me that could cause this, sorry. I hope Mariano will be able to help.

Cheers, Sanne