Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Linking Nulls to Nulls in ParentComposition goes wrong

  • Linking Nulls to Nulls in ParentComposition goes wrong

    Posted by Wouter Dijkstra on May 27, 2019 at 4:49 pm

    Hi Guys,

    I have two Nulls in CompX (3840 x 2160px) that I want to link/duplicate to the ParentCompY (1920 x 1080px). Unfortunately it goes wrong and I don’t know how to fix it.

    Comp X with the two Nulls

    I would like to have the motion that I applied to the Nulls in CompX to be visible with different nulls in CompY.
    I tried multiple expressions like:

    1.

    L = thisComp.layer(“…”);
    L.toWorld(L.anchorPoint)

    and

    2.

    L1 = comp(“Comp 1”).layer(“Layer X”);
    P1 = L1.toWorld(L1.anchorPoint);
    L2 = thisComp.layer(“Comp 1”);
    L2.toWorld(P1)

    3. Using Point Controls

    Clearly I am missing something here, because it usually results in a Null that is far outside the CompViewer and moves way to fast/weird. I want two pieces of ice to follow the motion I applied to the nulls in CompX and be able to move the Nulls in CompY so they are not fully depended on the exact location of CompX.

    The image above shows CompY, where I want to have these Nulls and eventually link two “ICE” objects to the nulls.

    Wouter Dijkstra replied 6 years, 11 months ago 2 Members · 7 Replies
  • 7 Replies
  • Wouter Dijkstra

    May 27, 2019 at 5:48 pm

    I am not sure if it is important to mention, but the Nulls in CompX are also parented in this manner:

    Null1 parented to L_Foot
    Null2 parented to R_Foot

    I appreciate all help and knowledge 😀

  • Wouter Dijkstra

    May 28, 2019 at 7:37 pm

    As it seems for now whenever I try one of the above mentioned options, the Null will always move to fast.

    So it’s like this:

    COMPX:

    Null is repositioned to the lower-end of the Foot and moves perfectly with the Foot.

    COMPY:

    Null is parented to the Null in COMPX and I have to find it somewhere far outside of the comp + It doesn’t stay on the Foot in COMPY

    I’m stuck :p

  • Oleg Pirogov

    May 29, 2019 at 1:55 am

    Your 2. expression should work fine as far as I understand your set up. Do you mind sharing the project file?

  • Wouter Dijkstra

    May 29, 2019 at 8:12 am

    Hi Oleg,
    Thanks for helping out.

    I made option 1 and 2 (where I used Point Control) for option 1.

    Option 2 seems to work, but when I scale up or down COMPX it gives me trouble.
    Thanks for having a look at it. It kills me and I have the impression I don’t understand the working of expression tools like “PointControl”.

    Thanks for the help ☺

    13384_globalpositionnulls.aep.zip

  • Oleg Pirogov

    May 29, 2019 at 2:17 pm

    Opt 1 has too many flaws.
    Opt 2 had a clear mistype in line 3, I had to change “NULL1” to “COMPX”:

    L1 = comp("COMPX").layer("Null 2");
    P1 = L1.toWorld(L1.anchorPoint);
    L2 = thisComp.layer("COMPX");
    L2.toWorld(P1)

    After that, the null follows the leg:


    That’s what you are looking for, right?

  • Wouter Dijkstra

    May 29, 2019 at 2:51 pm

    Thanks Oleg! ☺

    Good to know that option number 1 is to much of a hassle

  • Wouter Dijkstra

    June 2, 2019 at 6:30 pm

    Hi guys, just one more question. The null follows perfectly, but once I move the PRECOMP in time (let’s say forward in time) the null no longer follows (it follows the Composition like it isn’t moved). Any suggestions how to solve this?

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