Page 1 of 1

Geurge: Unidentified Bug???

Posted: 27 Jun 2007, 09:57
by Mads Juul
This little script should alert the layerInfo for the first 10 layers
(made to demonstrate the bug)
but it doesnt
am I doing something wrong???
-mads

Code: Select all

pos = 0
	
	WHILE (pos<10)
		
		tv_LayerGetID pos
		id = result
		
		tv_layerInfo id
		
		tv_warn "Pos:"pos "ID:"result
		
		pos = pos+1
	END

Posted: 27 Jun 2007, 10:25
by Manuel
All the scripts must begin with a param command :
Example : Param none

Posted: 27 Jun 2007, 10:41
by Mads Juul
I will explain more clear::

on a new project with 3 layers named "mads1" "mads2" "mads3"

Code: Select all


Param none
pos = 0
   
WHILE (pos<4)

tv_LayerGetID pos
id = result

tv_layerInfo id

Parse result display position opacity name type 

tv_warn  name


pos = pos+1
END 

I get thew 4 warning
""
""
""
"mads3"

WHere it should be
"mads1"
"mads2"
"mads3"
""

is this a bug?

-mads

Posted: 27 Jun 2007, 12:00
by Hervé
Hi mads

Your script work fine here !