Issues.00547 - lordmundi/wikidoctest GitHub Wiki

00547: add ability in tcl to get node position relative to another node

« 00546 | Issues | 00548 »

Summary: add ability in tcl to get node position relative to another node

Created: 2015–09–30 11:24

Status: Released

Category: Request

From: frankie

Version: 2.3

Released_In: 2.4

Description:

It would be nice if there were an easy tcl command which could give you the position and orientation of a node in the frame of another node.


Comments

frankie September 30, 2015, at 12:02 PM: Please note there is already an existing way to do this using passive control nodes. If you don't want to add an additional node to the scene, or perhaps you cannot predict ahead of times which nodes you need to query, you can use the new dsp_info plugin commands described below.

frankie September 30, 2015, at 11:36 AM: This has been added via the "dsp_info" plugin (which covers issues 00518, 00547, and 00548). More commands to the plugin may be added in the future. For now, it allows you to query a node for what filename the model is using, the scale of the model, and also the position and orientation of the node relative to any other node. When requesting the model filename, if LOD model sets are used, then a space separated list of filenames will be returned. Also, for the relative position and attitude subcommand, the orientation comes out using the order specified for the node, which is most commonly PYR. The syntax for the tcl commands is:

doug.plugin dsp_info.node node_name -filename
doug.plugin dsp_info.node node_name -strfile
doug.plugin dsp_info.node node_name -relposatt nodename2    # returns xyzPYR but in the order of nodename2
doug.plugin dsp_info.node node_name -scale

Documentation for the plugin will be superseded by this article: EDGEInfoPluginReference


« 00546 | Issues | 00548 »

Associated Commits

| commit | dc92c5db53adb2cb6f386d0ccca1747913fcf878 link9 | || | Author: | Frank Graffagnino | | Date: | Wed Sep 30 11:23:37 2015 -0500 | | Message: | [@Issue 00518, 00547, and 00548: Added dsp_info plugin This plugin allows you to get the relative position and orientation of a node relative to another node. It also lets you query the model scale of a node, or the filename of the model that a node is using. @] |

Affected Files:

plugin_Darwin/dsp_info.so    | Bin 0 -> 18180 bytes
 plugin_Linux_FC3/dsp_info.so | Bin 0 -> 29861 bytes
 plugin_Win32/dsp_info.dll    | Bin 429438 -> 465983 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)