ApiTypes

API Option Types

Marvelous Designer API provides several Option Type classes that allow you to control various Import and Export behaviors. Each Option Type contains detailed parameters required for specific operations such as Import, Export, ZPRJ, or USD.

Option Usage Example

To use API options, set them as follows:

import ApiTypes

# Create ImportExportOption instance
option = ApiTypes.ImportExportOption()

# Enable garment export
option.bExportGarment = True

# Enable unified texture baking
option.bCreateUnifiedTexture = True

# Export as a single object
option.bSingleObject = True

# Adjust scale
option.scale = 1.0

# Example: apply the option when exporting
import export_api
export_api.ExportOBJ("C:/output/file.obj", option)

WELD_TYPE

"""
Weld type to export meshes. WELDED - merge meshes on seamlines, UNWELDED - as-is
"""
FULLY_UNWELDED = 0   # UNWELDED for all seamlines
DEFAULT_WELDED = 1   # deprecated, but DO NOT REMOVE.
FULLY_WELDED = 2     # WELDED for all seamlines
SELECTED_WELDED = 3  # WELDED for selected seamlines

WindControllerOptions

"""
Settings of one wind controller (Object Browser > Scene > Wind) for UtilityAPI::SetWindControllerSettings / GetWindControllerSettings. Set writes every field.
"""
bWindActive:bool  # true = the wind controller is on (default false)
windType:int      # 0 = spherical (blows outward from the controller), any other value = planar (along its direction) (default 0)
strength:float    # wind strength, as Strength in the Property Editor (default 0)
decay:float       # how fast the strength fades with distance, 0-100 (default 0)
frequency:float   # gust period in seconds, 0-100000; 0 = constant wind (default 0)
turbulence:float  # random variation of the strength, 0-100 (default 0)
x:float           # X position of the controller in 3D, in mm (default 0)
y:float           # Y position of the controller in 3D, in mm (default 0)
z:float           # Z position of the controller in 3D, in mm (default 0)
rotationX:float   # rotation around the X axis in degrees; the wind blows along the rotated +Z axis (default 0)
rotationY:float   # rotation around the Y axis in degrees (default 0)
rotationZ:float   # rotation around the Z axis in degrees (default 0)

ExportComponentSelection

"""
The Object section of the export dialog (Select All Patterns, Select All Avatars, Select All Graphics and
Trims with its groups) for glTF/GLB exports driven through the API. Attached to ImportExportOption as
selectComponent and honoured only while bUseSelectComponent is true. Every group has a switch (true = the
group is exported, like a checked group box). Groups whose objects are named also have a list (xxxList)
holding the names of the particular objects to keep: empty (default) = every object of the group. A name
matches every object of the group with exactly that name (case-sensitive). Component names are the name
field of GetPatternComponents, pattern names those of the Pattern API, avatar names those of the avatar
list. Defaults = every group on, every object.
"""
pattern:bool              # !< Select All Patterns - pattern pieces and bindings
patternList:list[str]     # !< only the patterns with these names. Components sitting on an unlisted pattern are left out as well. Empty = every pattern
avatar:bool               # !< Select All Avatars
avatarList:list[str]      # !< only the avatars with these names. Empty = every avatar
graphic:bool              # !< Graphics - graphics and prints
graphicList:list[str]     # !< only the graphics with these names. Pattern-level prints have no name of their own and follow their pattern. Empty = every graphic
button:bool               # !< Buttons
buttonList:list[str]      # !< only the buttons with these names. Empty = every button
buttonHole:bool           # !< Buttonholes
buttonHoleList:list[str]  # !< only the buttonholes with these names. Empty = every buttonhole
topstitch:bool            # !< Topstitches - texture and OBJ stitches. Switch only
zipper:bool               # !< Zippers - tapes, teeth, sliders, pullers and stoppers
zipperList:list[str]      # !< only the zippers with these names. Empty = every zipper
piping:bool               # !< Piping. Switch only
trim:bool                 # !< Trims - buckles, rings, hardware glued to patterns
trimList:list[str]        # !< only the trims with these names. Empty = every trim
puckering:bool            # !< Puckering. Switch only

ImportExportOption

"""
Options for Export OBJ and Export GLTF as parameters without dialogs in CLO API
"""
bExportGarment:bool                       # true : Export Garment (Cloth Meshes)
bExportAvatar:bool                        # true : Export Avatar (Avatar Meshes)
bSingleObject:bool                        # true : OBJ single object, false : OBJ multiple object
weldType:WELD_TYPE                        # FULLY_UNWELDED : unweld, FULLY_WELDED : weld, SELECTED_WELDED : Weld selected patterns in workspace, DEFAULT_WELDED : Do not use!!!
bThin:bool                                # if true, export the garment as thin mesh. Otherwise, export it as thick mesh.
bUnifiedUVCoordinates:bool                # [Deprecated] - Please use bClothUnifiedUVCoordinates and bAvatarUnifiedUVCoordinates instead.
bCreateUnifiedTexture:bool                # [Deprecated]
unifiedTextureSize:float                  # true: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) The size of unified texture (pixels). Texture will be created in square.
unifiedTextureFillSeamSize:int            # true: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) Fill texture seam size in pixels.
bUseInifinteSeams:bool                    # true: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) Use infinite fill texture seam size.
unifiedTextureBakeMargin:float            # true: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) The margin of the baked texture in the image canvas
unifiedTextureBakeRelateive:bool          # true: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true)
bUnifiedDiffuseMap:bool                   # false: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) export diffuse map baked in the unified uv
bUnifiedNormalMap:bool                    # false: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) export normal map baked in the unified uv
bUnifiedMetalnessMap:bool                 # false: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) export metalness map baked in the unified uv
bUnifiedRoughnessMap:bool                 # false: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) export roughness map baked in the unified uv
bUnifiedOpacityMap:bool                   # false: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) export opacity map baked in the unified uv
bUnifiedDisplacementMap:bool              # false: (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are true) export displacement map baked in the unified uv
bIncludeHiddenObject:bool                 # if true, export all the pattern meshes include 'hidden pattern meshes on 3D' to OBJ
bIncludeInnerShape:bool                   # If true, export geometries of internal lines to ease the picking the internal lines in external modeling tools such as Maya and 3ds Max.
scale:float                               # how to scale the object created in CLO when exporting. The default unit of CLO is millimeters for obj/fbx(mm) and gltf(m)
                                          # use 0.001 for gltf in default
