Kenzor
11-26-2005, 12:42 AM
Is it possible for a bunch of instanced objects to have unique varible values when using the same custom attribute definition.
For example say I have two spheres '$sphere01' and '$sphere02' which are instances of each other, And a Custom Attribute definition which looks like..
CaTest = Attributes TestAttrib
(
Parameters main
(
CAn type:#integer
)
)
If i add Catest to sphere01 like this
custAttributes.add $sphere01 CaTest
Then i find that $sphere02 also has the custom attribute.
Worse still if I change the varible in sphere02 ..
$sphere02.CAn = 2
I find that
$sphere01.CAn == 2 is true as well
Is there a way round this so that the variable stays unique ?
custAttributes.MakeUnique $sphere02 CaTest does not seem to apply in this case.
I actually need to store a material definition in the Custom attribute so 'Node user properties' won't really help in this case.
Can any of you guys help
For example say I have two spheres '$sphere01' and '$sphere02' which are instances of each other, And a Custom Attribute definition which looks like..
CaTest = Attributes TestAttrib
(
Parameters main
(
CAn type:#integer
)
)
If i add Catest to sphere01 like this
custAttributes.add $sphere01 CaTest
Then i find that $sphere02 also has the custom attribute.
Worse still if I change the varible in sphere02 ..
$sphere02.CAn = 2
I find that
$sphere01.CAn == 2 is true as well
Is there a way round this so that the variable stays unique ?
custAttributes.MakeUnique $sphere02 CaTest does not seem to apply in this case.
I actually need to store a material definition in the Custom attribute so 'Node user properties' won't really help in this case.
Can any of you guys help
