ACFred
11-19-2008, 12:32 AM
Hey there.
I'm using the Attribute Holder modifier on an object and would like the custom attributes I apply to the Attribute Holder to drive a rotation_reactor setup.
This works fine if I use the Reaction Manager, but if I try to do something like this:
ikfkSwitch = ctrlObj.modifiers[#Attribute_Holder].cust_attrs.IK_FK_Switch
oCon = orientation_constraint()
oCon.appendTarget fkObj 0
oCon.appendTarget ikObj 100
oCon1 = rotation_reactor()
reactTo oCon1 ikfkSwitch
setReactionState oCon1 1 100
ikfkSwitch.value = 10
setReactionState oCon1 2 0
ikfkSwitch.value = 0
oCon.weight[1].controller =oCon1
I get the following error:
Not a Controller or a Node: 0.0
I realize that I'm trying to reference the value directly, but how do I access the "node" of a custom attribute for use in a rotation_reactor?
Any hints?
Thanks,
Alec
I'm using the Attribute Holder modifier on an object and would like the custom attributes I apply to the Attribute Holder to drive a rotation_reactor setup.
This works fine if I use the Reaction Manager, but if I try to do something like this:
ikfkSwitch = ctrlObj.modifiers[#Attribute_Holder].cust_attrs.IK_FK_Switch
oCon = orientation_constraint()
oCon.appendTarget fkObj 0
oCon.appendTarget ikObj 100
oCon1 = rotation_reactor()
reactTo oCon1 ikfkSwitch
setReactionState oCon1 1 100
ikfkSwitch.value = 10
setReactionState oCon1 2 0
ikfkSwitch.value = 0
oCon.weight[1].controller =oCon1
I get the following error:
Not a Controller or a Node: 0.0
I realize that I'm trying to reference the value directly, but how do I access the "node" of a custom attribute for use in a rotation_reactor?
Any hints?
Thanks,
Alec
