I want to do something like those scripts.Those scripts wont't work, but at least it will explain what I want to do.
Script A
Code: Select all
loop= 1
i= 0
WHILE loop
tv_LayerGetID i
curLID= result
IF CMP(curLID,"NONE")==0
tv_layerSet curLID
tv_LayerDisplay
LayerState = result
LAYER_V_STATE[i] = LayerState
i= i+1
ELSE
loop=0
END
END
Code: Select all
loop= 1
i= 0
WHILE loop
tv_LayerGetID i
curLID= result
IF CMP(curLID,"NONE")==0
tv_layerSet curLID
LAYER_V_STATE[i]
VS = result
if (VS== "ON")
tv_LayerDisplay State "On"
else
tv_LayerDisplay State "Off"
END
i= i+1
ELSE
loop=0
END
END
And I want all layers to revert back to previous visibility status, Script B does it.
Is it possible in TVpaint? I need to isolate some layers often, so I need a script that can do that.
Please tell me what should I do to do that. Thank you.