ScriptSpot

Forum topic · General Scripting

Custom attribute slider resets

By babisouk · 2013-05-21

Description

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 (2)

sorry

babisouk · 2013-05-22

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

basic rule

barigazy · 2013-05-21

post some code