Expression control to select a render mode in Particular 2
Posted: July 16th, 2011, 7:44 pm
Hi guys. I've tried an if else statement but I'm a noob and have no clue what I'm doing here.
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.
I get the error: After Effects warning: Can't appear on the left hand side of an assignment, because it is read-only. Expression disabled. Error occurred at line 2. Comp: 'Comp 01', Layer:6 ('particular 2'), Property: 'Render Mode'.
Any suggestions?
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?