axisX:int                                 # the index of the axis which the X axis will be converted to. If you don't want axis conversion, set this value as "0"
axisY:int                                 # the index of the axis which the Y axis will be converted to. If you don't want axis conversion, set this value as "1"
axisZ:int                                 # the index of the axis which the Z axis will be converted to. If you don't want axis conversion, set this value as "2"
bInvertX:bool                             # invert the axis which the X axis will be converted to
bInvertY:bool                             # invert the axis which the Y axis will be converted to
bInvertZ:bool                             # invert the axis which the Z axis will be converted to
bSaveInZip:bool                           # If true, export as a zipped file with textures. It will output a single zipped file(.zip), not separated files.
bDiffuseColorCombined:bool                # if true, the texture will be exported after being combined with diffuse color
bExcludeAmbient:bool                      # if true, exclude ambient map and color in MTL files.
bOpacityMap:bool                          # if true, generate an opacity map by extracting alpha channel from diffuse map
bMetaData:bool                            # export meta data
bSizeAndPoseFromAvatar:bool               # ImportAvatar: true = keep the avatar file's own size and pose, false = apply the size and pose saved with the garment
bEmbedded:bool                            # for embedded-gltf export option
bExportLight:bool                         # export light information in gltf
bExportFabric:bool                        # true : Export Fabric (Fabric information)
fbxSdkVersion:int                         # 0 : 2020, 1: 2019, 2: 2018, 3: 2016/2017, 4: 2014/2015, 5: 2013, 6: 2012
bIncludeAvatarShape:bool                  # FBX / Alembic export: include the avatar meshes; keep it equal to bExportAvatar
m_AuthenticationKeyForAPI:str             # For Alvanon to use extended functionality in the CLO API / SDK
ImportObjectType:int                      # import file type. 0 : Avatar, 1: Trim, 2 : Garment
bAutoTranslate:bool                       # If true, allign bottom to ground
bCreateCamera:bool                        # If true, create object camera
bCreateAvatarJointAnimation:bool          # If true, create object avatar joint animation
bCreateAvatarCacheAnimation:bool          # If true, create object avatar cache animation
bCreateAvatarBlendShapeAnimation:bool     # If true, create object avatar blendshape (weight) animation
bCreateClothCacheAnimation:bool           # If true, create cloth cache animation
bMoveGarment:bool                         # If true, move garment to start position
bAddArrangementPoints:bool                # If true, auto add arrangement points
bAutoCreateFittingSuit:bool               # If true, auto create fitting suit
bAdd:bool                                 # If true, set load type as add
translationValueX:float                   # set x-offset value per the position-value in 3D Window for Avatar/Garment (left - right) unit (mm)
translationValueY:float                   # set y-offset value per the position-value in 3D Window for Avatar/Garment (up - down) unit (mm)
translationValueZ:float                   # set z-offset value per the position-value in 3D Window for Avatar/Garment (monitor - user) unit (mm)
bTrace2DPatternsUVMap:bool                # If true, set load type for trace 2d patterns from uv map
bCreateMetallicRoughnessMap:bool          # true : (In case bClothUnifiedUVCoordinates or bAvatarUnifiedUVCoordinates are false) export metallic-roughness map baked using diffuse alpha value (only in gltf)
bClothUnifiedUVCoordinates:bool           # flag for Cloth Unified UV Coordinates
bAvatarUnifiedUVCoordinates:bool          # flag for Avatar Unified UV Coordinates
patternList:list[int]                     # pattern indices to export (RealPatternList order, as used by the Pattern API)
buttonList:list[ int]                     # uid values of buttons/buttonholes to export, as returned in the "uid" field by GetNonFabricComponentsOnPattern / GetAllNonFabricComponents
graphicList:list[ int]                    # uid values of graphics/prints to export, from the same "uid" field
zipperList:list[ int]                     # uid values of zippers to export, from the same "uid" field; each is expanded to its tapes and slider/puller/stopper hardware
bUseSelectComponent:bool                  # !< true = selectComponent decides which object groups and which objects are written, exactly like the Object section of the export dialog. false (default) = selectComponent is ignored and bExportGarment, bExportAvatar and the component lists above apply unchanged
selectComponent:ExportComponentSelection  # !< per-group selection, see ExportComponentSelection. Defaults = every group on, every object

VideoExportOption

"""
Options for ExportAnimationVideo without showing the dialog in CLO API
"""
width:int       # Video width in pixels
height:int      # Video height in pixels
fps:int         # FPS index: 0 = 24fps, 1 = 25fps, 2 = 30fps, 3 = 60fps. Set to -1 to use the animation's system FPS
startFrame:int  # Start frame index, -1 means use the animation's start frame
endFrame:int    # End frame index, -1 means use the animation's end frame

CLO_API_UNIT

"""
Unit types
"""
CLO_API_MILIMETER = 0   # milimeter
CLO_API_CENTIMETER = 1  # centimeter
CLO_API_INCH = 2        # inch
CLO_API_METER = 3       # meter
CLO_API_FEET = 4        # feet

ImportZPRJOption

"""
Options for ImportZPRJ as parameters without dialogs in CLO API
"""
bAppend:bool                  # if true, append the project file to the current loaded project
                              # if false, overwrite/replace the project file in the current loaded project
bLoadGarment:bool             # if true, open/add Garment inside the zprj file into the current loaded project
bLoadAvatar:bool              # if true, open/add Avatar inside the zprj file into the current loaded project
translationValueX:float       # set x-offet value per current patterns in 2D Window for Patterns (left - right)
                              # set x-offset value per the position-value inside the zprj file in 3D Window for Avatar/Garment (left - right)
translationValueY:float       # set y-offet value per current patterns in 2D Window for Patterns (up - down)
                              # set y-offset value per the position-value inside the zprj file in 3D Window for Avatar/Garment
