Itoo Software Forum

Author Topic: Maxscript Commands  (Read 417 times)

ben_img

  • Newbie
  • *
  • Posts: 33
Maxscript Commands
« on: January 24, 2023, 03:56:47 PM »
Hi,

i found out the xml export, and the list of things you can extract.

Are all those options available in maxscript ?
for instance, i can display the position of a node in maxscript, but can i access x, y, z individually ?
As i need to export coordinates for a game engine, which isn't 'xyz' but 'xz-y'... so either i can customize the export in xml / or use maxscript.
Or... i need to parse by hand the xml and export a new xz-y version.

i found the "showinterfaces $" to display some functions, are they all here ?

thanks in advance :)

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2466
Re: Maxscript Commands
« Reply #1 on: January 25, 2023, 11:25:45 AM »
Hi,

Sure, apart from the mentioned Forest Exporter tool (developed mainly to be used in advanced pipelines to aid interoperability between software), you can use Maxscript to obtain these positions:

$.trees.getPosition (<point3>getPosition <integer>n) – you can access .x .y & .z properties of these Point3 values.

I hope that helps.

Best regards,