Previous Thread  Next Thread

chat icon material name

Pyrogxpilot

Posted: Thu Sep 10, 2009 7:10 pm
Joined: 10 Sep 2009
Posts: 1
Just a suggestion in the new 2.5 release could something be done about the severe limit on material name like:make it like 128 charaters
Reply with quote


Dusho

Posted: Sun Aug 07, 2011 11:36 am
Joined: 27 Feb 2011
Posts: 3
it was said that 2.5x release has much cleaner code and some restriction can be lifted..
after checking some source code, I don't think so (DNA_ID.h) :
Code:

#define MAX_ID_NAME   24

/* There's a nasty circular dependency here.... void* to the rescue! I
 * really wonder why this is needed. */
typedef struct ID {
   void *next, *prev;
   struct ID *newid;
   struct Library *lib;
   char name[24];
   short us;
   /**
    * LIB_... flags report on status of the datablock this ID belongs
    * to.
    */
   short flag;
   int icon_id;
   IDProperty *properties;
} ID;

why to have MAX_ID_NAME then.. and it looks like this all over the code, hardcoded name lengths to [24] or [32].
Is there someone who has some general knowledge about Blender code and clean it up? It would be much easier to set material name limit to say 64 or 128.
Reply with quote


ldo

Posted: Sat Feb 25, 2012 3:41 am
Joined: 07 Nov 2010
Posts: 543
Longer names support was added back on January 11. It should be in the current 2.62 release.
Reply with quote


CoDEmanX

Posted: Wed May 02, 2012 11:29 am
Joined: 05 Apr 2009
Posts: 680
2.63 has a general limit to 64 bytes / 63 characters, long enough imo:

bpy.data.objects['abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.']
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group