Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: nmoser on March 22, 2024, 01:50:24 pm

Title: Path distribution setting one object to appear at the beggining of spline
Post by: nmoser on March 22, 2024, 01:50:24 pm
I’m working with a Forest Pack object where items are distributed along a path.
Is there a way to ensure that a specific object appears always at the start of each spline, another at the end of the spline and maintaining random in the middle.
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: Michal Karmazín on March 22, 2024, 02:30:45 pm
Hi Nuno,

That's a task for the RailClone plug-in, which is much more suitable for something like that. You can easily wire these models into the Start, Default / Evenly, and End Inputs of the Linear 1S (https://docs.itoosoft.com/railclone/style-editor/1d-arrays-generator-l1s) Generator.

I hope that helps.

Best regards,
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: nmoser on March 22, 2024, 04:59:59 pm
Even if the object I'm working is vegetation?
What I'm trying to accomplish here is scattering hedges along splines, but there is a specific object that needs to be used at the beguiling otherwise will look wrong
I tried to find something on the effects but unfortunately It's too advanced for my knowledge.
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: Michal Karmazín on March 27, 2024, 10:26:32 am
First, let me apologize for the late reply. Of course, the RailClone plug-in can handle the vegetation easily and it can also deform it if needed. If you prefer using the Forest Pack plug-in, as you've pointed out, the Effects feature can be used to assign the corresponding item (.geomID) based on the position on the path (.distPathPos). Please find attached a sample scene (distPathPosSampleScene.max) demonstrating this possible approach. Alternatively, you can switch to the Custom Edit mode and select the first and last item manually. I hope that helps.

Best regards,
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: swavec on July 05, 2024, 10:42:01 am
Hi
This is good function, but what if i have more items to scatter? It seems to be limited to only 1 item between start and end ones.
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: Michal Karmazín on July 05, 2024, 01:05:27 pm
Please find a modified version of the sample scene with the randomInt(a,b) function which generates an integer random number within the specified range (which should be adapted upon the total number of used items). I hope that helps.

Best regards,
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: swavec on July 05, 2024, 03:57:08 pm
Can i ask for at least 2022 version?
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: Paul Roberts on July 08, 2024, 10:27:31 am
Here's a version saved back to Max 2022.

Many thanks,

Paul
Title: Re: Path distribution setting one object to appear at the beggining of spline
Post by: swavec on July 09, 2024, 04:24:41 pm
Tank you very much. It will serve me long time.