Itoo Software Forum

Author Topic: Defination to expression in RailClone  (Read 1908 times)

Shinobi

  • Newbie
  • *
  • Posts: 7
Defination to expression in RailClone
« on: May 20, 2022, 09:40:11 AM »
 ;D
Hi everyone, I am back with my questions! ;D
I and my friend are looking for an expression to define our desire!
I have tried to toying with equations but doesn't work for me. I am looking for a series expression to array my object along a path by increasing distance as I define it! for example in the following attachment I wanna increase or decrease the distance between objects from a to na .
Or the distance could be increase or dicrease by other functions but the specifice value of the length is important how and based on what!

Truly appreciate your support and feedbacks  ;)

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Defination to expression in RailClone
« Reply #1 on: May 20, 2022, 09:57:09 AM »
Personalized help is provided in the PRO forum section.
But try to add Transform operator and expose Left Padding.  Don't forget to enable Override paddings.

Use the SegmerntXCounter attribute as a counter multiplicator.

Set Input1 node for X'
Set arithmetic expression as:

Return
(SegmentXcounter-1)*Input1;


Connect to Left Padding.






 


Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Defination to expression in RailClone
« Reply #2 on: May 20, 2022, 10:10:54 AM »
just one note:
You can achieve the same effect using the sequence operator instead of paddings.
Paddings are not cumulative and can be overridden during the Style creation so you should be careful with those.

So, using Sequence can be the second way to do it.
The first input will be your Segment and the second input will be the Transform operator with an exposed X size parameter (Enable Override Fixed Size). Input dot can remain empty and it will act as you connected the Empty Null Segment node.
The expression for the size is the same as for the previous one, just connect it to X Fixed Size.

Shinobi

  • Newbie
  • *
  • Posts: 7
Re: Defination to expression in RailClone
« Reply #3 on: May 20, 2022, 10:28:04 AM »
Thanks again Daragan for being supportive! actually I've tried with the sequence too but the problem is the distance is not clear it just get increased by a unknown equetion and the first distance is okay but the second distance has kind of decimal numbers and ...

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Defination to expression in RailClone
« Reply #4 on: May 20, 2022, 10:41:02 AM »
Can`t go more on this because of the rules.
Is your Style something like this?

Shinobi

  • Newbie
  • *
  • Posts: 7
Re: Defination to expression in RailClone
« Reply #5 on: May 20, 2022, 10:49:49 AM »
Still many thanks for following up! Acutally I am using legally Combo licence just bought couple of days ago.

Yes! i did the same as your but see the problem is the distance ! I wanna control and define the increasing distance sequence bymyself not by railclone predefined expression.

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Defination to expression in RailClone
« Reply #6 on: May 20, 2022, 10:59:34 AM »
well, to follow your sketch and if a=input1 expression should go:

Return
(segmentXcounter/2)*Input1;



Shinobi

  • Newbie
  • *
  • Posts: 7
Re: Defination to expression in RailClone
« Reply #7 on: May 20, 2022, 11:14:08 AM »
 :-* :-* :-* :-* :-*

It worked Dragan I love you mannnn  :D :D :D ;D :-*

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Defination to expression in RailClone
« Reply #8 on: May 20, 2022, 11:25:21 AM »
Glad to help  ;)