Highligted selections and some more questions

sturm wrote on 2/13/2004, 9:38 AM
For a while now I'm writing a script, mainly for multicam, and am running into some difficutlies, so if anyone help me with the following questions I'd be very grateful::
- is there any way at all for a script to know whether a timelline-selection is highlighted (active, blue)?
- what is this 'failed to add marker, marker already exists' error, when the new region only shares a beginning or end-point with the existing marker, has it something to do with the "var zero:int=0" code I sometimes come across?
- is it really out of the question to have Vegas playing from the TL while the script is awake and gets e.g. cursorinformation?
- Is event-handling at all possible and is there a script in which that happens? I just don't see how to put the script on hold and wait for input without usig a form.
- is there already information on the scripting API in Vegas 5, will it have grouping, influence on the layout, event-handling
- after 2003, what happened to SonyPJM and our privilige to invite the cook to the table , ?
-(and this will not be a popular question:) does anyone have experience with obfuscating and protecting .net code, any programs recommended?


Comments

jetdv wrote on 2/13/2004, 11:21 AM
Check your e-mail.
SonyPJM wrote on 4/12/2004, 9:47 AM

>For a while now I'm writing a script, mainly for multicam, and am
>running into some difficutlies, so if anyone help me with the
>following questions I'd be very grateful::

>- is there any way at all for a script to know whether a
>timelline-selection is highlighted (active, blue)?

Use Vegas.SelectionStart, Vegas.SelectionLength, and Vegas.LoopPlayback.


>- what is this 'failed to add marker, marker already exists' error,
>when the new region only shares a beginning or end-point with the
>existing marker, has it something to do with the "var zero:int=0" code
>I sometimes come across?

Markers and Regions can't share positions. Try to offset the beginning
or end by a single frame.

>- is it really out of the question to have Vegas playing from the TL
>while the script is awake and gets e.g. cursorinformation?

For now, yes... scripts can't have things changing beneath them.

>- Is event-handling at all possible and is there a script in which
>that happens? I just don't see how to put the script on hold and wait
>for input without usig a form.

For now, no... scripts need to execute on Vegas' main GUI thread and,
as mentioned above, can't have things changing beneath them.

>- is there already information on the scripting API in Vegas 5, will
>it have grouping, influence on the layout, event-handling

Updated docs, faqs, etc. will be available when Vegas 5 is released.

>- after 2003, what happened to SonyPJM and our privilige to invite
>the cook to the table , ?

I was busy with new features for Vegas 5. I'm back now.
sturm wrote on 4/12/2004, 4:40 PM
Thank you mr. ProjectManager!
I've allways overlooked loopplayback.
Also: Trackmotion and grouping are worth pulling a few hairs out, I'd be so happy if that's happening.