Issues.00518 - lordmundi/wikidoctest GitHub Wiki

00518: add ability to get node model scale from tcl

« 00517 | Issues | 00519 »

Summary: add ability to get node model scale from tcl

Created: 2014–06–27 09:54

Status: Released

Category: Request

From: frankie

Version: 2.3

Released_In: 2.4

Description:

We have the nice feature of being able to scale models in the config files, but once in tcl, sometimes we might want to know the model scale for a particular model node. This is a request for a tcl command that can return that information.


Comments

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


« 00517 | Issues | 00519 »

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(-)

| commit | 1a4feecb3abe185f2ac4b07b36252cd9bf372526 link10 | || | Author: | Frank Graffagnino | | Date: | Fri Jun 27 09:54:00 2014 -0500 | | Message: | [@Issue 00518: Rewrote dsp_info plugin Plugin now supports returning filename for models that have a LOD defined, the model scale for model nodes, and the relative position and attitude of the node relative to another node. More importantly, error checking has been added throughout so the code no longer seg-faults whenever someone sends in a bad request. @] |

Affected Files:

src/plugins/dsp_info.c | 233 ++++++++++++++++++++++++++++++++++++++±---------
 1 file changed, 189 insertions(+), 44 deletions(-)