Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Simple Expression help..

  • Simple Expression help..

    Posted by Fernando Gutierrez on October 3, 2008 at 4:33 am

    Well… Let’s simplify the explanation…

    I have a Circle flying on 3d space… coming and going on both 3 axis…
    I got a Trapcode Particular Emitter parented to my Circle:

    Position XY
    x=thisComp.layer(“circle”).transform.position[0];
    y=thisComp.layer(“circle”).transform.position[1];
    [x,y]

    Position Z
    thisComp.layer(“circle”).transform.position[2]

    Well.. working like a charm.. BUT…
    I parented this circle to a Null to do some nice rotation and other stuff… Well… when i did it, the value os Position changed… of course… it was parented…
    Question… HOW CAN I DO THAT? I need to parent it to the null.. BUT I need the emitter of particular not to go that far away… stick with circle…

    Thanks

    Fernando Gutierrez replied 17 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 3, 2008 at 4:56 am

    I haven’t tested these, but something like this should do it:

    //Position XY
    L = thisComp.layer(“circle”);
    P = L.toWorld(L.transform.anchorPoint);
    [P[0],P[1]]

    //Position Z
    L = thisComp.layer(“circle”);
    L.toWorld(L.transform.anchorPoint)[2];

    Dan

  • Fernando Gutierrez

    October 3, 2008 at 7:24 pm

    Oh Yeah!…

    Works just as i wish….

    Thanks man….

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