Re: moving multiple shape clips

Date : Fri, 23 Feb 2007 09:38:32 +0100
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: moving multiple shape clips
Hi David,

I'm not entirely sure if this is what you're after, just give it a try. These lines will move all Clips found on selected track 1 onto selected track 2. This is very quick and dirty and does not involve any security measures, so please hit the save scene button before playing around with it...

Cheers!

   -André


var oSourceTrack = Selection(0);
var oTargetTrack = Selection(1);
var eClips = new Enumerator(oSourceTrack.Clips);
while(!eClips.atEnd()){
MoveClipToTrack(oTargetTrack.Model, eClips.item(), "", oTargetTrack, eClips.item().TimeControl.Parameters("startoffset").Value);
eClips.moveNext();
}





David Gallagher wrote:

It seems I can't move a group of shape clips to a lower set of shape tracks. I just want to reorder the tracks because I have a lot and I want to work on updating a chunk that is now not at the bottom of the list. I don't want to drag the actions involved to new tracks because many of the clips weights already have expressions applied.


Is there a way to do this?


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.