Itoo Software Forum

Author Topic: railclone - condition on "first vert" and on "last vert" resize  (Read 112 times)

RB2300

  • Newbie
  • *
  • Posts: 25
    • DEVconstruction
Hello please everyone,
this is simple one... I am trying get condition "if First vertices on the spline then resize on 1m, if is the last vertices resize on 2m" unfortunately i cant make it works :( the counting of vertices it seems it doesn't work.

I am using right now these conditions
/// STARTING SPLINE
return if (XSplinePosition==0, Input1,0.1);
/// ENDING SPLINE
return if (XSplinePosition>0, Input2, 0.1);

the value 0.1 is just see if condition works or not... now we can see that it doesnt work because end is in size of 0.1.

please if someone can make it works it will be really great because i need it for resize a furniture when is starting and finishing... into different starting size in case there is different size of the furniture based on mat_id

Thank you if someone would know how to fix it, it will be super great..
Best regards Pavol

« Last Edit: March 08, 2021, 06:46:06 AM by RB2300 »

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 3134
    • iToo
Re: railclone - condition on "first vert" and on "last vert" resize
« Reply #1 on: March 08, 2021, 07:50:40 AM »
Hi.
Y size parameter can't be variable. It is computed once and whole generator gets that property.

You should manipulate actual segments based on their location, not generators size.
Rokas
iToo Software

RB2300

  • Newbie
  • *
  • Posts: 25
    • DEVconstruction
Re: railclone - condition on "first vert" and on "last vert" resize
« Reply #2 on: March 08, 2021, 08:01:55 AM »
thank you so much for replay...
I am sorry "manipulate actual segments based on their location" i dont understand this be honest....

please if i will set "size" into segment... then i cant get size... i will get just cuts inside segments... but size will be same ....

please is there any other solution to resize segment? please?

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 3134
    • iToo
Re: railclone - condition on "first vert" and on "last vert" resize
« Reply #3 on: March 08, 2021, 08:36:05 AM »
simplest example:
both Start and end segments gets their own individual segments properties:




Rokas
iToo Software

RB2300

  • Newbie
  • *
  • Posts: 25
    • DEVconstruction
Re: railclone - condition on "first vert" and on "last vert" resize
« Reply #4 on: March 08, 2021, 09:02:28 AM »
Hello Rokas :-) thank you,
you are right "linear generator" works... but "array 2S" doesnt in case of height.... height is going to be just sliced.
No problem i will try move this from "2S" to "linear".

Thank you very much for this functional solution. We should buy you a drink for your great support here on the forum

Adnan Malkoç

  • Newbie
  • *
  • Posts: 20
Re: railclone - condition on "first vert" and on "last vert" resize
« Reply #5 on: March 08, 2021, 09:21:50 AM »
Thank you very much for this functional solution. We should buy you a drink for your great support here on the forum

If everybody had buy a drink for Rokas and all other great guys here, they would have the largest drink stock in the world :)