Itoo Software Forum

Author Topic: Numeric sequence macro  (Read 507 times)

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Numeric sequence macro
« 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

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Numeric sequence macro
« Reply #1 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?
« Last Edit: November 10, 2021, 12:58:33 PM by Dragan »

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Numeric sequence macro
« Reply #2 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

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Numeric sequence macro
« Reply #3 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

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Numeric sequence macro
« Reply #4 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
« Last Edit: November 10, 2021, 01:15:08 PM by Dragan »

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Numeric sequence macro
« Reply #5 on: November 10, 2021, 01:16:54 PM »
ok thx

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Numeric sequence macro
« Reply #6 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.
« Last Edit: November 10, 2021, 06:21:28 PM by Dragan »