Copy link to clipboard
Copied
Copy link to clipboard
Copied
Yes, you can get acquainted with the Camera object at the link:
https://github.com/AdobeDocs/developers-animatesdk-docs/blob/master/index.md#camera-object
Copy link to clipboard
Copied
Did not find a function that can control layer camera closing and displaying
Copy link to clipboard
Copied
Hi.
Do you mean this?
fl.getDocumentDOM().getTimeline().camera.cameraEnabled = true; // or false
Copy link to clipboard
Copied
Only control the camera display state of the layer
Copy link to clipboard
Copied
there are several camera methods and properties. did you check the camera api?
https://github.com/AdobeDocs/developers-animatesdk-docs/blob/master/index.md#camera-object
Copy link to clipboard
Copied
通过历史记录获取此代码,不起作用 @JoãoCésar
an.getDocumentDOM().getTimeline().setLayerProperty('attachedToCamera', true, 'all');
Copy link to clipboard
Copied
I get this code in the History panel:
an.getDocumentDOM().getTimeline().setLayerProperty('attachedToCamera', true);
But it also doesn't work. I'm not sure why. This camera API is recent and perhaps it isn't fully implemented in Animate yet.
Maybe @Vladin M. Mitov knows or you can contact the Animate team here: https://www.adobe.com/products/wishform.html.
In the meantime I'll try to think on something else.
Regards,
JC
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more