ATF_SKETCHUP_Import : ImporterPlugin

NEW in 3ds Max 2020.2 Update: Exposes the Autodesk Translation Framework Sketchup (.skp) Importer plugin to MAXScript. This is the new default Sketchup importer for .skp files which replaces the legacy sketchUp:ImporterPlugin, so specifying this importer with the using keyword parameter to importFile() is not required.

Constructor:

Class instances not creatable by MAXScript.

   

   

Aliases:

   

SKETCHUP_Import interfaces:

Interface: Import Settings	 

   

Properties:

.UpAxis : enum : Read|Write
       UpAxis enums: {#x|#y|#z}

Gets or sets the selection of the "Up Axis" drop-down list.

Possible values are:

   

.HierarchyMode : enum : Read|Write
       HierarchyMode enums: {#UsingGrouping|#UsingLayer|#Flattened}

Gets or sets the selection of the "Hierarchy Mode" drop-down list, which determines how the imported scene is organized by 3ds Max.

Possible values are:

   

.ImportTextures : boolean : Read|Write

Gets or sets whether to import textures.

When set to True, textures are imported in the project's textures directory.

   

.ImportCameras : boolean : Read|Write

Gets or sets whether to import cameras.

When set to True, cameras are imported.

   

.DoubleSidedMaterials : boolean : Read|Write

Gets or sets whether to import materials as double-sided.

When set to True, faces are covered with a double-sided material so that flipped faces have the appearance of correct orientation.

   

Example:

-- ATF_SKETCHUP_Import example

resetMaxFile #noPrompt

-- Set all the supported options
ATF_SKETCHUP_Import.UpAxis = #z
ATF_SKETCHUP_Import.ImportTextures = true
ATF_SKETCHUP_Import.ImportCameras = true
ATF_SKETCHUP_Import.HierarchyMode = #UsingGrouping
ATF_SKETCHUP_Import.DoubleSidedMaterials = true

file_path = @"D:\My Documents\3ds Max\scripts\TestData\Sketchup\TexturedHouses.skp"
result = importFile file_path #noPrompt using:ATF_SKETCHUP_Import