translationValueZ:float       # set z-offset value per the position-value inside the zprj file in 3D Window for Avatar/Garment (monitor - user)
translationUnit:CLO_API_UNIT  # translationUnit - 0: Milimeter, 1: Centimeter, 2: Inch, 3: Meter, 4: Feet
bLoadSceneAndProps:bool       # if true, open/add SceneAndProps inside the zprj file into the current loaded project
bLoadRenderProperties:bool    # if true, open/add RenderProperties(Vray) inside the zprj file into the current loaded project
bLoadCustomView:bool          # if true, load Custom View (default: false)
bLoadDisplaySettings:bool     # if true, load Display Settings (default: true)

ExportUSDOption

"""
Options for ExportUSD as parameters without dialogs in CLO API
"""
m_upAxis:int                  # 1: Y Axis as up, 2 : Z Axis as up
m_metersPerUnit:double        # Set unit value based on 1 m
m_bAssignAvatar:bool          # If true export geometry and material data of avatar to the USD file
m_avatarPrimPath:str          # Set prim path of current geometry and material data default path is '/Avatar'
m_bAssignGarment:bool         # If true export geometry and material of cloth to the USD file
m_garmentPrimPath:str         # Set prim path of current geometry and material data default path is '/Garment'
m_bAssignSceneNProp:bool      # If true export geometry and material of scne & prop to the USD file
m_sceneNPropPrimPath:str      # Set prim path of current geometry data default path is '/SceneAndProp'
m_bExportSimulationData:bool  # If true export simulation data to the USD file
m_bExportStrandData:bool      # If true export strand data as BasisCurve to the USD file

CloApiRgb

"""
RGB Values structure for Color related api calls in CLO API
"""
R:int  # Red: 0 ~ 255
G:int  # Green: 0 ~ 255
B:int  # Blue: 0 ~ 255

CloApiRgba

"""
RGBA Values structure for Color related api calls in CLO API
"""
R:int  # Red: 0 ~ 255
G:int  # Green: 0 ~ 255
B:int  # Blue: 0 ~ 255
A:int  # Alpha: 0 ~ 255

CloApiGraphicPosition

"""
A 2D point of a graphic placement, in mm, in the pattern piece's own frame (before it is moved, rotated or flipped), y up.
"""
x:float  # X coordinate in mm
y:float  # Y coordinate in mm, y up

CloApiGraphicDimensions

"""
Width and height of a graphic style or of a placed graphic, in mm.
"""
width:float   # width in mm (-1 when GetGraphicStyleDimensions fails)
height:float  # height in mm (-1 when GetGraphicStyleDimensions fails)

CloApiGraphicPlacementPoints

"""
Center, corners and edge midpoints of a placed graphic, returned by UtilityAPI::GetGraphicStylePlacementPoints.
"""
center:CloApiGraphicPosition             # center of the graphic's placement box
corners:list[CloApiGraphicPosition]      # box corners: bottom-left, bottom-right, top-right, top-left (empty for a 3D query)
edgeCenters:list[CloApiGraphicPosition]  # edge midpoints: bottom, right, top, left (empty for a 3D query)

CleanedPathResult

"""
Result of UtilityAPI::CleanFilePath - one sanitized file name / path in several representations.
"""
detected_type:str              # "filename" or "fullpath"
universal_clean_path:str       # cleaned path using forward slashes '/'
windows_native_path:str        # cleaned path using backslashes '\'
windows_long_path_variant:str  # windows_native_path with the \\?\ (or \\?\UNC\) prefix for long absolute paths
isolated_filename:str          # the cleaned final file name only
http_safe_filename:str         # percent-encoded form of isolated_filename

CloApiAnchorPoint

"""
Point of a graphic's box, in the graphic's own directions after rotation. Used by RepositionGraphicByAnchor, ReplaceGraphicStyleFromImage and PlaceTopstitchOnInternalLine.
Layout (Y increases upward):
  8(LEFT_UP)----1(UP)----2(RIGHT_UP)
      |                       |
  7(LEFT)    0(CENTER)   3(RIGHT)
      |                       |
  6(LEFT_DOWN)--5(DOWN)--4(RIGHT_DOWN)
"""
CLOAPI_ANCHOR_CENTER = 0      # center of the box
CLOAPI_ANCHOR_UP = 1          # midpoint of the top edge
CLOAPI_ANCHOR_RIGHT_UP = 2    # top-right corner
CLOAPI_ANCHOR_RIGHT = 3       # midpoint of the right edge
CLOAPI_ANCHOR_RIGHT_DOWN = 4  # bottom-right corner
CLOAPI_ANCHOR_DOWN = 5        # midpoint of the bottom edge
CLOAPI_ANCHOR_LEFT_DOWN = 6   # bottom-left corner
CLOAPI_ANCHOR_LEFT = 7        # midpoint of the left edge
CLOAPI_ANCHOR_LEFT_UP = 8     # top-left corner

SeamlinePairGroupResult

"""
Status code returned by the AddSeamlinePairGroupPartial family of APIs.
SEAMLINE_PAIR_SUCCESS is 0 and every failure is negative, so test the result with
'== SEAMLINE_PAIR_SUCCESS' rather than for truthiness (0 is falsy in Python).
"""
SEAMLINE_PAIR_SUCCESS = 0                     # The stitch was created.
SEAMLINE_PAIR_ERROR_NO_PATTERN_EDITOR = -1    # No pattern editor is available in the current scene.
SEAMLINE_PAIR_ERROR_INVALID_PATTERN = -2      # A pattern index does not refer to an existing pattern.
SEAMLINE_PAIR_ERROR_INVALID_INNER_SHAPE = -3  # An inner shape (child) index does not refer to an existing inner shape.
SEAMLINE_PAIR_ERROR_INVALID_LINE = -4         # A line index does not refer to an existing line on the given shape.
SEAMLINE_PAIR_ERROR_RATIO_OUT_OF_RANGE = -5   # A start/end ratio lies outside the closed range [0.0, 1.0].
SEAMLINE_PAIR_ERROR_EMPTY_SEGMENT = -6        # A start ratio is not strictly less than its end ratio, so the segment is empty or inverted.
SEAMLINE_PAIR_ERROR_CREATE_FAILED = -7        # The stitch passed validation but the pattern editor rejected it.

CloApiPoint

"""
A 2D coordinate in the pattern 2D space. Used by the internal-line geometry APIs.
"""
x:float  # X coordinate in mm, in the pattern piece's own frame
y:float  # Y coordinate in mm, in the pattern piece's own frame, y up

