View Single Post
Old 31st May 2020, 20:10   #313  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Or not.
The previous example is the special case of the following (stupid) script
Code:
ColorBars()
z = 0
y = 10
x = y (z > 0) ? last : last
there is no function called 'y'

So you cannot have this construction valid, because there is no newline before (SkipOver>0 && Skip>SkipOver)
Code:
M = M.GScriptClip("Skip = EMskip.AverageLuma()
\ (" + string(SkipOver) + " > 0 && Skip >= " + string(SkipOver) + ") ? BHard :
\ (" + string(BlendOver) + " > 0 && Skip >= " + string(BlendOver) + ") ? B : M",
\ args = "EMskip,M,B,BHard", Local=true)
What do language lovers say?
pinterf is offline   Reply With Quote