Custom attribute slider resets

I put a slider in a custom attribute through maxscript fo an IK fk switch.

However whenenever I deselect the controller that has the custom attribute the slider resets to its original position.

Any ideas on how I should go about making it stick?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
babisouk's picture

sorry

Here it is.

ca=attributes IKFKswitch
(
rollout sliderroll "Rollout"
(
slider slideit "slider" range: [0,100,100]

on slideit changed arg do
(
$object.rotation.controller.weight = slideit.value
)
)
)

custattributes.add $.modifiers[1] ca

barigazy's picture

basic rule

post some code

bga

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.