Skip to main content
neonimator
Known Participant
Nov 18, 2023 10:09 AM UTC
Answered

Can't find it in the JSFL: Apply to pasteboard, Hide editing controls, Bone style

 

Hello everyone!

I hope it's okay that the topic includes three points. Still, they all belong to the API.

I am working on a small extension for Adobe Animate and could not find information about the three parameters in the "Animate JS API Documentation" on Github.

1. Properties > Doc > Document Settings > Apply to pasteboard
2. Properties > Frame > IK Armature > Hide editing controls and hints
3. Properties > Frame > IK Armature > Options > Style > None/Line

The History panel does not display the code of these operations.
Perhaps someone knows how to access these parameters?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    JoãoCésar17023019
    JoãoCésar17023019Correct answer
    Community Expert
    Nov 29, 2023 10:55 PM UTC

    Hi.

     

    For the pasteboard check, you can run:

    fl.getDocumentDOM().pasteboardColorCheck = true;

     

    But unfortunately everything Ik related seems to be handled internally by Animate.

     

    Hide editing controls and hints:

    /Applications/<ANIMATE>/<ANIMATE>.app/Contents/Helpers/HeadlessAnimateApp.app/Contents/Resources/eve/piIKFrameHdr.eve

     

    Armature style:

    /Applications/<ANIMATE>/<ANIMATE>.app/Contents/Helpers/HeadlessAnimateApp.app/Contents/Resources/eve/piIKFrameOptions.eve

     

    The only references to IK in the JSFL documentation are the layer.animationType, frame.tweenType, and layer.tweenType properties as far as I can tell.

     

    Regards,

    JC

    10 replies

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    Nov 29, 2023 10:55 PM UTC

    Hi.

     

    For the pasteboard check, you can run:

    fl.getDocumentDOM().pasteboardColorCheck = true;

     

    But unfortunately everything Ik related seems to be handled internally by Animate.

     

    Hide editing controls and hints:

    /Applications/<ANIMATE>/<ANIMATE>.app/Contents/Helpers/HeadlessAnimateApp.app/Contents/Resources/eve/piIKFrameHdr.eve

     

    Armature style:

    /Applications/<ANIMATE>/<ANIMATE>.app/Contents/Helpers/HeadlessAnimateApp.app/Contents/Resources/eve/piIKFrameOptions.eve

     

    The only references to IK in the JSFL documentation are the layer.animationType, frame.tweenType, and layer.tweenType properties as far as I can tell.

     

    Regards,

    JC

    Translate
    kglad
    Community Expert
    Community Expert
    Nov 30, 2023 2:35 PM UTC

    @JoãoCésar17023019 

     

    do you know an api reference that lists the pasteboardColorCheck property?

    Translate
    JoãoCésar17023019
    Community Expert
    Community Expert
    Nov 30, 2023 2:40 PM UTC

    Unfortunately no.

     

    I just used JSFL to iterate over the DOM object to look for this property.

    Translate
    neonimator
    Known Participant
    Nov 29, 2023 9:46 AM UTC

    Hello. After creating this post, my IP was blocked on "community.adobe.com ". Login is only possible via VPN. I'm sorry if you wrote in private messages and I don't answer you for a long time.

    Translate
    kglad
    Community Expert
    Community Expert
    Nov 29, 2023 2:26 PM UTC

    check your history panel.  you'll find stuff that can't be used has a red x (eg, apply to pasteboard).

    Translate
    neonimator
    Known Participant
    Nov 29, 2023 2:49 PM UTC

    I checked, but hoped that the "red x" could be bypassed through the API.

    Translate