Difference between revisions of "George Commands : Layers"

From TVPaintWiki
Jump to: navigation, search
Line 62: Line 62:
 
*[[tv_LayerAutoCreateInstance ]]
 
*[[tv_LayerAutoCreateInstance ]]
  
Add:5640] tv_layerautobreakinstance/tv_layerautocreateinstance layerid [1|true|on|0|false|off|toggle]
+
 
if 1 parameter, return the current state of the corresponding layer
+
if 2 parameters, change the state of the corresponding layer and return its previous state
+
 
== CODE ==
 
== CODE ==
 
//LAYER RUN
 
//LAYER RUN

Revision as of 10:49, 4 September 2015

<<<George<<<George Command Reference

Project

Clip

Instance

Layers


CODE

//LAYER RUN

loop= 1
i= 0
WHILE loop
	tv_LayerGetID i
	curLID= result	
	IF CMP(curLID,"NONE")==0		
		
		// START RUN ON LAYER 
               tv_layerSet curLID
		// END RUN ON LAYER
		i= i+1	
	ELSE		
		loop=0
	END
END