Re: Remove Group Member in JScript
| Date : Mon, 03 Apr 2006 13:04:50 +0700 |
| To : XSI(at)Softimage.COM |
| From : Sawamura <sawamura(at)neorack.com> |
| Subject : Re: Remove Group Member in JScript |
I search the "RemoveMember" method in the SDK documentation and it's there. the sample is also taken from the SDK Documentation.
I once et the method working. but it's only for the members of the group I create in the script and in the same evaluation.
it's like create a group, group.Addmember(object) then group.RemoveMember(object) it again in one evaluation.
but if I take the group from the scene using Groups("groupname") OM method, the RemoveMember() method is not working.
rgds,
Leonardo Edy Susanto
Rafe Sacks wrote:
Unfortunately, that method doesn't exist. You have to either use the command, or delete and recreate the group.
________________________________
R A F E S A C K S
Lead Character TD - Technical
Animal Logic Film
+612 9383 - 4800
Sawamura wrote:Hi, I'm trying to remove group member using Jscript. and DENG!! Error..
Here is the sample script from the scripting reference manual :
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 );
// remove the camera and light objects var things_to_remove = XSIFactory.CreateObject("XSI.Collection");
things_to_remove.additems( group1.members.filter("","","Camera*")); things_to_remove.additems( group1.members.filter("","","light*"));
group1.RemoveMember(things_to_remove); logmessage( group1.members.count ); //INFO : 54 //INFO : 50
things are working fine before the RemoveMember mothod. It's just my XSI here or it's bug? Any idea?
what I really need is to remove some member of the XSI Biped envelope group without having to remove them manually.
Rgds,
Leonardo Edy Susanto
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi
- References:
- Remove Group Member in JScript
- From: Sawamura <sawamura(at)neorack.com>
- Re: Remove Group Member in JScript
- From: Rafe Sacks <rafes(at)al.com.au>
- Remove Group Member in JScript
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: 5.1 Download now
- Next by Date: Re: 5.1 Download now
- Previous by Thread: Re: 5.1 Download now
- Next by Thread: Re: 5.1 Download now
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |