Scripted Custom Attributes

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  10 October 2003
Scripted Custom Attributes


--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?
 
  10 October 2003
Quote: 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
__________________
Got Maxscript?
RHTools
 
  01 January 2006
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:24 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.