Yes i understand the ways to run the scripts, that part was ok.
for your first script on your last post, i think you wanted to use tv_layergetimage and not tv_layerimage, no?
I tried it, so actually you just CAN use a tv function on a if/else process? For my case i figured out where was the problem, thank you for you help.
My problem was that i'm trying to adapt a script by svengali (to loop frame moves) but for instances (already adapted the last part) :
Code: Select all
// PreviousFrame.grg
// By Svengali
// Move to previous frame and if first, loops to last
// version 0.0
Param none
ScriptName = 'PreviousFrame'
//tv_LockDisplay
//tv_LayerID
tv_LayerCurrentID
parse result LayerNumber
tv_LayerInfo LayerNumber
parse result d d d d LayerType LayerStart LayerEnd d d d
StrTest = CMP (LayerType,"Sequence")
IF (StrTest = 0)
Exit
END
tv_
tv_LayerGetImage
parse result ThisFrame
IF (ThisFrame == LayerStart)
ThisFrame = LayerEnd
ELSE
ThisFrame = ThisFrame-1
END
IF (ThisFrame > LayerEnd)
ThisFrame = LayerEnd
END
IF (ThisFrame < LayerStart)
ThisFrame = LayerEnd
END
tv_LayerImage ThisFrame
//tv_UnLockDisplay
And i wanted to adapt this part :
Code: Select all
IF (ThisFrame == LayerStart)
ThisFrame = LayerEnd
ELSE
ThisFrame = ThisFrame+1
END
I tried, after the ELSE, to put "tv_ExposureNext" (but now i know that i doesn't go to next instance but just next frame) and it doesn't go to the next exposure, it does nothing because of the "tv_LayerImage ThisFrame" at the end of the script, and that's very logical because now i understand how it works...
But i'm still trying to find a solution to loop instances navigation
if somebody have an idea. That's why i'm searching functions to go to the head/tail of an instance.