CloApiLine

"""
A straight 2D line segment identified by a line number and its two endpoints.
Curved internal lines are represented by their start/end points (chord).
"""
lineNumber:int     # 0-based number of the line among the pattern's internal-shape lines (default -1)
start:CloApiPoint  # start point of the line
end:CloApiPoint    # end point of the line

CloApiIntersectionPoint

"""
The coordinate where two lines meet, referencing both lines by their line numbers.
"""
coordinate:CloApiPoint  # point where the two lines cross or touch
lineANumber:int         # lineNumber of the first line (default -1)
lineBNumber:int         # lineNumber of the second line (default -1)

CloApiInternalShape

"""
Root container for internal-line geometry: a named group of line segments and the intersection points between them.
"""
name:str                                     # name of the shape, for example "InternalShape_0"
lines:list[CloApiLine]                       # line segments of the shape: internal lines that cross or touch within 0.5 mm
intersections:list[CloApiIntersectionPoint]  # points where the shape's lines cross or touch

ImportAlembicOption

"""
Options for ImportAlembic as parameters without dialogs in CLO API
"""
aLoadType:bool                       # if false means open, true means add
aUnit:float                          # unit of the .abc file, an AlembicUnit value (default 0.01 = MEASURE_UNIT_MM)
aScale:float                         # 0 ~ 1
boolAddArrangementPoints:bool        # if true add the arrangement points
boolAutoCreateFittingSuit:bool       # if true create fitting suit
morphingFrameCount:int               # set the morphing frame count ex: 1 to 99
boolMoveGarmentToStartPosition:bool  # if true, this will select moveGarmentToStartPosition
boolTrace2DPatternsFromUVMap:bool    # if true, this will select trace2DPatternsFromUVMap
boolAlignBottonToGround:bool         # @deprecated [DEV-21494] Has never had any effect: nothing reads this field, and
                                     # the GUI Alembic import dialog has no align-to-ground control to match it against
                                     # (see c_ImportAlembic / c_SettingsImportAlembic in DialogImportOBJ.cpp). Wiring it
                                     # would give the API a behaviour the GUI does not have, so it is documented as
                                     # inert rather than implemented. Kept - with its original spelling - because
                                     # removing or renaming it would break existing client scripts. To place an avatar
                                     # on the ground, use ImportPose's _bBottomToGround. Pending a product decision.
                                     # [inert - see above] if true, set the allignment to bottom
translationValueX:float              # set x-offset value per the position-value in 3D Window for Avatar/Garment (left - right) unit (mm)
translationValueY:float              # set y-offset value per the position-value in 3D Window for Avatar/Garment (up - down) unit (mm)
translationValueZ:float              # set z-offset value per the position-value in 3D Window for Avatar/Garment (monitor - user) unit (mm)
axisX:int                            # source axis that becomes X: 0 = X, 1 = Y, 2 = Z. Default 0 (no conversion)
axisY:int                            # source axis that becomes Y (up): 0 = X, 1 = Y, 2 = Z. Default 1 (no conversion)
axisZ:int                            # source axis that becomes Z: 0 = X, 1 = Y, 2 = Z. Default 2 (no conversion)
bInvertX:bool                        # negate X after the conversion
bInvertY:bool                        # negate Y after the conversion
bInvertZ:bool                        # negate Z after the conversion
loadObjectType:int                   # 0 : Avatar (default), 1 : Morph Target (vertex animation on the existing avatar, transition length = morphingFrameCount, 1..99). Other values: ImportAlembic returns false

PatternSnapShotSizeOption

"""
Paper size and resolution of the 2D pattern snapshot, for UtilityAPI::SetPatternSnapShotSizeOption (mode 0 = 2D window, 1 = Print Layout). Set writes every field.
"""
m_width:float      # always set mm
m_height:float     # always set mm
m_resolution:int   # resolution in DPI, clamped to 72-1000 (default 0, applied as 72); PNG / JPEG only
m_paperPreset:int  # PatternSnapShotPaperPreset value (0 = A4 ... 11 = Custom); out of range = A4 (default 0)
m_orientation:int  # 0 = portrait, 1 = landscape; swaps width and height, ignored for wide-format presets (default 0)
m_unit:int         # display unit, PatternSnapShotPaperUnit (0 = pixel, 1 = inch, 2 = mm, 3 = cm); m_width / m_height stay in mm (default 0)

PatternSnapShotLineOption

"""
Visibility, color and line style of each line kind in the 2D pattern snapshot, for UtilityAPI::SetPatternSnapShotLineOption. Colors are RGBA 0-255 (alpha is not drawn); line types are PatternSnapShotLineType values: 1 = solid, 2 = dotted, 3 = dashed.
"""
ShowPatternOutline:bool                # draw the pattern outline; forced on when neither seam allowance nor reference line is shown (default true)
PatternOutlineColor:CloApiRgba         # pattern outline color (default opaque black)
PatternOutLineType:int                 # pattern outline style: 1 = solid, 2 = dotted, 3 = dashed (default 1)
ShowInternalLine:bool                  # draw internal lines (default true)
InternalLineColor:CloApiRgba           # internal line color (default opaque black)
InternalLineType:int                   # internal line style: 1 = solid, 2 = dotted, 3 = dashed (default 1)
ShowGraphicOutline:bool                # draw graphic outlines (default true)
GraphicOutlineColor:CloApiRgba         # graphic outline color (default opaque black)
GraphicOutlineType:int                 # graphic outline style: 1 = solid, 2 = dotted, 3 = dashed (default 1)
ShowNotch:bool                         # draw notches on the seam allowance (default true)
NotchColor:CloApiRgba                  # seam allowance notch color (default opaque black)
NotchType:int                          # seam allowance notch style: 1 = solid, 2 = dotted, 3 = dashed (default 1)
ShowSeamAllowance:bool                 # draw seam allowance lines (default true)
SeamAllowanceColor:CloApiRgba          # seam allowance color (default opaque black)
SeamAllowanceType:int                  # seam allowance style: 1 = solid, 2 = dotted, 3 = dashed (default 1)
ShowSymmetricInstanceLine:bool         # draw the lines of symmetric / instance patterns (default true)
SymmetricInstanceLineColor:CloApiRgba  # symmetric / instance pattern line color (default opaque black)
SymmetricInstanceLineType:int          # symmetric / instance pattern line style: 1 = solid, 2 = dotted, 3 = dashed (default 1)
ShowReferenceLine:bool                 # draw reference lines (default true)
ReferenceLineColor:CloApiRgba          # reference line color (default opaque black)
ReferenceLineType:int                  # reference line style: 1 = solid, 2 = dotted, 3 = dashed (default 1)

