View Single Post
Old 14th May 2018, 23:53   #3  |  Link
Stereodude
Registered User
 
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
Quote:
Originally Posted by raffriff42 View Post
You can use RGBAdjust inside ScriptClip, something like this (not tested)
Code:
ScriptClip("""
RGBAdjust(r=xyx_r, rg=xyx_rg)
""")
ConditionalReader("r.txt", "xyx_r", false)
ConditionalReader("rg.txt", "xyx_rg", false)
Edit - remember the variables are global, so give them names that are unique within the script (and any Imported scripts too)
Thanks. The idea works. I think you have too many "" though. This is what I got to work.
Code:
ScriptClip(clip, "
RGBAdjust(rb=(xyx_rb), gb=(xyx_gb), bb=(xyx_bb))
")
ConditionalReader("r_levels_t2.txt", "xyx_rb", false)
ConditionalReader("b_levels_t2.txt", "xyx_gb", false)
ConditionalReader("g_levels_t2.txt", "xyx_bb", false)
Stereodude is offline   Reply With Quote