- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone!,
I really wish that someone could help me with this one.
I reduced my script to the minimum to reproduce the issue I'm facing.
I'm setting an spinner controller parameter to a controller that I created to control the Ik swivel from an object.
In this very simple example, it creates the an Ik having 2 bones and then a Point where it adds the custom attribute with the spinner in it.
Here is the code:
BoneStart = BoneSys.createBone [0,0,0] [1,0,0] [0,0,1]
BoneStart.length = 100
BoneEnd = BoneSys.createBone [(BoneStart.length), 0, 0] [1,0,0] [0,0,1]
BoneEnd.length = 4
BoneEnd.parent = BoneStart
PointCtrl = point box:true deawontop:true cross:true size:100
addModifier PointCtrl (EmptyModifier ())
ikChain = iksys.ikchain BoneStart BoneEnd "IKHiSolver"
ikChain.controller.swivelAngle.controller = linear_float()
ca = attributes IKcontroller
(
parameters params rollout:IK_rollout
(
Swivel type:#angle ui: Swivel
)
rollout IK_rollout "IK Swivel" width:162 height:77
(
spinner Swivel "Swivel Angle" range:[-1000000,1000000,0] width:100 Align:#Center controller:ikChain.controller.swivelAngle.controller
)
)
custAttributes.add PointCtrl.modifiers[1] ca
So the problem is that if I save the result scene and then I tried to reload it, Max will ask for a missing dll.
I found that the problem happens when I use the controller directly on the spinner controller parameter and it will only happens if the IK object is in a variable and I'm not calling the actual $ikChain001 for example.
Thanks a lot!
Solved! Go to Solution.