PatternSnapShotImageOption

"""
Textures and graphics drawn in the 2D pattern snapshot, for UtilityAPI::SetPatternSnapShotImageOption.
"""
ShowFabricTexture:bool      # draw the fabric texture (default true)
ShowPatternTexture:bool     # draw pattern textures on the fabric; Print Layout (mode 1) only (default true)
ShowGraphicTexture:bool     # draw graphics (default true)
FabricTextureOpacity:float  # fabric texture opacity in percent, 0-100; Print Layout (default 100)

PatternSnapShotInformationOption

"""
Text and markings printed in the 2D pattern snapshot, for UtilityAPI::SetPatternSnapShotInformationOption. Each item has a text size, a PatternSnapShotPrintType value: 1 = shrink to fit, 2 = actual size.
"""
ShowPatternName:bool        # print pattern names (default true)
PatternNameType:int         # pattern name text size: 1 = shrink to fit, 2 = actual size (default 2)
ShowPatternAnnotation:bool  # print pattern annotations (default true)
PatternAnnotationType:int   # annotation text size: 1 = shrink to fit, 2 = actual size (default 2)
ShowLineLength:bool         # print line lengths (default true)
LineLengthType:int          # line length text size: 1 = shrink to fit, 2 = actual size (default 2)
ShowGrainLine:bool          # print grain lines (default true)
GrainLineType:int           # grain line text size: 1 = shrink to fit, 2 = actual size (default 2)
ShowButtonHole:bool         # print buttons and buttonholes (default true)
ButtonHoleType:int          # button / buttonhole text size: 1 = shrink to fit, 2 = actual size (default 2)
ShowSeamTaping:bool         # print seam taping (default true)
SeamTapingType:int          # seam taping text size: 1 = shrink to fit, 2 = actual size (default 2)
ShowMeasurement2D:bool      # print 2D measurements (default true)
Measurement2DType:int       # 2D measurement text size: 1 = shrink to fit, 2 = actual size (default 2)
ShowNestInformation:bool    # print the nesting information; Print Layout (default true)
NestInformationType:int     # nesting information text size: 1 = shrink to fit, 2 = actual size (default 2)

TextureMapTarget

"""
Selects which texture map a texture-transform API targets.
Used by the unified texture-transform getters/setters (Fabric, Print, Graphic)
to choose the map the TransformOptions apply to.
"""
TEXTURE_MAP_BASE_COLOR = 0    # Base color / albedo map
TEXTURE_MAP_NORMAL = 1        # Normal map
TEXTURE_MAP_OPACITY = 2       # Opacity (alpha) map
TEXTURE_MAP_ROUGHNESS = 3     # Roughness (glossiness) map
TEXTURE_MAP_METALNESS = 4     # Metalness map
TEXTURE_MAP_DISPLACEMENT = 5  # Displacement map

ObjectBrowserType

"""
Object Browser category targeted by the unified material texture-transform API.
"""
OB_TYPE_FABRIC = 0       # Fabric (base color, or print/AOP via targetPrint)
OB_TYPE_GRAPHIC = 1      # Graphic style
OB_TYPE_TRIM = 2         # Trim object style (subItemIndex = trim mesh index)
OB_TYPE_BUTTON = 3       # Button head style (subItemIndex: 0=Button body, 1=Thread)
OB_TYPE_BUTTON_HOLE = 4  # Buttonhole style
OB_TYPE_PUCKERING = 5    # Puckering style
OB_TYPE_ZIPPER = 6       # Zipper style. subItemIndex selects the component: 0=Tape, 1=Teeth, 2=Slider, 3=Puller, 4=Bottom Slider, 5=Bottom Puller, 6=Top Stopper, 7=Bottom Stopper. targetComponent must be COMPONENT_NONE. Each index reports ONE representative material; a component built from several meshes (stoppers) exposes only the first, which need not be the one the Object Browser shows
OB_TYPE_POM = 7          # Points of Measure (POM) tab
OB_TYPE_PATTERN = 9      # Pattern / Scene tree tab (maps to GUI_SCENEGRAPH)
OB_TYPE_TOPSTITCH = 10   # Top-stitch style (subItemIndex = stitch line index)
OB_TYPE_AVATAR = 11      # Avatar material (objectIndex = avatar index, subItemIndex = mesh index over the avatar's non-accessory meshes)

ObjectBrowserContextOptions

"""
Object Browser context: identifies which object/sub-item a material texture transform targets.
"""
type:ObjectBrowserType      # object category (see ObjectBrowserType)
targetPrint:bool            # FABRIC only: target the print/AOP texture (true) vs base color (false)
styleChipIndex:int          # AOP/style-chip index. -1 = first/default
subItemIndex:int            # sub-item/mesh index: button material tab (0=Button body, 1=Thread), trim mesh index, zipper component, top-stitch line index, or avatar mesh index. Default 0
folderName:str              # Object Browser folder this object's context is scoped to. Empty ("") = root directory. GetObjectBrowserItems (FABRIC): folder to fetch from (non-empty = that named folder; empty result if not found)
bIncludeUnusedObjects:bool  # when false, free/unused objects (not used by any pattern) are filtered out
bIncludePrints:bool         # FABRIC only. Default true. When true, the fabric response is an ObjectList of entries, each with Name and (only when the fabric has a print) PrintName. Set false to get a flat name list without prints

PropertyEditorContextOptions

"""
Property Editor context: which material face and texture map a transform applies to.
"""
materialSide:int          # which material face: 0=Front, 1=Back, 2=Side
mapType:TextureMapTarget  # which texture map (see TextureMapTarget)

TransformOptions

