Forum Replies Created

Page 3 of 6
  • thanks for your help, but its not the solution.
    i scale only x axis, thats fine.
    but when i turn on auto orientation, the expression on orientation does not work correctly anymore and the two layers are not connected.
    So I have to implement “orient to Camera” somehow in the existing orientation expression, but it seems to be quite hard 3d rotation math. here are three images demonstrating my issue:


  • Arne Münch

    November 3, 2017 at 11:29 am in reply to: toCompVec([0, 0, 1])[2] problem, maybe CC2018??

    OK, no help needed anymore, i got it.
    there was a parent which scaled to zero in the end of the comp. So if this is the case write something like “parent.scale” instead or just scale not to zero but 0.001 and then blend the layer out.

  • Arne Münch

    November 3, 2017 at 11:10 am in reply to: toCompVec([0, 0, 1])[2] problem, maybe CC2018??

    I found that one in another thread, but it doesn´t help. No scale animation involved in my case.
    if ((Math.abs(scale[0]) > 0.01)&&( toCompVec([0, 0, 1])[2] > 0 )) value else 0

  • Arne Münch

    October 20, 2017 at 6:07 pm in reply to: expressions calculation sucks

    hi
    thanks for your reply.
    I have put that line to the layer positions in several precomps of my precomp.
    I don´t see any benefit from it. It has to render again although nothing important changed.

    But I have more expressions, working with linked colors and also the scale of several layers is linked.
    Does every single expression in every layer in every precomp of the precomp need that line?
    Would be a lot of work to set up.

  • nice, thats it, I need to Reference to the parent layer space, not to its own..
    thanks so much..

  • Arne Münch

    August 8, 2016 at 10:22 am in reply to: Perform an Undo action using script?

    Thank you Dan.
    Yes I know, checking that ID doesn´t cause an error, but the code does´t work, the behavior of that ID is not understandable for me.

    Alternative idea:
    I there a command for finding an Undo Action in the protocol and and than execute that instead?

  • Arne Münch

    August 7, 2016 at 12:59 pm in reply to: Perform an Undo action using script?

    I try to include an Undo Button in my Script but it doesn´t seem to work properly with your code. I tried:


    myPanel.grp.group1.undoButton.onClick = function(){
    undoFinder = app.findMenuCommandId("Undo: Shape"); //Shape is the name of my undo group
    app.executeCommand(undoFinder);
    var i = 0; //Variable To prevent from infinity Loop
    while (undoFinder != 0 && i<10){
    undoFinder = app.findMenuCommandId("Undo: Shape");
    app.executeCommand(undoFinder);
    i++;
    }
    }

    I try to undo all actions which occured after "Shape" including "Shape", but the variable "undoFinder" behaves strange. Any ideas how to get that?

  • Arne Münch

    July 22, 2015 at 11:30 am in reply to: convert a 3d layer’s orientation to rotation

    Hi there

    Did anyone could modify Dan´s script just that it works with keyframed orientation also.
    The way with Cineware is nice but not what I am looking for.

    Thanks a lot..

    EDIT: It seems that pickwicking the rotaion values, reset orientation and than apply expressions do the trick, but you still have the jumps (from 0|+1 to 0|+359) which makes it impossible to use smooth on the camera movement.

    So it would be perfect to have a script transforming orientation to rotation and get rid of these jumps by converting 0|+359 to -1|+359?

  • Arne Münch

    May 27, 2015 at 11:13 pm in reply to: velocityAtTime for variables

    Clever again, thanks

  • Arne Münch

    March 1, 2015 at 12:21 am in reply to: spring effect on paths

    I think I have to accept that with the maskvertexexpression script it won´t work.
    The script just looks at the maskpath at the actual point of time and can manipulate exactly that state.
    A keyframeanimated maskpath will not be taken into account, and this is why velocityAtTime just outputs (0,0)

    If anyone capable of writing such a script reads this and likes the idea, please reply here so I will know..

Page 3 of 6

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