Changing components from one path to another but mantaining the position

Hi everyone,

I have been trying to model a 90º conveyor with rollers and belts. I want to program it so that, when I set the rollers down, the product changes direction and follows the path of the belts.

Everything seems to work fine except for the fact that the product, when grabed by the output path, gets moved to the center of the frames. (As it can be seen in the GIF below)

90degreesConveyor

I tried adjusting the path frames but didn´t manage to make it work, here is the code I used:

And this is the component in VCMX:
90DegreeConveyor.vcmx (50.6 KB)

Just to clarify, my goal is to change the direction the product has but not to move its position in the X axis. If anyone has a solution for this it would be much apreciated.

Well, I feel stupid now :neutral_face:, it was as easy as checking the box that sais “RetainOffset” at the TwoWayPath.
image

I will leave the post if anyone runs to the same task.

1 Like