custom attributes editing?

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
Old 01 January 2010   #1
custom attributes editing?

Hi all, I'm Alberto and this is the first time I post in this great forum. I would say I love it and consider user's advices a great resource.
So my question is:

I've added some custom attributes on my own max rig using this code:

-------------------------------------------------------------------------------------------------
ca = attributes handCtrl
(
parameters handP rollout:handR
(
fkik type:#float ui:(fkikSp, fkikSl)
shoulderTwist type:#float ui:(shoulderTwistSp, shoulderTwistSl)
wristTwist type:#float ui:(wristTwistSp, wristTwistSl)
autoclav type:#float ui:(autoclavSp, autoclavtSl)

)
rollout handR "Hand Controls"
(
spinner fkikSp "" range:[0,1,0]
slider fkikSl "FK / IK" range:[0,1,0] offset:[0,-15]
spinner shoulderTwistSp "" range:[-1,1,0]
slider shoulderTwistSl "WristTwist" range:[-1,1,0] offset:[0,-15]
spinner wristTwistSp "" range:[-1,1,0]
slider wristTwistSl "ShoulderTwist" range:[-1,1,0] offset:[0,-15]
spinner autoclavSp "" range:[0,1,0]
slider autoclavtSl "AutoClavicle" range:[0,1,0] offset:[0,-15]

)
)

custAttributes.add $.modifiers[1] ca
-------------------------------------------------------------------------------------------------

Now I can't figure out how to access the attributes to change the range: [-1,1,0] instead of [0,1,0]
and the attributes description: for example "wrist twist" instead of "WristTwist"

I know only how to change my custom attribute value:
$ctrl_hand_R.modifiers[#Attribute_Holder].handCtrl.autoclav = 1

Many thanks
 
Old 01 January 2010   #2
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 04:53 AM.


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