Itoo Software Forum

Author Topic: Feeding FP directly with data by script  (Read 1960 times)

frodo

  • Newbie
  • *
  • Posts: 42
Feeding FP directly with data by script
« 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

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2587
Re: Feeding FP directly with data by script
« Reply #1 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,