Let’s say you deleted by mistake a master layer to your expressions, then they all are deactivated even a Cmd+Z won’t bring them back to life. Read more about javascript errors here : JavaScript try/catch/finally Statement 3.
If errors are found it will execute the alternate code specified in the catch(err) It tests the block of code for errors, if no errors it is executed, If you used a Shape layer, it is easy, you need to get the diameter from the ellipse shape property: Add an expression to the Null Object(“Drive”).Make sure you copy the Path and not the object/mask to the position property.īecause the motion path moves the object along its anchor point, we need to offset the Y position of half the diameter of the wheel. Copy the road path from your shape layer or the mask outline to the position property of the Null Object(“Drive”).Use the pick whip to link all the car layers to the Null Object(“Drive”).Copy the position property of the front wheel to the Null Object(“Drive”).Doing so will require an extra step, you need to create a mask to outline the curves of the road. Start by creating the road to be used as a motion path again, the easiest way would be to create it directly in after effects using shape layers, but you can also import an external file. The simplest hierarchy would be 3 layers:
Make sure that each wheels are on a separate layer, and that anchor point is centered. You can use your own car model imported from Photoshop or Illustrator, or create it directly in AE with shape layers. This simple car rig will automate the rotation of the wheels and the orientation of the car along the motion path. Learn how to create a simple but effective car rig Thanks for reading, I want to publish more about how I use grayscale images in my workflow, so stay tuned!