Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: arch3d on November 10, 2021, 03:50:50 AM

Title: Numeric sequence macro
Post by: arch3d on November 10, 2021, 03:50:50 AM
Hi,
Regarding this tutorial:https://www.itoosoft.com/tutorials/counting?back=page%3D7%26tag%3Drailclone
Is it possible to do kind of macro in which i can define first number and RC wil keep proper sequence. Of course I can do it manually changing numbers order but i have planty objects to generate ( around 60 ) and each of them starting with different number.

Best
Michal
Title: Re: Numeric sequence macro
Post by: Dragan on November 10, 2021, 07:02:51 AM
This is already done with generator based on materials.
Do you need one based on geometry segments? (see attachment, exposed Index Parameter)
Are those 60+ objects separate RC objects and you just need an exposed parameter or everything is part of one RC object/Style and do you have some kind of a rule starting sequences?
Title: Re: Numeric sequence macro
Post by: Dragan on November 10, 2021, 11:52:18 AM
Sorry I just noticed that you need a Macro   (my speciality!  8) 8))
This one is based on geometry.
You can set a number of digits and starting index.
Please let me know if you need more.
Best Regards
Title: Re: Numeric sequence macro
Post by: arch3d on November 10, 2021, 12:59:40 PM
Dragan
You save my life!

counting_end .max is just perfect.

I have over 60 different roads and I need to show road kilometer stones:P

Best Michal
Title: Re: Numeric sequence macro
Post by: Dragan on November 10, 2021, 01:07:53 PM
I forgot to mention the most important!!!
You need to rename the main generator to "Master" because Macro use this name to calculate some values :D
Title: Re: Numeric sequence macro
Post by: arch3d on November 10, 2021, 01:16:54 PM
ok thx
Title: Re: Numeric sequence macro
Post by: Dragan on November 10, 2021, 01:54:47 PM
Ok. I add Material_ID to the Macro so you can make a selection by SplineID.
Please check additional TROUGH INPUT. You can chain multiple macros and select different parameters per ID .
This is just an idea but if you have some particular workflow please let me know, maybe we can easily adopt Macro to your needs.
Please, check the attached scene and the updated Macro.

I use "Master" as the name for the main generators and this is mandatory for calculation inside the macro. Additional in the macro there is another Generator named "AAA", so this is also a name that should not be used for any other generator in your Style to avoid Issues.