Copy link to clipboard
Copied
Hi, I am struggling with a script to import a camera from a 3d sotfware.
I am trying to set "Focal Length" property of the said camera, but I can't find anywhere in adobe js docs a way to access these properties ( they are not directly accessible like "Zoom" or "Depth of Field") , they are only accessible when double clicking the CameraLayer Object.
Does anybody have a clue on how to do that ?
Copy link to clipboard
Copied
Hey. You can use a script called RD GimmePropPath to get a path to property. Download link http://www.redefinery.com/ae/view.php?item=rd_GimmePropPath
To access Zoom: app.project.item(1).layer("Camera 1").property("ADBE Camera Options Group").property("ADBE Camera Zoom")
Depth of Field: app.project.item(1).layer("Camera 1").property("ADBE Camera Options Group").property("ADBE Camera Depth of Field")
Hope that helps.
Copy link to clipboard
Copied
Hey Tomas, thank you for the tip, that a pretty handy script to have.
Unfortunaltely, I am talking about properties that appear only when double clicking the camera layer. "Film Size" and "Focal Length". I can't access them like other classical properties.
Copy link to clipboard
Copied
I see. I must have misread your original question. However, not all properties are available via scripting, this applies not only to a camera.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more