Itoo Software Forum

Author Topic: Marker Data have no influence on Geometry Offsets  (Read 217 times)

Dragan

  • Sr. Member
  • ****
  • Posts: 314
Marker Data have no influence on Geometry Offsets
« on: September 19, 2019, 11:17:09 PM »
Hi
Marker Data values have no influence on parameters for Geometry Offsets.


Dragan

  • Sr. Member
  • ****
  • Posts: 314
Re: Marker Data have no influence on Geometry Offsets
« Reply #1 on: September 20, 2019, 11:10:14 AM »
Hm
I got more issue or non-logic behaviour:

btw. I Can`t Select RC icon in viewport by simple LMB, instead, I have to do a rectangular selection. 



RC Spline Marker is set to Start/0 Percentage

please follow these steps on the startup file:

1. A Transform to Default (Generator A)
2. Arithmetic A_0 to A Transform/Z Fixed Size
3. Arithmetic A_1 to A Transform/Y Fixed Translation
4. fixed > NULL to Marker
--------------------------------------------------------------------------------------------------------------------------

1. A Transform to Start (Generator A)
2. Null to Marker (Generator A)
The Marker Segment will overtake the Start Segment and this is ok but maybe it will be good to have an option for Marker Segment to co-exist with other since Marker Segment could have some different Parameters set by User Data
--------------------------------------------------------------------------------------------------------------------------

1. B Transform to Default (Generator B)
2. Null to Marker (Generator A)
3. Arithmetic A_0 to B Transform/Z Fixed Size
Why A.XMarkerData[0] does not affect to B Transform/Segment connected to B Generator?
« Last Edit: September 20, 2019, 11:49:56 AM by Dragan »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1701
Re: Marker Data have no influence on Geometry Offsets
« Reply #2 on: September 20, 2019, 01:40:20 PM »
Hi Dragan,

Thanks for the question - I will take each in turn.

>> Marker Data values have no influence on parameters for Geometry Offsets.

Yes, I'm afraid this isn't really what markers are designed for. For example, you could have multiple makers on a spline each with different data, in that case RailClone would not know which marker's data to use. The Generator's rules, including offsets, apply to the whole of each spline attached to the generator. At present you cannot change them mid spline I'm afraid. Instead, you could do this using the Transform operator.

>> Example 1 - Using markers at position 0
It seems you have solved this one already by adding a Null segment to the Marker's input, but it relates to the explanation in the second example....

>> Example 2 - Marker replaces start segment

The marker will indeed overwrite the geometry in the start segment. This is because Markers can not occupy exactly the same position as other markers, vertices, evenly segments, the start, or the end. Internally the spline is divided by all these inputs, and you cannot divide the same position twice. When evaluating spline divisions that occupy the same position, the order is as follows: Evenly, Corner, Start, End, Marker. As you can see - marker overwrites all other types.

If you do need geometry in exactly the same place as another input, one solution would be to use another generator.

>> Example 3 - Marker Data not working on the second generator.

This is because of the way you have written the expressions. To access the marker data you have used the dot syntax used to specify a specific generator:

return A.XMarkderData[0];

The A refers to the generator's name, so it won't work on another generator. This syntax is intended for use with nested generators for when you need to specify which one you wish to access the data from. In this case though, there is no nesting so you can simply use:

return XMarkderData[0];

And it will work with every generator to which it is attached.

I hope that all makes sense, please let me know if you have any further questions.

All the best,

Paul

Paul Roberts
iToo Software

Dragan

  • Sr. Member
  • ****
  • Posts: 314
Re: Marker Data have no influence on Geometry Offsets
« Reply #3 on: September 20, 2019, 02:12:37 PM »
Thank you Paul.
All make sense.
Just for Example "3 - Marker Data not working on the second generator".
I kinda assumed that the Arithmetic/Expression node will get the Value from ##.XMarkerData and I could use it as usual value like e.g. Numeric node anywhere in the active Style.
I`m testing Beta on some large scale Style with a lot of Macros and staff  ;). So some times I get the need for some option like Z Offset for Generator. But as You pointed, there has to be some limitation to avoid potential issues. Fortunately, RC is so flexible so one or two Transform operator will do the work.

The real-time calculation could be slow if Style is complex especially during some Spline editing.
Although, I have a lot of fun working with RC4. A Huge leap from RC3!!! 

Best Regards
Dragan