ITOOSOFT Forum

Author Topic: Multipe spline issues  (Read 726 times)

Dragan

  • Hero Member
  • *****
  • Posts: 1485
Multipe spline issues
« on: July 30, 2025, 08:27:17 am »
As usual, I am working on a large generator and trying to simplify the process of generating complex splines. Right now, I am focusing on creating something similar to Array and Stacker functionalities. Array isn't a problem as the Offset Operator can be used, but for Stacker, I had to be a bit more innovative to obtain the X/Y Bounding Box of the spline.
In this regard, I have one ER (Feature Request) to potentially introduce an operator that would return the Bounding Box of the current Spline Setup. I am aware that splines can be placed in many ways, but I believe that the Bounding Box of the entire setup could be useful. I created a small macro that currently does the job, but I believe if it were integrated into the core, the result would be calculated much faster.

I also encountered a couple of technical issues:

1. The size of the macro window is determined by its name, not the longest text in the window, so we need to add a few blank characters to increase its size.

2. The Default values of the String type Parameter for the Sequencing MatID are not working.

3. When I tried to apply the translation to the Stack, the entire Spline Setup was correctly moved and participated correctly in the segment generation, but there was a "duplicate" left at the original position (I assume this happens because they are additionally generated through generators in the auxiliary macro for the Bounding Box).

If you need any further clarification, feel free to ask. I have more topics to discuss, but it would be nice if we could have a live chat, as it is really hard to explain everything with images and text.
Best Regards


Michal Karmazín

  • ITOOSOFT
  • Hero Member
  • *****
  • Posts: 3069
Re: Multipe spline issues
« Reply #1 on: July 30, 2025, 09:37:28 am »
Hi Dragan,

Thank you very much for reporting these issues and for sharing the scene and image—it's a big help in identifying the problems clearly. I've passed all the details on to our main developers, and they’ll look into it further.

Once again, big thanks for your detailed feedback.

Best regards,

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4697
    • iToo Software
Re: Multipe spline issues
« Reply #2 on: July 31, 2025, 10:40:19 am »
Hi Dragan,

Regarding issue 2: are you sure you have not modified the value for this macro parameter ?
I tried creating a new String parameter, and default value is set correctly. But once the macro is in the scene, if you modify the parameter, it cannot be reverted to the default value.
Usually default value is used for the Library, to set a default when imported.

Carlos Quintero
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1485
Re: Multipe spline issues
« Reply #3 on: July 31, 2025, 11:02:11 am »
Let me simplify:

Dragan

  • Hero Member
  • *****
  • Posts: 1485
Re: Multipe spline issues
« Reply #4 on: July 31, 2025, 11:03:17 am »
The parameter is empty, so the default values should be active.

Dragan

  • Hero Member
  • *****
  • Posts: 1485
Re: Multipe spline issues
« Reply #5 on: July 31, 2025, 11:09:51 am »
Usually default value is used for the Library, to set a default when imported.

You are right, but in some cases, you can use Macro-->Reset Parameters for the Macros to get the default values.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4697
    • iToo Software
Re: Multipe spline issues
« Reply #6 on: August 01, 2025, 09:52:07 am »
The parameter is empty, so the default values should be active.

Ok, i understand. Unfortunately it would be very complex to implement that in the current workflow.

All parameters returns some value (in this case an empty string, or zero for numeric). There is no way to apply a specific behaviour when string is empty.
Macro default values are used only for edition and library purposes.

Really when style is evaluated, macros are removed, generating a raw style with all nodes connected between them.

Carlos Quintero
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1485
Re: Multipe spline issues
« Reply #7 on: August 01, 2025, 10:05:20 am »
Thank you, Carlos.
Of course, this is not a critical issue. Thank you for clarifying.
Sure, I have a simple workaround macro for those types of issues, like Multiple Numeric Inputs, but my only concern is the number of logic operations and how this will impact overall speed.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4697
    • iToo Software
Re: Multipe spline issues
« Reply #8 on: August 01, 2025, 10:25:58 am »
I guess performance hit should be negligible. Arithmetic expressions are very optimized for speed.
« Last Edit: August 01, 2025, 10:27:47 am by iToo »
Carlos Quintero
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1485
Re: Multipe spline issues
« Reply #9 on: August 01, 2025, 10:56:08 am »
off topoc:
Carlos, thank you for answering all my questions, not only about simple issues but also with a deep understanding of how everything works. On that matter, I have one issue regarding parameter synchronization through the generator but I have sent a request via helpdesk email.