Page 1 of 1

<if:>

Posted: Wed Sep 16, 2009 10:06 pm
by carlhelquist
I am trying to have a tool change at the start of each layer only if a layer parameter is set to yes.

Here are the lines I added:

in [LayerParameter]
LayerParameter fixed $T Tool_Change? Yes No
LayerParameter free $t 1 2 3 4 5 6 7 8

in

Code: Select all

OrderToolChange
  {<NewLine>t$t m6
    <NewLine>g43 h$t}

OrderLayerStart
  {<if:$l=Yes><UpdateLayer><NewLine><NewLine>(Layer: $_)
   <if:$T=Yes><OrderToolChange></if>
   </if>

My problem seems to be that once the <if:> statement runs, the variable is stuck on the value it had when first checked. All subsequent layers are stuck with that value. Other layer parameters that I have added seem to change by layer as long as I don't use them in an <if:>.

Any ideas on what I am missing?

Thanks,

Carl Helquist

using camexpert-2.0.4.8-1-prof.linux90.x86 on Ubuntu 8.04