ReferenceScripting APIMotionLayerid
MotionLayer.id
propertyThe layer's id: its own, never shared ("" when there's no such layer).
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.