Group.RemoveAllMembers

Introduced

v5.0

Description

Removes all members from the group.

C# Syntax

Group.RemoveAllMembers();

Scripting Syntax

Group.RemoveAllMembers();

Examples

JScript Example

NewScene(null, false );
GetPresetModel("ManSkeleton_Basic", "ManSkeletonBasic", null, null);
var group1 = ActiveSceneRoot.AddGroup();
var col = XSIFactory.CreateObject("XSI.Collection");
// add everything to the collection
col.AddItems("*");
group1.AddMember(col);
logmessage( group1.members.count );
group1.RemoveAllMembers();
logmessage( group1.members.count );
//INFO : 54
//INFO : 0