Datablock names

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Datablock names

Postby Grogyan » Mon Sep 22, 2008 3:32 am

First a big round of applause for the Devs and Paradox.

Just recently I read in the SVN log for Blender that a fix has been done to allow longer datablock names.

Datablock name lengths have been a problem for a while, especially back when sounds were added to PyPrp, but since then topics were created to fix the problem in PyPrp, but in actual fact the problem was in Blender, now it has been fixed, and should be in a build from http://www.graphicall.org
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Datablock names

Postby Tsar Hoikas » Mon Sep 22, 2008 10:42 am

Said fix was immediately reverted by a Blender dev :P
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Datablock names

Postby Nadnerb » Mon Sep 22, 2008 11:05 am

Did they give a reason? O.o
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Datablock names

Postby Paradox » Mon Sep 22, 2008 3:43 pm

The patch that I contributed did not change the length of datablock names. Instead, when trying to access a Scene datablock via Python using the Get() function, it would chop the input to the datablock maximum.

However, as the Blender devs stated, you cannot have a guarantee when you create a datablock that Blender will give it exactly the name that you specify, so cutting down the name on a Get() function could still introduce errors and doesn't really resolve any issues. It is up to the script itself to make sure that it gets the datablock that it needs.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada


Return to Building

Who is online

Users browsing this forum: No registered users and 1 guest

cron