Notifications
Clear all

[Closed] 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