"""
Options for AOP (All Over Print) texture transformation operations
Provides parameters to control texture transformations including rotation, scaling, and translation.
Supports both percentage-based and millimeter-based sizing.
"""
angle:float            # Rotation angle in degrees (0.0 = no rotation)
widthMm:float          # Width in millimeters (system unit). Set to 0.0 to use widthPercent instead.
widthPercent:float     # Width as percentage (100.0 = 100%, original size)
heightMm:float         # Height in millimeters (system unit). Set to 0.0 to use heightPercent instead.
heightPercent:float    # Height as percentage (100.0 = 100%, original size)
aspectRatioFixed:bool  # true to maintain aspect ratio during scaling, false to allow independent width/height scaling
posX:float             # Horizontal position/translation in display units
posY:float             # Vertical position/translation in display units}

ZipperObjectType

"""
Specifies the zipper part type to generate via GenerateZippersFromObj.
Each value corresponds to a specific output file format and save behavior.
"""
ZIPPER_OBJECT_SLIDER = 0                 # Slider only (.zsl): single OBJ input, saved as a single shape.
ZIPPER_OBJECT_PULLER = 1                 # Puller only (.zpu): single OBJ input, saved as a single shape.
ZIPPER_OBJECT_SLIDER_PULLER = 2          # Slider + Puller combined (.zss): single OBJ with two meshes, saved as dual shape.
ZIPPER_OBJECT_TEETH = 3                  # Zipper teeth (.zth): single OBJ, loaded with fixed internal axes.
ZIPPER_OBJECT_TOP_STOPPER = 4            # Top stopper (.zst): two OBJ inputs, saved as dual shape.
ZIPPER_OBJECT_BOTTOM_OPEN_STOPPER = 5    # Bottom open-end stopper (.zst): two OBJ inputs, saved as dual shape.
ZIPPER_OBJECT_BOTTOM_CLOSED_STOPPER = 6  # Bottom closed-end stopper (.zst): single OBJ input, saved as a single shape.

ZipperScaleUnit

"""
Unit of measurement for the OBJ geometry passed to GenerateZippersFromObj.
Mirrors the scale unit combobox in the "Register OBJ" dialog.
"""
ZIPPER_SCALE_MM = 0        # 1 mm   = 0.01    CLO units (default)
ZIPPER_SCALE_CM = 1        # 1 cm   = 0.1     CLO units
ZIPPER_SCALE_INCH = 2      # 1 in   = 0.254   CLO units
ZIPPER_SCALE_FEET = 3      # 1 ft   = 3.048   CLO units
ZIPPER_SCALE_M = 4         # 1 m    = 10.0    CLO units
ZIPPER_SCALE_8_FEET = 5    # 8 ft   = 24.384  CLO units
ZIPPER_SCALE_8_6_FEET = 6  # 8'6"   = 26.2128 CLO units
ZIPPER_SCALE_AUTO = 7      # Auto scale from OBJ bounding box (applies 0.01 factor with auto-scale flag)

GraphicRemoveMode

"""
Specifies which targets a RemoveGraphicStyle call should delete from.
"""
GRAPHIC_REMOVE_BROWSER_ONLY = 0         # Delete from Object Browser only. Fails if the graphic is currently applied to a pattern.
GRAPHIC_REMOVE_PATTERN_ONLY = 1         # Delete from Pattern only (retain in Object Browser).
GRAPHIC_REMOVE_PATTERN_AND_BROWSER = 2  # Delete from both Pattern and Object Browser.

ObjRegisterOptions

"""
Full option set for GenerateZippersFromObj, mirroring all settings in the
"Register OBJ" dialog (DialogRegisterZipperObject). Supports all 7 zipper part types:
Slider, Puller, Slider+Puller, Teeth, Top Stopper, Bottom Open Stopper, Bottom Closed Stopper.
"""
objectType:ZipperObjectType  # Zipper part type. Determines the output file format.
objFilePath:str              # Full path to the primary OBJ file.
secondObjFilePath:str        # Full path to the secondary OBJ file. Required for ZIPPER_OBJECT_TOP_STOPPER and ZIPPER_OBJECT_BOTTOM_OPEN_STOPPER.
sliderMeshNames:list[str]    # OBJ group names to assign as Slider mesh(es). Empty list triggers auto-assignment. (ZIPPER_OBJECT_SLIDER_PULLER only)
pullerMeshNames:list[str]    # OBJ group names to assign as Puller mesh(es). Empty list triggers auto-assignment. (ZIPPER_OBJECT_SLIDER_PULLER only)
scaleUnit:ZipperScaleUnit    # Measurement unit. Combined with scaleValue to compute the final scale factor.
scaleValue:double            # Scale percentage (e.g., 100.0 = 100%). Multiplied by the unit factor (e.g., 0.01 for MM yields 1.0 at 100%).
axisX:int                    # OBJ axis mapped to CLO X (0=X, 1=Y, 2=Z). Default: 0.
axisY:int                    # OBJ axis mapped to CLO Y (0=X, 1=Y, 2=Z). Default: 1.
axisZ:int                    # OBJ axis mapped to CLO Z (0=X, 1=Y, 2=Z). Default: 2.
invertX:bool                 # Invert the mapped X axis. Default: false.
invertY:bool                 # Invert the mapped Y axis. Default: false.
invertZ:bool                 # Invert the mapped Z axis. Default: false.
pullerPositionX:float        # Puller anchor X position in the zipper coordinate system. (ZIPPER_OBJECT_SLIDER type only)
pullerPositionY:float        # Puller anchor Y position in the zipper coordinate system. (ZIPPER_OBJECT_SLIDER type only)
pullerPositionZ:float        # Puller anchor Z position in the zipper coordinate system. (ZIPPER_OBJECT_SLIDER type only)
teethSpace:double            # Spacing between zipper teeth rows in CLO units. (ZIPPER_OBJECT_TEETH type only) Default: 0.0.
addToObjectBrowser:bool      # If true, refreshes the Object Browser asset list after saving so the new preset appears in the dropdown.

MaterialMapTransformationOptions

"""
Texture transform (rotate/scale/translate) shared by every material map that supports transformation.
"""
angle:float           # Rotation angle in degrees. Default 0.
width_mm:float        # Width in millimeters. Default 0 (use width_percent instead).
width_percent:float   # Width as a percentage (100 = original size). Default 100.
height_mm:float       # Height in millimeters. Default 0 (use height_percent instead).
height_percent:float  # Height as a percentage (100 = original size). Default 100.
aspect_ratio_on:bool  # Keep width/height aspect ratio locked while scaling. Default true.
position_x_mm:float   # Horizontal offset in millimeters. Default 0.
position_y_mm:float   # Vertical offset in millimeters. Default 0.

