Itoo Software Forum

Author Topic: Help to link an object to railclone animated object  (Read 154 times)

ayham4cg

  • Newbie
  • *
  • Posts: 3
Help to link an object to railclone animated object
« 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?

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1966
Re: Help to link an object to railclone animated object
« Reply #1 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,

ayham4cg

  • Newbie
  • *
  • Posts: 3
Re: Help to link an object to railclone animated object
« Reply #2 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

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1966
Re: Help to link an object to railclone animated object
« Reply #3 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,

ayham4cg

  • Newbie
  • *
  • Posts: 3
Re: Help to link an object to railclone animated object
« Reply #4 on: January 03, 2023, 01:50:43 PM »
Thank you sooooo much