very handu little tips.. :)
thx rafe.
Rafe Sacks wrote:
it is always faster to call a function once, passing multiple objects,
then to call it twice. I like to build an array or XSICollection,
then, either pass a string list or collection directly. It really
depends on what my need at the time is. For this, it looks like you
can just build a string directly as an argument:
RemoveFromGroup( skeleton.EnvelopeGroup, skels(1) + "," + skels(2) );
Honestly, it probably doesn't matter too much in this case, but I
suppose it all adds up.
________________________________
R A F E S A C K S
Lead Character TD - Technical
Animal Logic Film
+612 9383 - 4800
Sawamura wrote:
Well, I currently working on a script to build some custom deformers
on the fly on top of Michael Isner's XSI biped.
so basically I need to remove the "old" deformer in the
envelope_group of the biped and replace it with the new one.
As the method is currently not working on 5.0, I'll just stick on
using RemoveFromGroup() command until I can get 5.1
thx :) or is there any other way to work it out?
The one I'm using for now (require biped to get this working) :
var skeleton = new Object();
skeleton.model = ActiveSceneRoot.FindChild("Biped");
if(skeleton.model == null)
{
LogMessage("Biped model not found!", siError);
return false;
}
skeleton.EnvelopeGroup = skeleton.model.Groups("envelope_group");
//RLeg
skeleton.RLeg = new Object();
skeleton.RLeg.Root = skeleton.model.FindChild("RRoot1");
if(skeleton.RLeg.Root == null)
{
LogMessage("RLeg root not found!",siError);
return false;
}
skels = GetSkeleton(skeleton.RLeg.Root);
RemoveFromGroup(skeleton.EnvelopeGroup, skels(1));
RemoveFromGroup(skeleton.EnvelopeGroup, skels(2));
rgds,
Edy
RPS wrote:
tell me one thing as u said that u want to remove some members of
the group so u want to select the group thru scripting or manually.i
mean what exactly r u trying to do? if u say i can work on a script
for u.
-- RPS
LiveToRig.com
---
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