Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: IL2267 on July 19, 2023, 03:07:43 pm

Title: number of segments on spline
Post by: IL2267 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?
Title: Re: number of segments on spline
Post by: Paul Roberts 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
Title: Re: number of segments on spline
Post by: IL2267 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!