Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Jan 2014
Posts: 4
|
Using Global Variables & ScriptClip
Sample Code
function a(bool isGoodFrame) { goodFrame = isGoodFrame ? current_frame: goodFrame c = Subtitle(String(goodFrame)) } global goodFrame = 0 source = avisource("testclip.avi") ScriptClip(source, "a(isGoodFrame)") ConditionalReader(source, "dataFile.txt", "isGoodFrame", false) In short, this sample code reads a file indicating if a frame looks good or not. It sets goodFrame to the frame number of the last good frame. How do I get goodFrame to hold its value across frames. It always gets set back to 0. |
|
|
|
| Tags |
| conditionalreader, global variables, scriptclip |
| Thread Tools | |
| Display Modes | |
|
|