Alembic_Import : ImporterPlugin

Exposes the Alembic Importer plugin to MAXScript. Available in 3ds Max 2016 and higher.

Constructor

Class instances not creatable by MAXScript.

Aliases:

Alembic_Import
AlembicImport

Alembic_Import interfaces:

Interface: AlembicImport

Properties:

AlembicImport.ZUp : boolean : Read|Write

When set to True, the imported file will be treated as a 3ds Max Z-up coordinate system.

When set to False, the imported file will be treated as a Maya Y-up coordinate system.

AlembicImport.ImportToRoot : boolean : Read|Write

Controls the state of the "Import To Root" option of the Alembic Importer.

When set to False (default), the imported Alembic objects will be parented to an Alembic Container. This is useful if you want to transform or select all imported Alembic objects as one.

When set to True, the imported Alembic objects will become Children Of The World without a parent.

Methods:

No methods exposed.

Actions:

No actions exposed.

EXAMPLE

--This example uses the files created in the 
--AlembicExport:ExporterPlugin topic:  
resetMaxFile #noprompt --reset the scene
AlembicImport.ZUp = true --tell the importer to expect Z up (Max mode)
AlembicImport.ImportToRoot = false --parent to an Alembic Container
importFile (GetDir #export +"\\alembictest_hdm5_max.abc") #noPrompt using:AlembicImport
--RESULT: The loaded Cone matches the original animation

resetMaxFile #noprompt --reset the scene
--note that the importer is still in Max Z up mode
importFile (GetDir #export +"\\alembictest_ogawa_maya.abc") #noPrompt 
--RESULT: The Cone will be imported with the wrong orientation 
--because the file contains Y up data.

resetMaxFile #noprompt --reset the scene
AlembicImport.ZUp = false --tell the importer the file is not Z-up
AlembicImport.ImportToRoot = true --import as Child Of The World
--import the Maya file with Z up disabled:
importFile (GetDir #export +"\\alembictest_ogawa_maya.abc") #noPrompt 
--RESULT: The Cone will now be oriented correctly

See Also