Itoo Software Forum

Author Topic: number of segments on spline  (Read 833 times)

IL2267

  • Newbie
  • *
  • Posts: 14
number of segments on spline
« on: July 19, 2023, 03:07:43 PM »
Hello. I have a RC objects that has one segment plugged in the default mode set to adaptive. Is there a macro I could use to output the number of segments that are on that spline at any given moment?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: number of segments on spline
« Reply #1 on: July 19, 2023, 05:45:04 PM »
Hi - that information isn't currently available in expressions, nor in a built in Macro. You can hack it a bit by creating a macro that counts segments using geometry based on the size of the segment you plan to use in the final scene. Please take a look at the attached and let me know if it's of any help. It can probably be adapted for other uses.

Cheers,

Paul
Paul Roberts
iToo Software

IL2267

  • Newbie
  • *
  • Posts: 14
Re: number of segments on spline
« Reply #2 on: July 20, 2023, 05:12:18 PM »
Thank you Paul! I managed to find a workaround for my style. I will study the file you sent to me so and maybe it will come in handy in another project. Regards!