Skip to main content
Participant
January 4, 2014
Question

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

  • January 4, 2014
  • 2 replies
  • 1201 views

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?

This topic has been closed for replies.

2 replies

Mylenium
Legend
September 25, 2022

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

graymachine
Participating Frequently
January 7, 2014

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

Participant
September 25, 2022
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])