Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions pin position to parented rotating object

  • pin position to parented rotating object

    Posted by Alexander Weil on April 26, 2017 at 1:13 pm

    hey
    wow that will be hard to explain, sorry ????

    Im working on a Female Character, she should wear a dress. my Idea was to pin Nulls on the Thighs and connect them via expressions with the CornerPin effect. so i connected them just with the pickwhip, totally wrong because of the parenting, then i calculated the position out (maybe .toWorld would have been enough) but it didnt work either because the position of the null didnt change at all, the Thighs rotate but no value of the Nulls change so i have no idea what to do

    The Nulls are parented to Thighs and the Thighs are parented to the Body, maybe i should mention that.

    maybe someone can help me out ^^?

    cheers
    -alex

    Alexander Weil replied 9 years ago 2 Members · 14 Replies
  • 14 Replies
  • Steve Sierra

    April 26, 2017 at 2:03 pm

    Hi Alex,

    I’m not sure I’m understanding your case completely, but I think you should try only parenting the higher nulls (those that are on the thighs) and then parenting the lower nulls to the upper nulls.

    Does that help ?
    😉

  • Alexander Weil

    April 26, 2017 at 2:07 pm

    Sorry, i tried my best to give you a overview of my case but im no native speaker :-/

    when i change my parenting, my complete rig wont work

  • Steve Sierra

    April 26, 2017 at 2:13 pm

    Hi,

    How about if you don’t parent the upper nulls, but add an expression to their positions and rotations linking them to the thighs ?

    I’m supposing you want the upper nulls to rotate and stay in place while the lower nulls follow the upper legs ?

    Don’t worry about the language, I’m no native reader either ????

    Cheers

  • Alexander Weil

    April 26, 2017 at 2:19 pm

    the rig works without the nulls, i just added them to get some data for my Corner Pin effect to close the gap between the Thighs so it looks like a dress. but i dont get any X,Y-Data for the Corner Pin because the Thights rotate and the nulls that are parented to the Thighs get the date somehow from the changing rotation

  • Steve Sierra

    April 26, 2017 at 3:10 pm

    are you using shape layers ? solids with masks ? image files ?

    I think you will have to use pythagorus to translate the thigh rotation to the corner pin’s positions.

  • Alexander Weil

    April 26, 2017 at 3:37 pm

    I use Shape Layers.

    Can you tell me how to use pythagorus in this case?

    thisComp.layer("Dress Null 2").toComp(anchorPoint)

    i tried these expression, it somehow creates data, but no usable data. my Corner Pin Position is somewhere outside my Comp Screen (around 2250, 785).

  • Steve Sierra

    April 26, 2017 at 4:20 pm

    I think I got it thanks to your expression (no need for old greeks) :

    – create a shape rectangle that is your comp size in your shape layer.
    – apply the corner pin effect to the shape layer
    – Parent Dress Null 2 to Dress Null 1 which is parented to your rotating leg layer.
    – Now add your expression to the corner pins and you should be good to go.

    Does that work for you ?

    Cheers !

  • Alexander Weil

    April 26, 2017 at 6:50 pm

    the “Medium Red” on the left is the Shape Layer with Corner Pin
    the dots on the right is the result of a Solid with Corner Pin

    here is the file maybe this will show you better: ☺
    11299_charstest.aep.zip

  • Steve Sierra

    April 27, 2017 at 4:00 am

    Hi Alex,

    Sorry, I couldn’t read your project… I’m on PC and still using CS6. Could you save it in a compatible mode ?

    I forgot to tell you I had created a ThighsCtrl Null (pelvis) located between the two thighs and parented the legs and the shape layer to it.
    I also placed the dress nulls on the “outside” of each leg (left side for the left leg, and right side for the right leg).
    I’ll join my project and a few screenshots so you can see.

    Cheers !
    project : https://f1.creativecow.net/11305/dress-project?uploaded=file

  • Alexander Weil

    April 27, 2017 at 8:24 am

    well, thats exactly what i did … i think
    tried to downgrade it to cs6, only came from cc2017 to cc2014 ☹

Page 1 of 2

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