Itoo Software Forum
Forest Pack => Forest Pro (*) => Topic started by: ben_img 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 :)
-
Hi,
Sure, apart from the mentioned Forest Exporter (https://docs.itoosoft.com/forestpack/instantiating-and-exporting/forest-tools#ForestTools-ForestExporter) 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,