I'm new to scripting and expressions in After Effects, but I'm learning.
Now, I wanted to extend the "Simple Camera Rig" based on Maltaanons script and everything went well so far. But now I have two options, I just can't get to work.
I want to define the iris shape and add a control for the iris rotation but I can't get both to work with the properties:
Code: Select all
// Define Iris Shape newCamera.irisShape.setValue("Hexagon"); // Don't work and I don't know the right term to this // Add Iris Rotation Dial var irisRotValue = controlNull("Effects").addProperty("Angle Control"); irisRotValue.name = "Iris Rotation"; irisRotValue.angle.setValue(15); // Connect the dial with the property irisRotExpression = 'thisComp.layer("Camera Control").effect("Iris Rotation")("Angle")'; newCamera.irisRotation.expression = irisRotExpression; // This throws an error and I don't know why. Previous options are working this way