Jump to content
Sign in to follow this  
richa122

How to prompt user to select node, and store its X,Y,Z locations

Recommended Posts

Hi,

 

I am writing a tcl script and I am trying to get the user to inform the script of where the script should be taking place. I want to request this by having the user select (pick) a node.

 

From this node I would want to retrieve the X,Y,Z locations of that node, and store them in a variable and proceed with the rest of the script.

 

How might I do this?

 

Thanks in advance for the help!

 

Tyler 

Share this post


Link to post
Share on other sites

Hi,

Note that "z" data name is local coordinate

if you want to get root coordinate, use "globalz" data name, or simply:

lassign [expr [hm_nodevalue $BNode]] X_Node Y_Node Z_Node

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...