Community Forums Archive

Go Back

Subject: OK, this doesn't seem like correct behavior.
Posted by: GHS
Date: 8/20/2015 12:38:27 AM

Hi all. I've looked at the SDK documentation and some examples (like "Normalize and Render to Multiple Formats"), and I have code that should (and partially does work). But the scripting engine's behavior does not appear to be correct. The exact same logic behaves differently, depending on how the playhead arrives at its position in the file.

If I use a menu function to find the loudest peak, a subsequent call to set the selection does not work correctly. It selects the entire remainder of the file, and fails to offset the starting point as directed. If I comment out the call to the menu function and simply leave the playhead where I positioned in manually, the selection-setting call works as expected. Here are a couple of screen shots:

http://ambitiousproductions.com/probs/goodSelection.png
http://ambitiousproductions.com/probs/badSelection.png

And the script (please disregard the comments at the top, which are left from the example code):

http://AmbitiousProductions.com/probs/normalizeVideoSound.cs

Thanks for any insight!

Subject: RE: OK, this doesn't seem like correct behavior.
Reply by: roblesinge
Date: 8/20/2015 9:03:21 AM

A couple of things... You can post code in the forum directly, which makes it a bit easier for everyone. Just surround your code with [code] tags.

Next, what exactly are you trying to do? It's hard to tell what your goal is, and that might influence how I try to answer your question.

Thanks,
-Rob.

Message last edited on 8/20/2015 9:08:06 AM by roblesinge.

Go Back