Forum Replies Created

  • Toms Burāns

    March 3, 2020 at 9:36 pm in reply to: Inverse kinematics in 3D

    Thanks for the explanation Alex!

  • Toms Burāns

    March 3, 2020 at 8:36 pm in reply to: Inverse kinematics in 3D

    Hi, Alex!
    Thanks for your reply.
    I’m not sure I understand what you mean by “calculating and distributing multiple rotation values at once”.

    I’m far from an expert in trigonometry so I have not yet tried to implement this myself but it’s hard for me to believe that this is not possible with AE expressions. I mean, if you can do it in 2D why wouldn’t you be able (with a bit more math) do it in 3D? Can you explain a bit more why you think this is not achievable in AE?

    Thank you!

  • Excellent. Thank you very much!

    Toms

  • Just looked at the code again. Looks like creative cow post editor turned “<” into “& lt ;” . That’s probably the reason why its not working for you. Fix this line –
    for (var i = 1; i <= curComp.layers.length; i++) {

  • Managed to do this myself.
    This script toggles layer styles on and off for all layers in the currently active composition as well as in all compositions nested inside it.

    var activeComp = app.project.activeItem;

    if (activeComp == null) {
    alert("Select a composition.");
    } else {
    toggleLayerStyles(activeComp);
    }

    function toggleLayerStyles(curComp) {
    for (var i = 1; i &lt;= curComp.layers.length; i++) {
    curL = curComp.layer(i);

    if (curL.layerStyle.canSetEnabled == true) {
    if (curL.layerStyle.enabled == true) {
    curL.layerStyle.enabled = false;
    } else {
    curL.layerStyle.enabled = true;
    }
    }
    if (curL.source instanceof CompItem) {
    toggleLayerStyles(curL.source);
    }
    }
    }

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy