PDA

View Full Version : How to pull the friendly Node name of the selected via TCL?


AlphaJoe
02-19-2010, 08:38 PM
Hello everyone,

I am new to TCL and I am having trouble figuring out how to get the friendly node name of the currently selected node. I am able to pull a value using the selected_node function, but that gives me the encoded name. How do I convert this to the friendly name? I found a TCL tutorial that says you can use the command puts [knob [selected_node].name] , however when I run this against a 3D object such as Sphere or Cube I get an invalid property name on .name.

Also, is there some way to push the value once I have it, to a text field in a user created tab on a node?

Thanks,

CGTalk Moderation
02-19-2010, 08:38 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.