PDA

View Full Version : Scripted Custom Attributes


Linus Ericson
10-19-2003, 08:29 AM
--Start script
myAttrib = attributes myFirstScriptedAtrib
(
parameters params rollout:myRollout
(
parmValue type:#float ui:(mySpinner,mySlider)
)
rollout myRollout "This is a Rollout"
(
spinner mySpinner ""
slider mySlider "My Control"
)
)
custAttributes.add $ myAttrib
--End script


I have problem with this code, when I run it I get rollout in
Object base level, how to add it to Attribute Holder?

LFShade
10-19-2003, 10:51 AM
custAttributes.add $ myAttrib
--End script
There's your problem. Try adding the CA to the modifier instead of the object itself:

custAttributes.add $.modifiers[#'Attribute Holder'] myAttrib


RH

CGTalk Moderation
01-16-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.