Group.ExpandedMembers
 
 
 

Group.ExpandedMembers

Introduced

v5.0

Description

Returns a SceneItemCollection containing each SceneItem object in the group and the children of any branch members.

C# Syntax

// get accessor
SceneItemCollection rtn = Group.ExpandedMembers;

Examples

JScript Example

NewScene(null, false );
var a = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface", "A");
a.length.value = 2;
var b = a.AddGeometry("Cube", "MeshSurface", "B");
b.length.value = 2;
Translate( b, 5 );
var c = b.AddGeometry("Cube", "MeshSurface", "C");
c.length.value = 2;
Translate( c, 5 );
// create group
var group = ActiveSceneRoot.AddGroup();
// add members to group
group.AddMember( a, true );
group.AddMember( b, false );
logmessage( "Expanded group members = " + group.ExpandedMembers.GetAsText() );
//INFO : Expanded group members = A,B,C

See Also

Group.IsMember Group.Members