Problem
I have multiple layers in my comp using the Particular effect. All layers have their emitters parented to a null for ease of animating. Due to render issues I need to often times set the render mode for all 5-6 layers to Motion Preview instead of Full Render. I want to simply add a checkbox to the null layer that if true = motion preview on, if false = motion preview off (or full render on).
What I've tried...please don't laugh.

Code: Select all
if(thisComp.layer("null for laser streak").effect("motion preview")("Checkbox")==true){
thisComp.layer("particular 2").effect("Particular")("Render Mode")=1;
}else{
thisComp.layer("particular 2").effect("Particular")("Render Mode")=0;}
Any suggestions?