Transition Object

tdub wrote on 12/10/2003, 5:04 AM
Hi!

I begin to write scripts, and I have this problem:
The Transition object is not documented in the API I've found
here on this site. Is there any description available somewhere?

My question is shown with the script following. Where I wrote
HERE, I was thinking that "trans.Keyframes" was a Collection
(If we say that a "Transition" is an "Effect", it's suggested in the
API at the Effect paragraph.)
BUT, the error Vegas return me is that is not a Collection...

An idea?
Thanks in advance...

Thierry

var transEnum = new Enumerator(Vegas.Transitions);
while (!transEnum.atEnd())
{
var trans = transEnum.item();
var keyFrEnum = new Enumerator(trans.Keyframes); // HERE
while (!keyFrEnum.atEnd())
{
// ..........
keyFrEnum.moveNext();
}
transEnum.moveNext();
}

Comments

jetdv wrote on 12/10/2003, 9:11 AM
I believe what you are looking at is simply the list of available transitions. You would then apply that transition to a dissolve.
tdub wrote on 12/10/2003, 12:46 PM

Hello jetdv !

My aim are:
- know better the function of vegas scripting. My frist scripts are not very
usefull, but I try to understand better
- in my portion of code, I just wanted to know all the properties of a transition.
So after findig a transition, i just want to enumerate the keyframes of the
transition.

to go further, I would like to try to copy the structure of a transition to another
transition : keyframes and other properties. It seems not to be easy, for the
zoom transition I've selected: how to program in a script the place where the
zoom is beginning? May be you have some suggestions?

Thanks in advance

Thierry