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?