-
problem in script for Trapcode particular!!!
Hey guys,
I`m trying to write a script for trapcode particular but I have a problem here…
I created a solid but when i`m trying to set it to this:

I used this codes:
var mySolid = app.project.activeItem.layers.addSolid([1,1,1], "my solid", compWidth, compHeight, 1);
var particle = mySolid.Effects.addProperty("Particular");
particle.property("Particles/sec").setValue(200);
particle.property("Velocity").setValue(0);
particle.property("Velocity Random [%]").setValue(0);
particle.property("Velocity Distribution").setValue(0.5);
particle.property("Velocity from Motion [%]").setValue(0);particle.property("Life [sec]").setValue(5);
particle.property("Particle Type").setValue(6);
particle.property("Layer").setValue(2);
the problem is in the last line!!!!!!!!
there is 2 Layer list, first: Emitter > Layer Emitter > Layer
Second: Particle > Texture > Layer
when I use this code it sets to first, not second
I want to set it in the second layer
How can I fix it???Thanks
-Shahrokh
