Animate CC 3D Camera focalLength?
Hello,
Wondering if there are any folks out there that know how the 3D camera internals work in Animate CC. I'll try and explain what I'm trying to do and if anyone knows a way to get the info. This is probably a question for the developers who work at Adobe.
So, I'm getting into using the 3D camera and Advanced Layer Depth's but falling into an issue / limitation. If you were to create a new Canvas file, add in a camera, some objects, move the camera around, etc .... and then export -->
In the HTML file's JavaScript code you'll find this variable in a couple of places >
var focalLength = 528.25;
This appears in the handleTick() and getProjectionMatrix() functions in the generated HTML file that Animate CC exports. The code is specifically for handing the camera.
I'm assuming the number is generated internally somewhere based on the use of the Layer Depths and Camera and IS NOT the same on every new export if you change something.
This works all fine and dandy with the generated files that Animate CC creates.
HOWEVER, if you're using your own template file for the HTML file's generation, there isn't a way to generate this number dynamically using a token (ie. $WT, $TITLE, etc..the token variables you can use for templates). Right now, the only workaround if you want to use your own template FLA is to copy all the keyframes, put it all in a new Canvas doc, export, etc, just to get that number. Obviously, not efficient, especially if you need to change something.
Does anyone know if there is a $ token variable that we can use to generate that focalLength number in our own templates? I didn't see it in Adobe's documentation. Or if there's a way to get that value from within Animate CC so we can change the value/variable from within Animate CC's Actions Panel? I was thinking of making focalLength a global variable and just getting its value within Animate CC and referencing it that way (since I don't know of a token I could use for my template).
Please let me know if anyone has any insight.
Thanks so much.
Davi-T