FORUMS: list search recent posts

pin position to parented rotating object

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Alexander Weil
pin position to parented rotating object
on Apr 26, 2017 at 1:13:07 pm
Last Edited By Alexander Weil on Apr 26, 2017 at 1:48:54 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


Return to posts index

Steve Sierra
Re: pin position to parented rotating object
on Apr 26, 2017 at 2:03:25 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 ?
;)


Return to posts index

Alexander Weil
Re: pin position to parented rotating object
on Apr 26, 2017 at 2:07:12 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


Return to posts index


Steve Sierra
Re: pin position to parented rotating object
on Apr 26, 2017 at 2:13:56 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


Return to posts index

Alexander Weil
Re: pin position to parented rotating object
on Apr 26, 2017 at 2:19:04 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


Return to posts index

Steve Sierra
Re: pin position to parented rotating object
on Apr 26, 2017 at 3:10:28 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.


Return to posts index


Alexander Weil
Re: pin position to parented rotating object
on Apr 26, 2017 at 3:37:03 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).


Return to posts index

Steve Sierra
Re: pin position to parented rotating object
on Apr 26, 2017 at 4:20:12 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 !


Return to posts index

Alexander Weil
Re: pin position to parented rotating object
on Apr 26, 2017 at 6:50:51 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


Return to posts index


Steve Sierra
Re: pin position to parented rotating object
on Apr 27, 2017 at 4:00:24 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






Return to posts index

Alexander Weil
Re: pin position to parented rotating object
on Apr 27, 2017 at 8:24:17 am

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



Return to posts index

Steve Sierra
Re: pin position to parented rotating object
on Apr 27, 2017 at 9:32:12 am

I think you can now open your cc 2014 and downgrade it again... until you get to CS6.

I linked the dress and the legs to a central pelvis null so that they all have the same "zero". My shape layer's anchor point is right on that null, giving a position and an anchor point of [0,0]... Maybe that's why it doesn't work for you ?

If you can downgrade to CS6, I'll have a look at your project. (by the way, is power pin the same as corner pin ?)

Cheers


Return to posts index


Alexander Weil
Re: pin position to parented rotating object
on Apr 27, 2017 at 10:30:48 am

cc power pin - the result is the same but the anti-aliasing is a bit better

i only could downgrade it to cc13 but there is one more step cc -> cs6
i exported a xml file and give you the cc13 file , maybe one of these will work?

11306_charstestconverted.aepx.zip

11307_charstestcccopycc12.aep.zip


Return to posts index

Steve Sierra
Re: pin position to parented rotating object
on Apr 27, 2017 at 11:21:17 am

Sorry I couldn't open your files...

Where you able to open mine ?


Return to posts index

Alexander Weil
Re: pin position to parented rotating object
on Apr 27, 2017 at 2:47:05 pm

jeah i could open it and when i moved your Thighs Controller there was the same strange thing as in my comp so i played around with my shape layers position/anchorpoint. there was something wierd with my anchor point, after i put it in the middle everything looked fine ☺
so now it works ☺
thanks bud for your help and time!!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]