OxAlembicExport documentation in Ornatrix 7 help missing information

 
 
 
Posted by:tony.dugard
Data created:15 July 2022

Hello, 

I'm currently trying to batch export hair to alembic files. When i use the OxAlembicExport found in the  https://ephere.com/plugins/autodesk/max/ornatrix/docs/7/Alembic_Export.html page maxscript throws an error.

The help : 

OxAlembicExport [string filePath] [bool exportSelectedHairs] [int startFrame] [int endFrame] [bool exportRenderVersion] [int upDirection] [int format] [bool useWorldCoordinates] [bool exportVelocities] [bool velocityIntervalCenter] [bool velocityIntervalLength] [bool exportStrandData]

My code :

OxAlembicExport @"S:\node_.name.abc" True 0 0 True 2 0 True False 0 0.5

The error :

Unable to convert: false to type: Float

The help is wrong because the function need a float for exportVelocities (which has to be a boolean flag) and help mentions a bool for <span style="font-family: arial, helvetica, sans-serif;">velocityIntervalCenter and <span style="font-family: arial, helvetica, sans-serif;">velocityIntervalLength (those need to be floats). The help also forgot the </span></span>[bool exportStrandGroups] [bool exportStrandIds] [bool exportWidths] [bool exportTextureCoordinates] [bool exportNormals] and since i need to set those flags, the command need all parameters to be set.

Please can you give me the updated help for this command and update the documentation ?

I'm using Ornatrix 7.2.3.27923

Thanks

My bad, the error isn't for the exportVelocities which seems to work fine. But the command in the help is wrong (bool for velocityIntervalCenter and velocityIntervalLength) and is missing the order of exportStrandGroups, exportStrandIds, exportWidths, exportTextureCoordinates, exportNormals my commande was :

OxAlembicExport "S:\\test.abc" True 0 0 True 2 0 True False 0 0.5 False False False True False False

assuming the order was :

OxAlembicExport [string filePath] [bool exportSelectedHairs] [int startFrame] [int endFrame] [bool exportRenderVersion] [int upDirection] [int format]
[bool useWorldCoordinates] [bool exportVelocities] [float velocityIntervalCenter] [float velocityIntervalLength] [bool exportStrandData] [bool exportStrandGroups]
[bool exportStrandIds] [bool exportWidths] [bool exportTextureCoordinates] [bool exportNormals]

What is the real order ?

Just asking again, i really need to flags to be set at export.

Sorry for missing this topic, I have updated the documentation with the correct function parameters, please reload the page.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Thanks for the update it's working now, juste a typo in the help :


[bool velocityIntervalCenter] [bool velocityIntervalLength]

Should be

[float velocityIntervalCenter] [float velocityIntervalLength]

That's right, thanks for spotting it. Will be fixed next time we update the documentation.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev