|
While I was working on the avi samples for AuraFX, I needed a few scripts to help speed things up. This is one of them. What it does is, look at ALL the Layers in the Project, and Slide (or Shift) them to Frame 0. I had over 30 layers I was working on and had slid them all into position, when I found I had made an error in the positions I had the layers in, so I needed to move them around a bit. Well when you had tons of frames, and they are all starting at different frame numbers, it is a pain in the neck to slide over to the start of each layer, then slide it back to 0, then go find the next, and so on. This takes ALL of them and changes them instantly! I used this A LOT with the SlideLayer script. They work very well together. It defaults to frame 0, but if you wanted all of them to change to Frame 10, or 100, it is as simple, as changing one argument. Read the description below to see how. You can go to the bottom of the page from here and click on the link to download this script, or follow along now as we break down the script, to show you how it does what it does. The acutal script is between the start and end George script lines. My comments will look like this < --- Comment Goes Here --- > and are not actually part of the script itself. < ---------------------------------- Start of George Script ----------------------- > // Zero Layer // By J.L. White // (C)2000 Visual Inspirations Inc. < --- The first 3 lines are just comment lines. Anything that starts with // is a comment --- > Param none connect Aura Commands < --- Tells Aura what options to use, like rectangle, circle, for this we need none --- > i=0 < --- Inititalize variable --- > do tv_LayerGetID i i = i+1 MyID(i) = result tv_LayerShift MyID(i) 0 This Shifts the Layer to Frame 0. To start all Layers at frame 10, just change the argument from 0 to 10 Until (CMP(MyID(i),"none") == 1) < --- Keep doing it till no more layers --- > exit < --- Exit the script --- > < ---------------------------------- End of George Script ----------------------- > Click Here to Download ZeroLayer.zip Well that does it for this one, till next time... |
Back To The Tutorial Page
Copyright © 2000 Visual Inspirations