Summary

Title:Export with Maxscript doesn't do anything
Category:Crash/Critical
Status:Closed
Posted By:nweeden ( Nick Weeden )
Date Created:1 March 2022

Problem

Description:

I have tried to use the maxscript example to export hair as an alembic but with no success.

The code I've used is:

-- Export to an alembic file
resultFilePath = "C:\\Users\\Nick\\Dev\\Testing\\Groom\\Groom.abc"
OxAlembicExport resultFilePath true 0 0

In the listener I get:

"C:\Users\Nick\Dev\Testing\Groom\Groom.abc"
undefined

and no file is created.  Any help on getting this working?  Exporting the selected object using the UI works fine.

 

Steps to Reproduce:

-- Export to an alembic file
resultFilePath = "C:\\Users\\Nick\\Dev\\Testing\\Groom\\Groom.abc"
OxAlembicExport resultFilePath true 0 0

Please provide all parameters to the OxAlembicExport function, as described here: https://ephere.com/plugins/autodesk/max/ornatrix/docs/7/Alembic_Export.html#MaxScript-Access

Here is an example from our unit tests:

local resultFilePath = TestUtilities.GetTestFilePath "SingleStaticHair.abc"
OxAlembicExport resultFilePath true 0 0 false 2 false 1

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Thank you for the quick response.  That works now.  The code I was using was from the unit test file linked to in your documentation, so it looks like that is probably out of date now.

Can we use this to export for Unreal as well?  I can't see a parameter that would match the Unreal 4 checkbox.

Nick

We don't have the Unreal Engine option exposed to Max Script but we will consider it for a future release.

Edit: This has been implemented for the next build.

Jeordanis Figuereo (Product Designer. EPHERE Inc.)