Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: frodo on June 17, 2024, 11:28:09 pm

Title: Feeding FP directly with data by script
Post by: frodo on June 17, 2024, 11:28:09 pm
Hi,
I'm looking for a way to dirrectly feed FP with data (position,rotation,scale of items) by script. Something like reference distribution mode but withoud it. I have over 12k items to scatter and reference mode becomes really slow after 10k items :/
Thanks for any tip
Title: Re: Feeding FP directly with data by script
Post by: Michal KarmazĂ­n on June 18, 2024, 09:01:42 am
In the 'Custom Edit' mode, an interface named 'trees' is accessible via MaxScript. You can use the following functions for these purposes (you can check all available functions with showinterfaces($)). However, please note that performance may vary when operating with many items:

Code: [Select]
$.trees.create
$.trees.setPosition
$.trees.setRotation

I hope this helps.

Best regards,