Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: ayham4cg on December 31, 2022, 09:41:38 AM

Title: Help to link an object to railclone animated object
Post by: ayham4cg on December 31, 2022, 09:41:38 AM
I have an animated railclone object on a spline and i need to link another object (plane, helper or light) to the railclone animated object to export the transformation to after effects, is there any way to do it?
Title: Re: Help to link an object to railclone animated object
Post by: Michal Karmazín on January 02, 2023, 09:26:24 AM
Hi,

You can use the Position Script Controller for these purposes and “link” such an object to a specific vertex of the "animated" RailClone object (by using polyOp.getVert). I’m attaching the sample scene. I hope that helps.

Best regards,
Title: Re: Help to link an object to railclone animated object
Post by: ayham4cg on January 02, 2023, 02:27:45 PM
Thank you so much
Is it possible to link the rotation? beacause I have a curved spline so I need the helper to follow the direction
Title: Re: Help to link an object to railclone animated object
Post by: Michal Karmazín on January 03, 2023, 11:05:54 AM
Hi,

Sure, that‘s something feasible in a very similar way. You can get a normal vector belonging to some vertex (by using getNormal) or and based on that calculate the corresponding rotation by the Rotation Script controller. Please find attached the modified sample scene.

Best regards,
Title: Re: Help to link an object to railclone animated object
Post by: ayham4cg on January 03, 2023, 01:50:43 PM
Thank you sooooo much