chib
10-17-2010, 12:45 PM
Hi guys.
I'm trying to create a tool in order to 'tag' objects with custom informations, and chose to use custom attributes, since it seems to be the most complete method in MXS to record informations in any object...
So I made a 'global' custattribute definition, with an attribID propertie to ensure its "uniqueness", and started to "tag" several objects with it, and found that redefining the custattribute global def with new parameters was automatically updating its instances: cool!
now my problem is that when I import objects with an older definition it replaces the newer one...
so first it's not what it is told in help files:
Global and Private Custom Attributes Definitions
[...] Whenever you evaluate an attributes definition with a particular attribID: you will update all objects that have custom attributes based on that definition, and loading objects with attributes of that attribID will update themselves to the current definition
So I may not have understood something but anyway...
...I tried to use the 'version' propertie of 'scripted plug-ins' in my custom attribute definition, but that doesn't seem to work, and CA instances on the objects I load in my scene keep replacing the ones that are already in the scene, whatever their version number is...
any clues?
thanks,
Paul.
I'm trying to create a tool in order to 'tag' objects with custom informations, and chose to use custom attributes, since it seems to be the most complete method in MXS to record informations in any object...
So I made a 'global' custattribute definition, with an attribID propertie to ensure its "uniqueness", and started to "tag" several objects with it, and found that redefining the custattribute global def with new parameters was automatically updating its instances: cool!
now my problem is that when I import objects with an older definition it replaces the newer one...
so first it's not what it is told in help files:
Global and Private Custom Attributes Definitions
[...] Whenever you evaluate an attributes definition with a particular attribID: you will update all objects that have custom attributes based on that definition, and loading objects with attributes of that attribID will update themselves to the current definition
So I may not have understood something but anyway...
...I tried to use the 'version' propertie of 'scripted plug-ins' in my custom attribute definition, but that doesn't seem to work, and CA instances on the objects I load in my scene keep replacing the ones that are already in the scene, whatever their version number is...
any clues?
thanks,
Paul.
