Mahlon
06-29-2006, 06:54 PM
Hey guys,
Contunuing with my dissection of Brad Noble's arm, I'm happy to say that I've been able to copy it, and what's more, actually understand what's going on. So everything is working great (IK/FK switch, swivel, and hand orientation, I'll get to twisting bones later) --- except for one aspect... that's the "IK to FK/Fk to IK Snap" Buttons and the "Lock Hand/Unlock Hand" buttons.
In Brad Noble's script to create and assign functions to the buttons in the attribute holder, he has variables which refer to a Node_Storage and a position script which is on a helper object named skeleton_rig_node_storage.
Now, I've tried to duplicate his script exactly (except that I have different names for my objects, but I account for those in my script). Here are the problems I'm getting, though, when I try to run the script:
(also, at the bottom of this post is my max file and script file if you want to have a first hand look)
First, here is an image of the position script on the Helper I have created for node storage:
http://www.lutanian.com/Problem/Node%20Storage%20Position%20Script.jpg
if you open the attached max file, you'll see that the variables are all assigned nodes of corresponding objects. So far so good.
When I try to run the "Arm IKFK Snap Script", which I created by copying relevant portions of Brad's script, I get the following error:
http://www.lutanian.com/Problem/Error.jpg
And here's an image of text from the script and where the error is occuring. I don't understand why he's using this.Node_Storage.node.position.controller.getnode, and what it means. Where does Node_Storage.node come from?
I know that it must be defining these variables, but I'm not sure logically what's going on and, of course, why I'm getting the error. I have nodes assigned to variables in the 'position script' on the helper object which I've named Node_Storage.
http://www.lutanian.com/Problem/IKFK%20Snap%20Script.jpg
Could someone explain a little about this node storage thing in really simple terms? And maybe why I'm getting the error? I've looked up Node in the maxscript help, but couldn't decipher much from available topics.
Thanks again, so much for you help so far, and I hope (if I can get this IKFK Snap figured out) that I can go ahead and finish the rig. It's really nice so far, and the IKFK Snap would be icing on the cake.
Mahlon
Contunuing with my dissection of Brad Noble's arm, I'm happy to say that I've been able to copy it, and what's more, actually understand what's going on. So everything is working great (IK/FK switch, swivel, and hand orientation, I'll get to twisting bones later) --- except for one aspect... that's the "IK to FK/Fk to IK Snap" Buttons and the "Lock Hand/Unlock Hand" buttons.
In Brad Noble's script to create and assign functions to the buttons in the attribute holder, he has variables which refer to a Node_Storage and a position script which is on a helper object named skeleton_rig_node_storage.
Now, I've tried to duplicate his script exactly (except that I have different names for my objects, but I account for those in my script). Here are the problems I'm getting, though, when I try to run the script:
(also, at the bottom of this post is my max file and script file if you want to have a first hand look)
First, here is an image of the position script on the Helper I have created for node storage:
http://www.lutanian.com/Problem/Node%20Storage%20Position%20Script.jpg
if you open the attached max file, you'll see that the variables are all assigned nodes of corresponding objects. So far so good.
When I try to run the "Arm IKFK Snap Script", which I created by copying relevant portions of Brad's script, I get the following error:
http://www.lutanian.com/Problem/Error.jpg
And here's an image of text from the script and where the error is occuring. I don't understand why he's using this.Node_Storage.node.position.controller.getnode, and what it means. Where does Node_Storage.node come from?
I know that it must be defining these variables, but I'm not sure logically what's going on and, of course, why I'm getting the error. I have nodes assigned to variables in the 'position script' on the helper object which I've named Node_Storage.
http://www.lutanian.com/Problem/IKFK%20Snap%20Script.jpg
Could someone explain a little about this node storage thing in really simple terms? And maybe why I'm getting the error? I've looked up Node in the maxscript help, but couldn't decipher much from available topics.
Thanks again, so much for you help so far, and I hope (if I can get this IKFK Snap figured out) that I can go ahead and finish the rig. It's really nice so far, and the IKFK Snap would be icing on the cake.
Mahlon
