DAZ Importer Functions version 1.6.0



clear_selection()

  Clear the active file selection to be loaded by consecutive operators.


get_absolute_paths()

  Get the absolute filepaths corresponding to the given relative filepaths.

Returns:

  The corresponding absolute paths if they exist.

Arguments:
  •   paths: Paths or references relative to the DAZ root paths.


get_error_message()

  Get the current error message.

Returns:

  The error message from previous operator invokation if it raisedan error, or the empty string if the operator exited without errors.


get_morphs(ob, type, category=None, activeOnly=False)

  Get all morph names and values of the specified type from the object.

Returns:

  A dictonary of morph names - morph values for all morphs in the specified morphsets.

Arguments:
  •   ob: Object (armature or mesh) which owns the morphs
  •   type: Either a string in ["Units", "Expressions", "Visemes", "Facs", "Facsexpr", "Body", "Custom", "Jcms", "Flexions"],
  •   category (optional): The category name for Custom morphs.
  •   activeOnly (optional): Active morphs only (default False).


get_return_value()

  Get value returned by previous operator.

Returns:

  A dictonary of return values. For operators that import morphs, this dictionary is of the form {Lowercase filepath : Property name}.


get_root_paths()

  Get the DAZ root paths

Returns:

  The list of DAZ root paths


get_selection()

  Get the active file selection to be loaded by consecutive operators.

Returns:

  The active list of file paths (strings).


set_selection(files)

  Set the active file selection to be loaded by consecutive operators.

Arguments:
  •   files: A list of file paths (strings).


set_silent_mode(value)

  In silent mode, operators fail silently if they encounters an error.This is useful for scripting.

Arguments:
  •   value: True turns silent mode on, False turns it off.


set_slider(ob, prop, value)

  Set slider value, like ob[prop] = value,but taking aliases into account.

Arguments:
  •   ob: Object that owns slider
  •   prop: Property name
  •   value: Property value


update_drivers(ob)

  Update drivers of the specified object

Arguments:
  •   ob: Object