• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit Search
0

toComp is not working correctly for Particular and Element 3d (pics included to demonstrate problem)

New Here ,
Jan 04, 2014 Jan 04, 2014

Copy link to clipboard

Copied

So, Im using AE CS6. The two plugins concerned are Element 3d and Trapcode Particular.

Im going to include alot of information since I'm not sure what would come in handy to know to solve this.

The final goal is to have the particle emitter follow the left wing of the object when the object is moved using the null named 'Scythe'. (See first photo)

'Scythe' is the brownish null at the center of the object.

I have used the follwing expression line on the Particles X,Y emitter:

thisComp.layer("Element Position 2").toComp([0,0,0]);

'Element Position 2' is the green Null you see in this picture, and is also the proper position for the particle emitter.

http://i.imgur.com/qtucKAx.png

http://imgur.com/qtucKAx

However, when this expression is applied it moves the emitter location. As shown in the following picture.

http://i.imgur.com/uSezbYY.png

http://imgur.com/uSezbYY

The emitter is only in the proper location on the first frame (first pic), on the second frame (second pic) and every frame afterwards, it is elavated to another position.

Can someone help me correct the new position without manually adjusting the ([0,0,0]) value in the expression line?

TOPICS
Expressions

Views

888

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 06, 2014 Jan 06, 2014

Copy link to clipboard

Copied

If I am not mistaken, the null you are trying to use is parented. You need to use toWorld instead of toComp.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2022 Sep 25, 2022

Copy link to clipboard

Copied

quote

If I am not mistaken, the null you are trying to use is parented. You need to use toWorld instead of toComp.


By @graymachine

why my .tocomp is not working. I applied this expression . thisComp.layer("Shape Layer 1").toComp([0,0])

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2022 Sep 25, 2022

Copy link to clipboard

Copied

LATEST

toComp() converts point coordinates. You need to tell it what to convert. Something like this would be more appropriate:

 

mLay=thisComp.layer("Star");

mLay.toComp(mLay.transform.anchorPoint)

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines