Ah, sorry Dan! I didn’t include all the code; addSlider() and addCheckbox() are defined elsewhere –
<br>function addSlider(targetLayer, sliderName, defaultValue) {<br>var slz = targetLayer.property("Effects").addProperty("ADBE Slider Control");<br>slz.name = sliderName;<br>slz("Slider").setValue(defaultValue);<br>return slz.propertyIndex;<br>}</p><p> function addCheckbox(targetLayer, chkName, defaultValue) {<br>var chz = targetLayer.property("ADBE Effect Parade").addProperty("ADBE Checkbox Control");<br>chz.name = chkName;<br>chz.setValue(defaultValue);<br>return chz;<br>}</p><p></p><p>
These work the first time round, and if I comment them both out I get four nulls… so what’s happening with these functions that they’ll only run through once?