Itoo Software Forum

Author Topic: Mapping from nested array  (Read 380 times)

Rio

  • Jr. Member
  • **
  • Posts: 80
Mapping from nested array
« on: April 24, 2023, 11:48:45 AM »
I can see why this is happening, the mapping is being taken from the parent array rather than the children, but I need to retain mapping applied in the child array. Is there any way to do this, maybe with script operator?

Here is the mapping, working correctly before I nest the arrays



Rio

  • Jr. Member
  • **
  • Posts: 80
Re: Mapping from nested array
« Reply #1 on: April 24, 2023, 11:49:10 AM »
Mapping once it's in the nested 'parent' array

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2486
Re: Mapping from nested array
« Reply #2 on: April 25, 2023, 12:55:16 PM »
Hi,

Well, when using the Segment > Mapping feature, it’s being applied in the “final stage”, once all segments are placed and transformed. It would be necessary to transform and map segments in the child generator, and then use the resulting geometry in the parent generator, but the RailClone plug-in doesn't work in that way – it just computes the mapping values according to the operators and applies mapping to the segments in the final stage.

An option might be using “nested RC objects” in your style instead of “nested Generators”.

I hope that clears it up.

Best regards,