Storing nodes on attributes modifier
Hey...
Im trying to store some nodes on an attribute modifier with the Weak Referencing method explained by Paul Neal http://www.paulneale.com/tutorials/Scripting/weakReferences/weakReferenc...
Here is what i have got:-
local CTRL_IK_SwivelAngle = getnodebyname (ChName+RL+"CTRL_IK_SwivelAngle") local CTRL_FK_UpperArm = getnodebyname (ChName+RL+"CTRL_FK_UpperArm") local CTRL_FK_LowerArm = getnodebyname (ChName+RL+"CTRL_FK_LowerArm") local CTRL_FK_Hand = getnodebyname (ChName+RL+"CTRL_FK_Hand") local CTRL_IK_Hand = getnodebyname (ChName+RL+"CTRL_IK_Hand") local CTRL_Clavicle = getnodebyname (ChName+RL+"CTRL_Clavicle") local IK_SwivelAngle = getnodebyname (ChName+RL+"IK_SwivelAngle") local FK_SwivelAngle = getnodebyname (ChName+RL+"FK_SwivelAngle") local IK_UpperArm = getnodebyname (ChName+RL+"IK_UpperArm") local IK_LowerArm = getnodebyname (ChName+RL+"IK_LowerArm") local IK_SwivelAngle_Zero = getnodebyname (ChName+RL+"IK_SwivelAngle_Zero") local NodeArray = #(CTRL_IK_SwivelAngle,CTRL_FK_UpperArm,CTRL_FK_LowerArm,CTRL_FK_Hand,CTRL_IK_Hand, CTRL_Clavicle,IK_SwivelAngle,FK_SwivelAngle,IK_UpperArm,IK_LowerArm,IK_SwivelAngle_Zero) as array for o in NodeArray do append Nodes(nodeTransformMonitor node:i forwardTransformChangeMsgs:false)
But I cant seem to add the nodes. The for cycle doesnt work. Has anybody got an answer??
Comments
I found out how to add nodes
I found out how to add nodes to a attribute modifier. When specifying the parameters you a node type:
parameters
(
CTRL_IK_SwivelAngle type:#node
)
then assign which node to add:
local CTRL_IK_SwivelAngle = getnodebyname (ChName+RL+"CTRL_IK_SwivelAngle")
doing this you can apply
doing this you can apply lots
doing this you can apply lots of nodes in attribute holder but when you Rename the objects it face a problems i know that this page was in 2009 and now 2014 but I'm new in maxscript and have the same problem any help.Is ther any way assigning several nodes in attribute holder and after renaming refering object no problem cause.
Thanks in advanced