ScriptSpot

Forum topic · General Scripting

Wiring via. Maxscript

By Poker · 2009-08-23

Description

Hey..

Im trying to wire the weights of a position controller to a custom slider added to a shape.

What i get from the listener is:-

paramWire.connect $CTRL_IK_Hand.modifiers[#Arm_Controls].ArmCA[#Blend] $.pos.controller[#Weight_IK] "Blend"

But it returns "-- Runtime error: connect requires subAnims", when I use this code.

I dont understand why it doesn't think the slider/weight is a subanim??

Comments (2)

Thanks

gibbonofdoom · 2010-10-21

Had the same problem here with a Position Lists weights and wiring - and you solved my problem!

The listener kicked out:
$CC_RWristLock_Point.pos.controller[#Weight__Position_Constraint] "wristLock"

But it should have been :
$CC_RWristLock_Point.pos.controller[#Weights][#Weight__Position_Constraint] "wristLock"

Poker · 2009-08-24

found out that the listener outputted the wrong code for the the IK Weights. it "forgot" to name the weights command before, so the right one is:-

paramWire.connect $CTRL_IK_Hand.modifiers[#Arm_Controls].ArmCA[#Blend] $LowerArm_LookAt.pos.controller[#Weights][#Weight__IK] "Blend"