Itoo Software Forum

Author Topic: placing a single segment and controlling it's position  (Read 651 times)

EB4448

  • Newbie
  • *
  • Posts: 7
placing a single segment and controlling it's position
« on: May 06, 2015, 08:41:23 PM »
http://imgur.com/LJYfsix

hello everyone,
i'm trying to place a 'single segment' on a Linear generator, with another segment in the default that populates behind and in front of the 'single segment'. this will be a bridge support when finished and it will have a bridge that runs over the top of the road.

in order to create the shot seen in the image above, i had to put a single vertex on the spline and i set the bridge support segment as a corner just to illustrate what i'm trying to achieve.

i'll be doing this for many roads and i really didn't want to add additional vertices to the splines. i was hoping there might be a way to create a parameter (maybe with an arithmetic or conditional operator?) where i can adjust the distance in scene units to say where i want the single segment to be positioned on the spline. it would be ideal to plug the single segment into the evenly slot with a count of 1 and then an offset ability (since it will start centered) but that doesn't seem possible. any ideas? i'm not against using multiple generators in some creative way within a single railclone object. and again, i just wanted to have a parameter in hand to adjust the position (in scene units) and not have to deal with plotting extra vertices on the spline. any help would be appreciated!

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
Re: placing a single segment and controlling it's position
« Reply #1 on: May 07, 2015, 09:48:23 AM »
Hi,

Thanks for your question. This may be possible using a conditional operator to limit the Evenly segments so that it only appears once per spline. The other evenly division would still exist but a null segment is used instead of the actual geometry.



To do this, wire a Conditional operator between the Evenly segment and the generator and set the its properties to X Counter Equals 1. Wire a new segment with no geometry to the false input.



To control the spacing so that it measures exactly from the beginning of the spline, turn off Justify found in Generator > Properties > Rules > Evenly .

Please see the attached file for an example.

I hope that helps,please let me know if you have further questions.

Many thanks,

Paul
Paul Roberts
iToo Software

EB4448

  • Newbie
  • *
  • Posts: 7
Re: placing a single segment and controlling it's position
« Reply #2 on: June 15, 2015, 04:19:04 PM »
thank you for your response! this was a huge help, and covered everything i needed to know