IC8 Python API:RLPy RMeshTool

From Reallusion Wiki!
Jump to: navigation, search

Description

This class provides mesh utilities for texture baking, UV inspection, repair, projection, and transient previews.

Constructor & Destructor

__init__ (self)

Initializes a new mesh tool instance.

Member Functions

BakeTexture (spSource, spDestination, kOption)

Bakes texture channels from a source object onto a destination object.

Parameters

  • spSource
  • spDestination
  • kOption

BakeTextureFromFolder (*args)

Runs texture baking with the source data in the specified folder.

Parameters

  • args

BakeTexturePerChannel (spSource, spDestination, kOption)

Bakes requested texture channels sequentially while reusing one object export.

Parameters

  • spSource
  • spDestination
  • kOption

ComputeMeshInfo (strInputObj)

Computes geometry and topology information for the supplied mesh.

Parameters

  • strInputObj

CreateTransientMeshPreview (strPreviewName, spTarget, kOption)

Creates a renderer-only transient mesh preview from an object. The preview is registered as a mesh gizmo, never as a Scene Manager node, and does not mutate the target object.

Parameters

  • strPreviewName
  • spTarget
  • kOption

DestroyTransientMeshPreview (strPreviewName)

Destroys the transient mesh preview identified by the supplied handle.

Parameters

  • strPreviewName

InspectObjUv (strInputObj)

Inspect source OBJ UV data without requiring triangle faces.

Parameters

  • strInputObj

PrecheckBakeTexture (spSource, spDestination, kOption)

Checks whether texture baking can proceed and returns the precheck result.

Parameters

  • spSource
  • spDestination
  • kOption

ProjectToHighPoly (strLowObjPath, strHighObjPath, strOutputObjPath, kOption)

Project a low-poly OBJ onto a high-poly OBJ with face-driven displacement.

Parameters

  • strLowObjPath
  • strHighObjPath
  • strOutputObjPath
  • kOption

RunBasicRepair (*args)

Runs the basic repair operation on the supplied mesh.

Parameters

  • args

RunFixNonManifoldPoly (*args)

Repairs non-manifold polygons in the supplied mesh.

Parameters

  • args

SetTransientMeshPreviewVisible (strPreviewName, bVisible)

Sets the transient mesh preview visible.

Parameters

  • strPreviewName
  • bVisible

SetTransientMeshPreviewVisualStyle (strPreviewName, kVisualStyle)

Sets the transient mesh preview visual style.

Parameters

  • strPreviewName
  • kVisualStyle

UpdateTransientMeshPreview (strPreviewName, fOffset)

Updates transient mesh preview.

Parameters

  • strPreviewName
  • fOffset

Uvatlas (strInputObjPath, strOutputObjPath, kOption)

Generates a UV atlas for the supplied mesh using the specified options.

Parameters

  • strInputObjPath
  • strOutputObjPath
  • kOption

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.