MaterialBaseColorMapOptions

"""
Base color (albedo) map configuration and its transformation.
"""
has_map:bool                                     # A base color map texture is assigned. Default false.
image_path:str                                   # Source image file path of the assigned map. Read-only, empty when no map is assigned.
recolor_enabled:bool                             # Recolor toggle. Default false.
desaturate_enabled:bool                          # Desaturate toggle. Default false.
switch_enabled:bool                              # Switch (invert channels) toggle. Default false.
shadow_intensity:int                             # Desaturate 'Shadow Intensity' (0-100). Applies when desaturate is on. Default 0.
shadow_brightness:int                            # Desaturate 'Shadow Brightness' (a.k.a. shadow gray, 0-100). Applies when desaturate is on. Default 0.
transformation:MaterialMapTransformationOptions  # texture transform of the base color map; read by GetMaterialProperties, ignored by SetMaterialProperties

MaterialBaseColorOptions

"""
Base color value (hex/named color) plus its optional map.
"""
color_hex_or_name:str            # Base color as hex (#RRGGBB) or a named color. Default "(None)".
map:MaterialBaseColorMapOptions  # base color texture map: file, color options and transform

MaterialNormalMapOptions

"""
Normal map configuration.
"""
has_normal_map:bool                              # A normal map texture is assigned. Default false.
image_path:str                                   # Source image file path of the assigned map. Read-only, empty when no map is assigned.
intensity:int                                    # Normal map intensity (0-100). Default 50.
transformation:MaterialMapTransformationOptions  # texture transform of the normal map; read by GetMaterialProperties, ignored by SetMaterialProperties

MaterialDisplacementMapOptions

"""
Displacement map configuration.
"""
has_displacement_map:bool   # A displacement map texture is assigned. Default false.
image_path:str              # Source image file path of the assigned map. Read-only, empty when no map is assigned.
amount_mm:float             # Displacement amount in millimeters. Default 0.
shift_mm:float              # Displacement shift in millimeters. Default 0.
clipping_mm:float           # Displacement clipping in millimeters. Default 0.
particle_distance_mm:float  # Particle distance in millimeters. Default 4.
keep_continuity:bool        # Keep continuity across seams. Default false.

MaterialOpacityMapOptions

"""
Opacity map configuration and its transformation.
"""
has_map:bool                                     # An opacity map texture is assigned. Default false.
image_path:str                                   # Source image file path of the assigned map. Read-only, empty when no map is assigned.
mode:str                                         # Opacity map mode (e.g. "RGB", "Alpha"). Default "RGB".
transformation:MaterialMapTransformationOptions  # texture transform of the opacity map; read by GetMaterialProperties, ignored by SetMaterialProperties

MaterialOpacityOptions

"""
Opacity value plus its optional map.
"""
opacity_value:int              # Opacity percentage (0-100). Default 100.
map:MaterialOpacityMapOptions  # opacity texture map: file, channel and transform

MaterialRoughnessOptions

"""
Roughness (glossiness) configuration.
"""
type:str           # Roughness source: "Value" or "Map". Default "Value".
has_map:bool       # A roughness map texture is assigned. Default false.
image_path:str     # Source image file path of the assigned map. Read-only, empty when no map is assigned.
map_intensity:int  # Roughness map intensity (0-100). Default 100.
invert:bool        # Invert the roughness map. Default false.

MaterialMetalnessMapOptions

"""
Metalness map configuration and its transformation.
"""
has_map:bool                                     # A metalness map texture is assigned. Default false.
image_path:str                                   # Source image file path of the assigned map. Read-only, empty when no map is assigned.
transformation:MaterialMapTransformationOptions  # texture transform of the metalness map; read by GetMaterialProperties, ignored by SetMaterialProperties

MaterialReflectionOptions

"""
Reflection stack: roughness, reflection/metalness intensities and the metalness map.
"""
roughness:MaterialRoughnessOptions         # roughness: value or map, map file, intensity and invert
reflection_intensity:int                   # Reflection intensity (0-100). Default 0.
metalness:int                              # Metalness value (0-100). Default 0.
metalness_map:MaterialMetalnessMapOptions  # metalness texture map: file and transform

MaterialFaceOptions

"""
The complete material stack for a single face (Front, Back, or Side).
"""
texture_mapping:str                                     # Texture mapping mode (e.g. "Repeat", "Unified"). Default "Repeat".
type:str                                                # Material type (e.g. "Fabric_Matte", "PBR"). Default "Fabric_Matte".
base_color:MaterialBaseColorOptions                     # base color and its optional map
normal_map:MaterialNormalMapOptions                     # normal map: file, intensity and transform
displacement_map:MaterialDisplacementMapOptions         # displacement map: file, amount, shift, clipping and particle distance
opacity:MaterialOpacityOptions                          # opacity and its optional map
reflection:MaterialReflectionOptions                    # reflection: roughness, reflection intensity, metalness and metalness map
GetBaseColorMap() -> MaterialBaseColorMapOptions        # Flattened, read-only accessors for each texture map on this face. They hide the value+map
                                                        # nesting - base color and opacity carry their map under a sub-struct, roughness and metalness
                                                        # live under reflection - so a caller can fetch any map's details in a single call.
GetNormalMap() -> MaterialNormalMapOptions              # read-only: the same as normal_map
GetDisplacementMap() -> MaterialDisplacementMapOptions  # read-only: the same as displacement_map
GetOpacityMap() -> MaterialOpacityMapOptions            # read-only: the same as opacity.map
GetRoughnessMap() -> MaterialRoughnessOptions           # read-only: the same as reflection.roughness
GetMetalnessMap() -> MaterialMetalnessMapOptions        # read-only: the same as reflection.metalness_map
GetPresentMaps() -> list[str]                           # Names of every texture map currently assigned on this face, driven by CLO_MATERIAL_FACE_MAP_TABLE
                                                        # so it stays in sync with the accessors above. e.g. returns ["base_color", "normal"] when only the
                                                        # base color and normal maps have a texture assigned; an empty list when the face has no maps.

