/
getAttachedTo

getAttachedTo

Description

Retrieves the BoneNode that a node is attached to (constraining).

Functional area

Data retrieval

Command syntax

Syntax

getAttachedTo "sourceName"[-fullPath] [-nameOnly]

Arguments

NameTypeRequiredComments
sourceNamestringyesNode to retrieve attached BoneNodes for.

Flags

NameFlag argumentsArgument typeExclusive toComments
fullPath0nameOnlySpecifies that the full path of each node be returned rather than the "minimum" path, which is the minimum path needed to uniquely identify a node.
nameOnly0fullPathSpecifies that only the name of each node be returned rather than the "minimum" path, which is the minimum path needed to uniquely identify a node.

Return value

string array

Returns a string array with the names/paths of all the BoneNodes that are targets in constraints that have the given node as a source.

Examples

// Get the BoneNodes the LFHD is attached to.
string $bone[] = `getAttachedTo "LFHD"`;
print $bone;

Additional information

Related commands