Something like Layer: Select "Sketch" Layer, if you know what I mean?
![Neutral :|](./images/smilies/icon_neutral.gif)
Code: Select all
loop=1
i=0
found=0
tv_layerCurrentID
current=RESULT
WHILE (loop)
tv_LayerGetID i
curLID = result
IF (CMP(curLID,"none")==0)
tv_layerSet curLID
tv_LayerInfo
PARSE result layerDisplay layerPosition layerOpacity layerName layerType layerStart layerEnd layerPrelighttable layerPostlighttable layerSelection
IF (CMP(layerName,"sketch")==1)
found=1
loop=0
END
ELSE
loop=0
END
i=i+1
END
IF (found==0)
tv_layerSet current
tv_warn "Layer sketch not found !"
END
Woops, fixedZigOtto wrote:(just to mention it, a little mis-typing in your panel's name : "select-sketcg", a "h" in place of the "g" would suit better)