MaterialTargetComponent

"""
The sub-component tab a material operation targets. Fabric objects expose Front/Back/Side; Button
objects expose Button/Thread; Graphics and Avatars have no tabs (COMPONENT_NONE).
"""
COMPONENT_FRONT = 0   # Fabric front face
COMPONENT_BACK = 1    # Fabric back face
COMPONENT_SIDE = 2    # Fabric side face
COMPONENT_BUTTON = 3  # Button body
COMPONENT_THREAD = 4  # Button thread
COMPONENT_NONE = -1   # Graphics, Avatar (no component tabs)

MaterialContextOptions

"""
Property-Editor context for a material get/set. Which fields are meaningful depends on the object type:
- Fabric:  targetComponent (Front/Back/Side), textureMappingType, materialType
- Graphic: printType, materialType (targetComponent = COMPONENT_NONE)
- Button:  targetComponent (Button/Thread), materialType
"""
targetComponent:MaterialTargetComponent  # Front/Back/Side or Button/Thread tab (COMPONENT_NONE for Graphics).
textureMappingType:int                   # 'Texture Mapping' dropdown (0: Repeat, 1: Unified).
printType:int                            # 'Print Type' dropdown for Graphics.
materialType:str                         # 'Type' dropdown (e.g. "Fabric_Matte", "PBR").

MaterialPropertyOptions

"""
Full material property payload exposed through the SDK. Groups the per-face stacks (Front/Back/Side)
with the physical-property settings so an entire material can be read or written in one call.
contextOptions (added in DEV-20805) selects which component tab / mapping the payload applies to and
is carried inside this struct so the get/set signatures stay symmetric.
"""
contextOptions:MaterialContextOptions             # which component, mapping and material type the call targets; the getter reads only this field
material_type:str                                 # Overall material type (e.g. "PBR"). Default "PBR".
front:MaterialFaceOptions                         # front face material; also used for buttons, threads and single-faced objects such as graphics and trims
back:MaterialFaceOptions                          # back face material; used when contextOptions.targetComponent is COMPONENT_BACK
side:MaterialFaceOptions                          # side face material; used when contextOptions.targetComponent is COMPONENT_SIDE
physical_type:str                                 # Physical property type (e.g. "Fabric"). Default "Fabric".
physical_preset:str                               # Physical property preset name. Default "Custom".
physical_thickness_mm:float                       # Physical thickness in millimeters. Default 0.
GetContext() -> MaterialContextOptions            # Read-only accessor for the Property-Editor context this payload targets (which component tab,
                                                  # texture mapping and material type the front/back/side maps above belong to).
GetFrontFaceOptions() -> MaterialFaceOptions      # Read-only accessors for each per-face material stack.
GetBackFaceOptions() -> MaterialFaceOptions       # read-only: the same as back
GetSideFaceOptions() -> MaterialFaceOptions       # read-only: the same as side
GetSelectedFaceOptions() -> MaterialFaceOptions*  # Returns the per-face material stack for the face currently selected by contextOptions
                                                  # (targetComponent). Only COMPONENT_FRONT / COMPONENT_BACK / COMPONENT_SIDE map to a face;
                                                  # COMPONENT_BUTTON / COMPONENT_THREAD / COMPONENT_NONE have no face and return nullptr.

CloApiAvatarMeasurement

"""
One measurement defined on an avatar, returned by UtilityAPI::GetAvatarMeasurements.
"""
measurementName:str  # Name shown in the Object Browser / Property Editor.
measurementType:str  # "Tape", "Circumference", "Height", "Linear" or "Default".
value:float          # Active-shape length (basic or surface fit), in `unit`.
basicLength:float    # Basic (convex-fit) length, in `unit`.
surfaceLength:float  # Surface-fit length, in `unit`.
unit:str             # Current CLO display unit ("mm", "cm" or "in").

HI_RES_TOLERANCE_TYPE

"""
Property row of the Hi-Res Properties window (3D Garment > Hi-Res Garment) that owns a
Tolerance min/max range. Used by PatternAPI::GetHiResTolerance / SetHiResTolerance to select
which of the three Tolerance ranges is read or written.
"""
HI_RES_TOLERANCE_PARTICLE_DISTANCE = 0    # Particle Distance tolerance range
HI_RES_TOLERANCE_COLLISION_THICKNESS = 1  # Additional Thickness - Collision tolerance range
HI_RES_TOLERANCE_SKIN_OFFSET = 2          # Skin Offset tolerance range

ButtonPairEdgeOrigin

"""
Corner of the placement edge that the along-edge distances are measured from. Used by
PatternAPI::PlaceButtonPairsOnEdge / DistributeButtonPairsOnEdge through ButtonPairPlacementOption.
The 2D window Y axis points up, so TOP is the edge endpoint with the greater Y.
"""
BUTTON_PAIR_EDGE_ORIGIN_TOP = 0     # Distances start at the upper corner of the edge (greater 2D-window Y)
BUTTON_PAIR_EDGE_ORIGIN_BOTTOM = 1  # Distances start at the lower corner of the edge (smaller 2D-window Y)

ButtonPairPlacementOption

"""
Optional settings for PatternAPI::PlaceButtonPairsOnEdge / DistributeButtonPairsOnEdge. The default
constructor is a safe configuration: distances measured from the TOP corner, the project's current button head
and buttonhole styles, style-default buttonhole size and unrotated items.
"""
edgeOrigin:ButtonPairEdgeOrigin  # Corner the along-edge distances are measured from. Default BUTTON_PAIR_EDGE_ORIGIN_TOP
buttonHeadStyleIndex:int         # Button head style index (order of GetButtonHeadStyleListWithIndex). -1 (default) = the current default button head style
buttonholeStyleIndex:int         # Buttonhole style index. -1 (default) = the current default buttonhole style
buttonholeWidth:float            # Per-instance buttonhole width in mm. 0 (default) keeps the style size. Set together with buttonholeHeight
buttonholeHeight:float           # Per-instance buttonhole height in mm. 0 (default) keeps the style size. Set together with buttonholeWidth
buttonAngleDegree:float          # Rotation applied to every created button head, in degrees. Default 0
buttonholeAngleDegree:float      # Rotation applied to every created buttonhole, in degrees. Default 0