<spanid="dna-viewer-util-additional-assembly-script-module"></span><h2>dna_viewer.util.additional_assembly_script module<aclass="headerlink"href="#module-dna_viewer.util.additional_assembly_script"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.additional_assembly_script.</span></span><spanclass="sig-name descname"><spanclass="pre">AdditionalAssemblyScript</span></span><aclass="reference internal"href="_modules/dna_viewer/util/additional_assembly_script.html#AdditionalAssemblyScript"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.additional_assembly_script.AdditionalAssemblyScript"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">run_additional_assembly_script</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.character.Character"title="dna_viewer.config.character.Character"><spanclass="pre">dna_viewer.config.character.Character</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/additional_assembly_script.html#AdditionalAssemblyScript.run_additional_assembly_script"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.additional_assembly_script.AdditionalAssemblyScript.run_additional_assembly_script"title="Permalink to this definition"></a></dt>
<dd><p>Runs the additional assembly script using the provided character configuration.</p>
<p>@type config: Character
@param config: The character configuration object with the needed settings for running the additional assembly script</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">run_script</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">module_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">method</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parameter</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Any</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/additional_assembly_script.html#AdditionalAssemblyScript.run_script"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.additional_assembly_script.AdditionalAssemblyScript.run_script"title="Permalink to this definition"></a></dt>
<dd><p>Runs the additional assembly script using the provided parameters.</p>
<p>@type module_name: str
@param module_name: The module name that gets loaded</p>
<p>@type path: str
@param path: The path where the additional assembly script is located</p>
<p>@type method: str
@param method: The name of the method that gets called</p>
<p>@type parameter: Any
@param parameter: The parameters that get passed in the method (defaults to None)</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.assemble">
<spanid="dna-viewer-util-assemble-module"></span><h2>dna_viewer.util.assemble module<aclass="headerlink"href="#module-dna_viewer.util.assemble"title="Permalink to this headline"></a></h2>
<dd><p>Used for assembling the rig with the following parameters</p>
<p>@type dna: DNA
@param dna: Instance of DNA</p>
<p>@type gui_path: str
@param gui_path: The file location of the gui</p>
<p>@type gui: Gui
@param gui: The gui configuration, this can be used instead of gui_path for finer control</p>
<p>@type analog_gui_path: str
@param analog_gui_path: The file location of the analog gui</p>
<p>@type aas_path: str
@param aas_path: The file location of the additional assembly script</p>
<p>@type aas_fn: str
@param aas_fn: The method name called from the additional assembly script (default is “run_after_assemble”)</p>
<p>@type aas_params: str
@param aas_params: The parameters dictionary that will get passed to the provided method name called from the additional assembly script (default is None)</p>
<p>@type with_attributes_on_root_joint: bool
@param with_attributes_on_root_joint: A flag used for adding attributes on the root joint (default is False)</p>
<p>@type with_key_frames: bool
@param with_key_frames: A flag used for adding key frames (default is False)</p>
@param add_mesh_name_to_blend_shape_channel_name: A flag representing whether mash name of blend shape channel is added to name when creating it</p>
<p>@rtype: SceneResult
@returns: A SceneResult object representing the info about the finished build process</p>
<spanid="dna-viewer-util-character-creator-module"></span><h2>dna_viewer.util.character_creator module<aclass="headerlink"href="#module-dna_viewer.util.character_creator"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.character_creator.</span></span><spanclass="sig-name descname"><spanclass="pre">CharacterCreator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.character.Character"title="dna_viewer.config.character.Character"><spanclass="pre">dna_viewer.config.character.Character</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">add_analog_gui</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">add_to_character_node</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">bool</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.add_analog_gui"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.add_analog_gui"title="Permalink to this definition"></a></dt>
<dd><p>Adds an analog gui according to the specified analog gui options. If none is specified no analog gui will be
added.</p>
<p>@type add_to_character_node: bool @param add_to_character_node: A flag that specifies if the imported analog
gui should be parented to the character node transform (default value is None).</p>
<spanclass="sig-name descname"><spanclass="pre">add_gui</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.add_gui"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.add_gui"title="Permalink to this definition"></a></dt>
<dd><p>Adds a gui according to the specified gui options. If none is specified no gui will be added.</p>
<spanclass="sig-name descname"><spanclass="pre">add_joints</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.joint.Joint"title="dna_viewer.model.joint.Joint"><spanclass="pre">dna_viewer.model.joint.Joint</span></a><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.add_joints"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.add_joints"title="Permalink to this definition"></a></dt>
<dd><p>Reads and adds the joints to the scene, also returns a list model objects of joints that were added.</p>
<p>@rtype: List[JointModel]
@returns: The list containing model objects representing the joints that were added to the scene.</p>
<spanclass="sig-name descname"><spanclass="pre">add_joints_to_character</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.add_joints_to_character"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.add_joints_to_character"title="Permalink to this definition"></a></dt>
<dd><p>Starts adding the joints the character, if the character configuration options have add_joints set to False,
<spanclass="sig-name descname"><spanclass="pre">add_key_frames</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.add_key_frames"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.add_key_frames"title="Permalink to this definition"></a></dt>
<dd><p>Adds a starting key frame to the facial root joint if joints are added and the add_key_frames option is set
<spanclass="sig-name descname"><spanclass="pre">add_mesh_to_display_layer</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.add_mesh_to_display_layer"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.add_mesh_to_display_layer"title="Permalink to this definition"></a></dt>
<dd><p>Add the mesh with the given name to an already created display layer.</p>
<p>@type mesh_name: str
@param mesh_name: The name of the mesh that should be added to a display layer.</p>
<p>@type lod: int
@param lod: The lod value, this is needed for determining the name of the display layer that the mesh should be added to.</p>
<spanclass="sig-name descname"><spanclass="pre">add_rig_logic_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.add_rig_logic_node"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.add_rig_logic_node"title="Permalink to this definition"></a></dt>
<dd><p>Creates and adds a rig logic node specified in the character configuration.</p>
<spanclass="sig-name descname"><spanclass="pre">attach_mesh_to_lod</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.attach_mesh_to_lod"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.attach_mesh_to_lod"title="Permalink to this definition"></a></dt>
<dd><p>Attaches the mesh called mesh_name to a given lod.</p>
<p>@type mesh_name: str
@param mesh_name: The mesh that needs to be attached to a lod holder object.</p>
<p>@type lod: str
@param lod: The name of the mesh that should be added to a display layer.</p>
<spanclass="sig-name descname"><spanclass="pre">create_animated_map_attributes</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_animated_map_attributes"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_animated_map_attributes"title="Permalink to this definition"></a></dt>
<dd><p>Creates animated map attributes on the root joint from the animated map names.</p>
<spanclass="sig-name descname"><spanclass="pre">create_attribute_on_joint</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">names</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_attribute_on_joint"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_attribute_on_joint"title="Permalink to this definition"></a></dt>
<dd><p>Create attributes from a provided list of names on the facial root joint.</p>
<p>@type names: List[str]
@param names: List of names that are added as attributes to the facial root joint.</p>
<spanclass="sig-name descname"><spanclass="pre">create_character_meshes</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_character_meshes"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_character_meshes"title="Permalink to this definition"></a></dt>
<dd><p>Builds the meshes of the character. If specified in the character options they get parented to a created
character node transform, otherwise the meshes get put to the root level of the scene.</p>
<spanclass="sig-name descname"><spanclass="pre">create_character_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_character_node"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_character_node"title="Permalink to this definition"></a></dt>
<dd><p>Creates a Maya transform which will hold the character, if the character configuration options have
create_character_node set to False, this step will be skipped.</p>
<spanclass="sig-name descname"><spanclass="pre">create_ctrl_attributes</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_ctrl_attributes"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_ctrl_attributes"title="Permalink to this definition"></a></dt>
<dd><p>Creates and sets the raw gui control attributes.</p>
<spanclass="sig-name descname"><spanclass="pre">create_ctrl_attributes_on_joint</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_ctrl_attributes_on_joint"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_ctrl_attributes_on_joint"title="Permalink to this definition"></a></dt>
<dd><p>Creates control attributes on the root joint from the raw control names.</p>
<spanclass="sig-name descname"><spanclass="pre">create_frm_attributes</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_frm_attributes"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_frm_attributes"title="Permalink to this definition"></a></dt>
<dd><p>Creates and sets the animated map attributes.</p>
<spanclass="sig-name descname"><spanclass="pre">create_geometry_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_geometry_node"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_geometry_node"title="Permalink to this definition"></a></dt>
<dd><p>Creates a Maya transform which will hold the geometry of the character. If the character configuration
options have create_character_node set to False, this step will be skipped.</p>
<spanclass="sig-name descname"><spanclass="pre">create_lod_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">obj_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_lod_node"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_lod_node"title="Permalink to this definition"></a></dt>
<dd><p>Creates a Maya transform which will hold the meshes of the character for a given lod.</p>
<p>@type lod: str
@param lod: The lod number.</p>
<p>@type obj_name: str @param obj_name: The full path name of the object in the scene, if it is not found a new
<spanclass="sig-name descname"><spanclass="pre">create_meshes</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">meshes_per_lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">OpenMaya.MObject</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_meshes"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_meshes"title="Permalink to this definition"></a></dt>
<dd><p>Builds the meshes from the provided mesh ids and then attaches them to a given lod if specified in the
character configuration.</p>
<p>@type lod: int
@param lod: The lod number representing the display layer the meshes to the display layer.</p>
<p>@type meshes_per_lod: List[int]
@param meshes_per_lod: List of mesh indices that are being built.</p>
<p>@rtype: List[MObject]
@returns: The list of maya objects that represent the meshes added to the scene.</p>
<spanclass="sig-name descname"><spanclass="pre">create_rig_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.create_rig_node"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.create_rig_node"title="Permalink to this definition"></a></dt>
<dd><p>Creates a Maya transform which will hold the rig of the character. If the character configuration options
have create_character_node set to False, this step will be skipped.</p>
<spanclass="sig-name descname"><spanclass="pre">get_mesh_node_fullpath_on_root</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">str</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.get_mesh_node_fullpath_on_root"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.get_mesh_node_fullpath_on_root"title="Permalink to this definition"></a></dt>
<dd><p>Gets the full path in the scene of a mesh.</p>
<p>@type mesh_name: str
@param mesh_name: The mesh thats path is needed.</p>
<p>@rtype: str
@returns: The full path of the mesh object in the scene</p>
<spanclass="sig-name descname"><spanclass="pre">import_gui</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">gui_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">group_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">add_to_character_node</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">bool</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.import_gui"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.import_gui"title="Permalink to this definition"></a></dt>
<dd><p>Imports a gui using the provided parameters.</p>
<p>@type gui_path: str
@param gui_path: The path of the gui file that needs to be imported.</p>
<p>@type group_name: str
@param group_name: The name of the transform that holds the imported asset.</p>
<p>@type add_to_character_node: bool @param add_to_character_node: A flag representing if the gui holder should
be attached to the character node or be on the root of the scene (default value is False)</p>
<spanclass="sig-name descname"><spanclass="pre">run_additional_assembly_script</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/character_creator.html#CharacterCreator.run_additional_assembly_script"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.character_creator.CharacterCreator.run_additional_assembly_script"title="Permalink to this definition"></a></dt>
<dd><p>Runs an additional assembly script if specified in the character configuration.</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.conversion">
<spanid="dna-viewer-util-conversion-module"></span><h2>dna_viewer.util.conversion module<aclass="headerlink"href="#module-dna_viewer.util.conversion"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.conversion.</span></span><spanclass="sig-name descname"><spanclass="pre">Conversion</span></span><aclass="reference internal"href="_modules/dna_viewer/util/conversion.html#Conversion"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.conversion.Conversion"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">calculate_angle_modifier</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">unit</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">dna_viewer.config.units.AngleUnit</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna_unit</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">dna_viewer.config.units.AngleUnit</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">float</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/conversion.html#Conversion.calculate_angle_modifier"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.conversion.Conversion.calculate_angle_modifier"title="Permalink to this definition"></a></dt>
<dd><p>A method used for calculating the value (angle modifier) which the angles will be multiplied with. If the
chosen unit is not the same as the one from the DNA file a multiplier will be calculated. Otherwise,
it returns 1.</p>
<p>@type unit: AngleUnit
@param unit: Can be degree and radian.</p>
<p>@type dna_unit: AngleUnit
@param dna_unit: The angle unit specified in the DNA file (default value is None).</p>
<p>@rtype: float
@returns: A multiplier needed for conversion between different units.</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">calculate_linear_modifier</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">unit</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">dna_viewer.config.units.LinearUnit</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna_unit</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">dna_viewer.config.units.LinearUnit</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">float</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/conversion.html#Conversion.calculate_linear_modifier"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.conversion.Conversion.calculate_linear_modifier"title="Permalink to this definition"></a></dt>
<dd><p>A method used for calculating the value (linear modifier) which the transforms will be multiplied with.
If the chosen unit is not the same as the one from the DNA file a multiplier will be calculated. Otherwise it returns 1.</p>
<p>@type unit: LinearUnit
@param unit: Can be m (meter) and cm (centimeter).</p>
<p>@type dna_unit: LinearUnit
@param dna_unit: The linear unit specified in the DNA file (default value is None).</p>
<p>@rtype: float
@returns: A multiplier needed for conversion between different units.</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_angle_unit_from_int</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">dna_viewer.config.units.AngleUnit</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/conversion.html#Conversion.get_angle_unit_from_int"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.conversion.Conversion.get_angle_unit_from_int"title="Permalink to this definition"></a></dt>
<dd><p>Returns an enum from an int value.
0 -> degree
1 -> radian</p>
<p>@type value: int
@param value: The value that the enum is mapped to.</p>
<p>@rtype: AngleUnit
@returns: AngleUnit.degree or AngleUnit.radian</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_linear_unit_from_int</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">dna_viewer.config.units.LinearUnit</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/conversion.html#Conversion.get_linear_unit_from_int"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.conversion.Conversion.get_linear_unit_from_int"title="Permalink to this definition"></a></dt>
<dd><p>Returns an enum from an int value.
0 -> cm
1 -> m</p>
<p>@type value: int
@param value: The value that the enum is mapped to.</p>
<p>@rtype: LinearUnit
@returns: LinearUnit.cm or LinearUnit.m</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.error">
<spanid="dna-viewer-util-error-module"></span><h2>dna_viewer.util.error module<aclass="headerlink"href="#module-dna_viewer.util.error"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">exception</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.error.</span></span><spanclass="sig-name descname"><spanclass="pre">DNAViewerError</span></span><aclass="reference internal"href="_modules/dna_viewer/util/error.html#DNAViewerError"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.error.DNAViewerError"title="Permalink to this definition"></a></dt>
<spanid="dna-viewer-util-import-util-module"></span><h2>dna_viewer.util.import_util module<aclass="headerlink"href="#module-dna_viewer.util.import_util"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.import_util.</span></span><spanclass="sig-name descname"><spanclass="pre">Import</span></span><aclass="reference internal"href="_modules/dna_viewer/util/import_util.html#Import"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.import_util.Import"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">source_py_file</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">module</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/import_util.html#Import.source_py_file"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.import_util.Import.source_py_file"title="Permalink to this definition"></a></dt>
<dd><p>Used for loading a python file, used for additional assembly script.</p>
<p>@type name: str
@param name: The name of the module.</p>
<p>@type path: str
@param path: The path of the python file.</p>
<p>@rtype: Optional[ModuleType]
@returns: The loaded module.</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.maya_util">
<spanid="dna-viewer-util-maya-util-module"></span><h2>dna_viewer.util.maya_util module<aclass="headerlink"href="#module-dna_viewer.util.maya_util"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.maya_util.</span></span><spanclass="sig-name descname"><spanclass="pre">Maya</span></span><aclass="reference internal"href="_modules/dna_viewer/util/maya_util.html#Maya"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.maya_util.Maya"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_element</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">OpenMaya.MDagPath</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">OpenMaya.MFnDagNode</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/maya_util.html#Maya.get_element"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.maya_util.Maya.get_element"title="Permalink to this definition"></a></dt>
<dd><p>gets the Union[MDagPath, MFnDagNode] object of the element with the given name</p>
<p>@type name: str
@param name: The name of the element to be retrieved</p>
<p>@rtype: Union[MDagPath, MFnDagNode]
@returns: A OpenMaya object representing the given element</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_transform</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">OpenMaya.MFnTransform</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/maya_util.html#Maya.get_transform"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.maya_util.Maya.get_transform"title="Permalink to this definition"></a></dt>
<dd><p>gets the transform of the element with the given name</p>
<p>@type element: str
@param element: The element name that we want the transform of</p>
<p>@rtype: MFnTransform
@returns: A MFnTransform object representing the given elements transform</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_translation</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">element</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">space</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">2</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">OpenMaya.MVector</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/maya_util.html#Maya.get_translation"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.maya_util.Maya.get_translation"title="Permalink to this definition"></a></dt>
<dd><p>gets the translation of the element with the given name</p>
<p>@type element: str
@param element: The element name that we want the translation of</p>
<p>@type space: str
@param space: A string value representing the translation space (default is “world”)</p>
<p>@rtype: MVector
@returns: A MVector object representing the given elements translation</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">set_translation</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">element</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">translation</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMaya.MVector</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">space</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">2</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/maya_util.html#Maya.set_translation"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.maya_util.Maya.set_translation"title="Permalink to this definition"></a></dt>
<dd><p>sets the translation of the element with the given name</p>
<p>@type element: str
@param element: The element name that we want to set the translation of</p>
<p>@type translation: MVector
@param translation: The new translation value</p>
<p>@type space: str
@param space: A string value representing the translation space (default is “object”)</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.mesh">
<spanid="dna-viewer-util-mesh-module"></span><h2>dna_viewer.util.mesh module<aclass="headerlink"href="#module-dna_viewer.util.mesh"title="Permalink to this headline"></a></h2>
@param add_mesh_name_to_blend_shape_channel_name: A flag representing whether mash name of blend shape channel is added to name when creating it</p>
<p>@type add_key_frames: bool
@param add_key_frames: A flag representing whether key frames should be added</p>
<p>@rtype: BuildOptions
@returns: The created build options object</p>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh.</span></span><spanclass="sig-name descname"><spanclass="pre">get_mesh_index</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh.html#get_mesh_index"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh.get_mesh_index"title="Permalink to this definition"></a></dt>
<dd><p>Gets a mesh index with the given search string, returns the first one if multiple are found.</p>
<p>@type mesh_name: str
@param mesh_name: The string that is searched for in the meshes</p>
<p>@type lod: int
@param lod: The lod in which the mesh names will be searched for the result</p>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh.</span></span><spanclass="sig-name descname"><spanclass="pre">get_mesh_indices_containing_string</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name_part</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh.html#get_mesh_indices_containing_string"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh.get_mesh_indices_containing_string"title="Permalink to this definition"></a></dt>
<dd><p>Gets the mesh indices containing a search string.</p>
<p>@type mesh_name_part: str
@param mesh_name_part: The string that is searched for in the meshes</p>
<p>@type lod: int
@param lod: The lod in which the mesh names will be searched for the result</p>
<p>@type dna: DNA
@param dna: Instance of DNA</p>
<p>@rtype: List[int]
@returns: The list of mesh indices which contain the mesh_name_part in their name</p>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh.</span></span><spanclass="sig-name descname"><spanclass="pre">get_mesh_lods</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh.html#get_mesh_lods"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh.get_mesh_lods"title="Permalink to this definition"></a></dt>
<dd><p>Gets the list of list of mesh indices grouped by the lod number.</p>
<p>@type dna: DNA
@param dna: Instance of DNA.</p>
<p>@rtype: List[List[int]]
@returns: The list of list of mesh indices grouped by the lod number</p>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh.</span></span><spanclass="sig-name descname"><spanclass="pre">get_mesh_names</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh.html#get_mesh_names"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh.get_mesh_names"title="Permalink to this definition"></a></dt>
<dd><p>Gets the list of mesh names contained in the DNA file.</p>
<p>@type dna: DNA
@param dna: Instance of DNA</p>
<p>@rtype: List[str]
@returns: The list of mesh names contained in the DNA file</p>
<spanid="dna-viewer-util-mesh-blend-shape-module"></span><h2>dna_viewer.util.mesh_blend_shape module<aclass="headerlink"href="#module-dna_viewer.util.mesh_blend_shape"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh_blend_shape.</span></span><spanclass="sig-name descname"><spanclass="pre">MeshBlendShape</span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_blend_shape.html#MeshBlendShape"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_blend_shape.MeshBlendShape"title="Permalink to this definition"></a></dt>
@param add_mesh_name_to_blend_shape_channel_name: A flag representing whether mash name of blend shape channel is added to name when creating it</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">create_blend_shape_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">derived_mesh_names</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">rename</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">bool</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_blend_shape.html#MeshBlendShape.create_blend_shape_node"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_blend_shape.MeshBlendShape.create_blend_shape_node"title="Permalink to this definition"></a></dt>
<dd><p>Creates a blend shape node.</p>
<p>@type mesh_name: str
@param mesh_name: The name of the mesh.</p>
<p>@type derived_mesh_names: List[str]
@param derived_mesh_names: List of the names that will end up as blend shapes added to the mesh.</p>
<p>@type rename: bool
@param rename: A flag representing if the name should be changed to a blend shape naming convention.</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.mesh_helper">
<spanid="dna-viewer-util-mesh-helper-module"></span><h2>dna_viewer.util.mesh_helper module<aclass="headerlink"href="#module-dna_viewer.util.mesh_helper"title="Permalink to this headline"></a></h2>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh_helper.</span></span><spanclass="sig-name descname"><spanclass="pre">print_mesh_indices_containing_string</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name_part</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">lod</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_helper.html#print_mesh_indices_containing_string"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_helper.print_mesh_indices_containing_string"title="Permalink to this definition"></a></dt>
<dd><p>Prints the mesh indices that contain a search string.</p>
<p>@type mesh_name_part: str
@param mesh_name_part: The search string.</p>
<p>@type lod: int
@param lod: The lod where the search will be done.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh_helper.</span></span><spanclass="sig-name descname"><spanclass="pre">print_meshes</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_helper.html#print_meshes"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_helper.print_meshes"title="Permalink to this definition"></a></dt>
<dd><p>Prints the mesh names grouped by lod.</p>
<p>@type dna: DNA
@param dna: Instance of DNA.</p>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.mesh_neutral">
<spanid="dna-viewer-util-mesh-neutral-module"></span><h2>dna_viewer.util.mesh_neutral module<aclass="headerlink"href="#module-dna_viewer.util.mesh_neutral"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh_neutral.</span></span><spanclass="sig-name descname"><spanclass="pre">MeshNeutral</span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_neutral.html#MeshNeutral"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_neutral.MeshNeutral"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">create_mesh_object</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.mesh.Mesh"title="dna_viewer.config.mesh.Mesh"><spanclass="pre">dna_viewer.config.mesh.Mesh</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.mesh.Mesh"title="dna_viewer.model.mesh.Mesh"><spanclass="pre">dna_viewer.model.mesh.Mesh</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Tuple</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">OpenMaya.MFnMesh</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">OpenMaya.MObject</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_neutral.html#MeshNeutral.create_mesh_object"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_neutral.MeshNeutral.create_mesh_object"title="Permalink to this definition"></a></dt>
<dd><p>Gets a list of points that represent the vertex positions.</p>
<p>@type config: MeshConfig
@param config: Mesh configuration from the DNA.</p>
<p>@type data: MeshModel
@param data: An object that stores values that get passed around different methods.</p>
<p>@rtype: Tuple[MFnMesh, MObject]
@returns: Maya objects representing maya mesh functions and the created maya mesh object.</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_texture_data</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Tuple</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_neutral.html#MeshNeutral.get_texture_data"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_neutral.MeshNeutral.get_texture_data"title="Permalink to this definition"></a></dt>
<dd><p>Gets the data needed for the creation of textures.</p>
<p>@type mesh_index: int
@param mesh_index: The mesh index</p>
<p>@type dna: DNA
@param dna: Instance of DNA.</p>
<p>@rtype: Tuple[List[float], List[float], List[int]] @returns: The tuple containing the list of texture
coordinate Us, the list of texture coordinate Vs and the list of texture coordinate indices.</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_vertex_positions_from_dna_vertex_positions</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.mesh.Mesh"title="dna_viewer.config.mesh.Mesh"><spanclass="pre">dna_viewer.config.mesh.Mesh</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.mesh.Mesh"title="dna_viewer.model.mesh.Mesh"><spanclass="pre">dna_viewer.model.mesh.Mesh</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">OpenMaya.MPoint</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_neutral.html#MeshNeutral.get_vertex_positions_from_dna_vertex_positions"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_neutral.MeshNeutral.get_vertex_positions_from_dna_vertex_positions"title="Permalink to this definition"></a></dt>
<dd><p>Gets a list of points that represent the vertex positions.</p>
<p>@type config: MeshConfig
@param config: Mesh configuration from the DNA.</p>
<p>@type data: MeshModel
@param data: An object that stores values that get passed around different methods.</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">rename_mesh</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.mesh.Mesh"title="dna_viewer.config.mesh.Mesh"><spanclass="pre">dna_viewer.config.mesh.Mesh</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_object</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMaya.MObject</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">OpenMaya.MDagModifier</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_neutral.html#MeshNeutral.rename_mesh"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_neutral.MeshNeutral.rename_mesh"title="Permalink to this definition"></a></dt>
<dd><p>Renames the initial mesh object that was created to the name from the configuration.</p>
<p>@type config: MeshConfig
@param config: Mesh configuration from the DNA.</p>
<p>@type mesh_object: MObject
@param data: An object that stores values that get passed around different methods.</p>
<p>@rtype: Tuple[MDagModifier]
@returns: Maya object representing the dag modifier.</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.mesh_normals">
<spanid="dna-viewer-util-mesh-normals-module"></span><h2>dna_viewer.util.mesh_normals module<aclass="headerlink"href="#module-dna_viewer.util.mesh_normals"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh_normals.</span></span><spanclass="sig-name descname"><spanclass="pre">MeshNormals</span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_normals.html#MeshNormals"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_normals.MeshNormals"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">add_normals</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.mesh.Mesh"title="dna_viewer.config.mesh.Mesh"><spanclass="pre">dna_viewer.config.mesh.Mesh</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.mesh.Mesh"title="dna_viewer.model.mesh.Mesh"><spanclass="pre">dna_viewer.model.mesh.Mesh</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">fn_mesh</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMaya.MFnMesh</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">space</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">OpenMaya.MSpace</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">2</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_normals.html#MeshNormals.add_normals"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_normals.MeshNormals.add_normals"title="Permalink to this definition"></a></dt>
<dd><p>Adds normals to the mesh node.</p>
<p>@type config: MeshConfig
@param config: Mesh configuration from the DNA.</p>
<p>@type data: MeshModel
@param data: An object that stores values that get passed around different methods.</p>
<p>@type fn_mesh: MFnMesh
@params fn_mesh: Object used for manipulating maya mesh objects.</p>
<p>@type space: Optional[space]
@params space: The maya space used for setting the face vertex normals (defaults to MSpace.kObject)</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.mesh_skin">
<spanid="dna-viewer-util-mesh-skin-module"></span><h2>dna_viewer.util.mesh_skin module<aclass="headerlink"href="#module-dna_viewer.util.mesh_skin"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.mesh_skin.</span></span><spanclass="sig-name descname"><spanclass="pre">MeshSkin</span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_skin.html#MeshSkin"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_skin.MeshSkin"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">add_skin_cluster</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">joint_names</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_skin.html#MeshSkin.add_skin_cluster"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_skin.MeshSkin.add_skin_cluster"title="Permalink to this definition"></a></dt>
<dd><p>Creates a skin cluster object.</p>
<p>@type dna: DNA
@param dna: Instance of DNA.</p>
<p>@type mesh_index: int
@param mesh_index: The index of the mesh.</p>
<p>@type mesh_name: str
@param mesh_name: The mesh name that is used for skin cluster naming.</p>
<p>@type joints: List[Joint]
@param joints: List of joints used for adding the skin cluster.</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">prepare_joints</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Tuple</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_skin.html#MeshSkin.prepare_joints"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_skin.MeshSkin.prepare_joints"title="Permalink to this definition"></a></dt>
<dd><p>Gets the joint indices and names needed for the given mesh.</p>
<p>@type dna: DNA
@param dna: Instance of DNA.</p>
<p>@type mesh_index: int
@param mesh_index: The index of the mesh.</p>
<p>@type joints: List[Joint]
@param joints: List of all joints from which some of them are selected as a result.</p>
<p>@rtype: Tuple[List[int], List[str]]
@returns: The tuple containing the list of joint indices and the list of joint names.</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">set_skin_weights</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">joint_ids</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/mesh_skin.html#MeshSkin.set_skin_weights"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.mesh_skin.MeshSkin.set_skin_weights"title="Permalink to this definition"></a></dt>
<dd><p>Sets the skin weights attributes.</p>
<p>@type dna: DNA
@param dna: Instance of DNA.</p>
<p>@type mesh_index: int
@param mesh_index: The index of the mesh.</p>
<p>@type mesh_name: str
@param mesh_name: The mesh name that is used for getting the skin cluster name.</p>
<p>@type joint_ids: List[int]
@param joint_ids: List of joint indices used for setting the skin weight attribute.</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.reader">
<spanid="dna-viewer-util-reader-module"></span><h2>dna_viewer.util.reader module<aclass="headerlink"href="#module-dna_viewer.util.reader"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.reader.</span></span><spanclass="sig-name descname"><spanclass="pre">Reader</span></span><aclass="reference internal"href="_modules/dna_viewer/util/reader.html#Reader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.reader.Reader"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">create_stream_reader</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">dna.BinaryStreamReader</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/reader.html#Reader.create_stream_reader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.reader.Reader.create_stream_reader"title="Permalink to this definition"></a></dt>
<dd><p>Creates a stream reader needed for reading values from the DNA file.</p>
<p>@type dna_path: str
@param dna_path: The path of the DNA file</p>
<p>@rtype: dna.BinaryStreamReader
@returns: The stream reader needed for reading values from the DNA file</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.reference">
<spanid="dna-viewer-util-reference-module"></span><h2>dna_viewer.util.reference module<aclass="headerlink"href="#module-dna_viewer.util.reference"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.reference.</span></span><spanclass="sig-name descname"><spanclass="pre">Reference</span></span><aclass="reference internal"href="_modules/dna_viewer/util/reference.html#Reference"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.reference.Reference"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">geometry_readers</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">Dict</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="dna_viewer.reader.html#dna_viewer.reader.geometry.Geometry"title="dna_viewer.reader.geometry.Geometry"><spanclass="pre">dna_viewer.reader.geometry.Geometry</span></a><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></em><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">{}</span></em><aclass="headerlink"href="#dna_viewer.util.reference.Reference.geometry_readers"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_geometry_reader</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="dna_viewer.reader.html#dna_viewer.reader.geometry.Geometry"title="dna_viewer.reader.geometry.Geometry"><spanclass="pre">dna_viewer.reader.geometry.Geometry</span></a></span></span><aclass="reference internal"href="_modules/dna_viewer/util/reference.html#Reference.get_geometry_reader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.reference.Reference.get_geometry_reader"title="Permalink to this definition"></a></dt>
<dd><p>Gets a Geometry reader for a given mesh index and a dna_file path.</p>
<p>@type mesh_index: int
@param mesh_index: The mesh index</p>
<p>@type dna_path: str
@param dna_path: The path of the DNA file</p>
<p>@rtype: Geometry
@returns: A stored geometry reader for the given mesh index and DNA</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">set_geometry_reader</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">geometry_reader</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.reader.html#dna_viewer.reader.geometry.Geometry"title="dna_viewer.reader.geometry.Geometry"><spanclass="pre">dna_viewer.reader.geometry.Geometry</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/reference.html#Reference.set_geometry_reader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.reference.Reference.set_geometry_reader"title="Permalink to this definition"></a></dt>
<dd><p>Adds a mapping value of a geometry reader to the DNA file path.</p>
<p>@type dna_path: str
@param dna_path: The path of the DNA file</p>
<p>@type geometry_reader: Geometry
@param geometry_reader: The geometry reader that should be added to the mapping.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.reference.</span></span><spanclass="sig-name descname"><spanclass="pre">get_geometry_reader</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dna_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="dna_viewer.reader.html#dna_viewer.reader.geometry.Geometry"title="dna_viewer.reader.geometry.Geometry"><spanclass="pre">dna_viewer.reader.geometry.Geometry</span></a></span></span><aclass="reference internal"href="_modules/dna_viewer/util/reference.html#get_geometry_reader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.reference.get_geometry_reader"title="Permalink to this definition"></a></dt>
<dd><p>Gets a Geometry reader for a given mesh index and a dna_file path.</p>
<p>@type mesh_index: int
@param mesh_index: The mesh index</p>
<p>@type dna_path: str
@param dna_path: The path of the DNA file</p>
<p>@rtype: Geometry
@returns: A geometry reader stored in the Reference class object for the given mesh index and DNA</p>
<spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.reference.</span></span><spanclass="sig-name descname"><spanclass="pre">set_geometry_reader</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">geometry_reader</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.reader.html#dna_viewer.reader.geometry.Geometry"title="dna_viewer.reader.geometry.Geometry"><spanclass="pre">dna_viewer.reader.geometry.Geometry</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/reference.html#set_geometry_reader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.reference.set_geometry_reader"title="Permalink to this definition"></a></dt>
<dd><p>Adds a new geometry reader to the the references mapped to the DNA file path.</p>
<p>@type dna_path: str
@param dna_path: The path of the DNA file</p>
<p>@type geometry_reader: Geometry
@param geometry_reader: The geometry stream reader</p>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.rig_logic">
<spanid="dna-viewer-util-rig-logic-module"></span><h2>dna_viewer.util.rig_logic module<aclass="headerlink"href="#module-dna_viewer.util.rig_logic"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.rig_logic.</span></span><spanclass="sig-name descname"><spanclass="pre">RigLogic</span></span><aclass="reference internal"href="_modules/dna_viewer/util/rig_logic.html#RigLogic"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.rig_logic.RigLogic"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">add_rig_logic</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.character.Character"title="dna_viewer.config.character.Character"><spanclass="pre">dna_viewer.config.character.Character</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">character_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/rig_logic.html#RigLogic.add_rig_logic"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.rig_logic.RigLogic.add_rig_logic"title="Permalink to this definition"></a></dt>
<dd><p>Adds a rig logic node if the option is specified in the character configuration.</p>
<p>@type config: Character
@param config: The character configuration.</p>
<p>@type character_name: str
@param character_name: The name of the character.</p>
<spanid="dna-viewer-util-scene-builder-module"></span><h2>dna_viewer.util.scene_builder module<aclass="headerlink"href="#module-dna_viewer.util.scene_builder"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.scene_builder.</span></span><spanclass="sig-name descname"><spanclass="pre">SceneBuilder</span></span><aclass="reference internal"href="_modules/dna_viewer/util/scene_builder.html#SceneBuilder"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.scene_builder.SceneBuilder"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">LOD_PREFIX</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">'LOD_'</span></em><aclass="headerlink"href="#dna_viewer.util.scene_builder.SceneBuilder.LOD_PREFIX"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">add_display_layers</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">display_layers_needed</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/scene_builder.html#SceneBuilder.add_display_layers"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.scene_builder.SceneBuilder.add_display_layers"title="Permalink to this definition"></a></dt>
<dd><p>Creates a display layer for each value of the given list if it does not exist</p>
<p>@type display_layers_needed: List[int]
@param display_layers_needed: A list of lod numbers that need a display layer created for them</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">new_scene</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/scene_builder.html#SceneBuilder.new_scene"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.scene_builder.SceneBuilder.new_scene"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">save_scene</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">save_options</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.config.html#dna_viewer.config.scene.SaveOptions"title="dna_viewer.config.scene.SaveOptions"><spanclass="pre">dna_viewer.config.scene.SaveOptions</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/scene_builder.html#SceneBuilder.save_scene"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.scene_builder.SceneBuilder.save_scene"title="Permalink to this definition"></a></dt>
<dd><p>Saves the scene if save options are provided.</p>
<p>@type save_options: SaveOptions
@param save_options: The part configuration concerning how the scene should be saved</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">set_units</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dna</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="dna_viewer.model.html#dna_viewer.model.dna.DNA"title="dna_viewer.model.dna.DNA"><spanclass="pre">dna_viewer.model.dna.DNA</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">units</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">dna_viewer.config.units.Unit</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/scene_builder.html#SceneBuilder.set_units"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.scene_builder.SceneBuilder.set_units"title="Permalink to this definition"></a></dt>
<dd><p>Sets the linear and angle units of the scene if provided as a parameter, otherwise defaults the values provided in the DNA file.</p>
<p>@type units: Unit
@param units: The configuration that contains the linear and the angle unit.</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util.shader">
<spanid="dna-viewer-util-shader-module"></span><h2>dna_viewer.util.shader module<aclass="headerlink"href="#module-dna_viewer.util.shader"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.shader.</span></span><spanclass="sig-name descname"><spanclass="pre">Shader</span></span><aclass="reference internal"href="_modules/dna_viewer/util/shader.html#Shader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.shader.Shader"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">default_lambert_shader</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">character_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">create_character_node</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">bool</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/shader.html#Shader.default_lambert_shader"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.shader.Shader.default_lambert_shader"title="Permalink to this definition"></a></dt>
<spanid="dna-viewer-util-skin-weights-maya-module"></span><h2>dna_viewer.util.skin_weights_maya module<aclass="headerlink"href="#module-dna_viewer.util.skin_weights_maya"title="Permalink to this headline"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.skin_weights_maya.</span></span><spanclass="sig-name descname"><spanclass="pre">MayaSkinWeights</span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#MayaSkinWeights"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">create</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">skin_cluster</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMayaAnim.MFnSkinCluster</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights"title="dna_viewer.util.skin_weights_maya.MayaSkinWeights"><spanclass="pre">dna_viewer.util.skin_weights_maya.MayaSkinWeights</span></a></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#MayaSkinWeights.create"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights.create"title="Permalink to this definition"></a></dt>
<dd><p>Creates a new instance of the class object.</p>
<p>@type skin_cluster: MFnSkinCluster
@param skin_cluster: Functionalities of maya skin clusters</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_skin_cluster_influence</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">skin_cluster</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMayaAnim.MFnSkinCluster</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#MayaSkinWeights.get_skin_cluster_influence"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights.get_skin_cluster_influence"title="Permalink to this definition"></a></dt>
<dd><p>Gets a list of joint names that are influences to the skin cluster.</p>
<p>@type skin_cluster: MFnSkinCluster
@param skin_cluster: The functionalities of a maya skin cluster object</p>
<p>@rtype: List[str]
@returns: The list if names of the joints that influence the skin cluster</p>
<emclass="property"><spanclass="pre">static</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">get_skin_weights_for_mesh_name</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">skin_cluster</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMayaAnim.MFnSkinCluster</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#MayaSkinWeights.get_skin_weights_for_mesh_name"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights.get_skin_weights_for_mesh_name"title="Permalink to this definition"></a></dt>
<dd><p>Gets the skin weights concerning the given mesh.</p>
<p>@type skin_cluster: MFnSkinCluster
@param skin_cluster: The functionalities of a maya skin cluster object</p>
<p>@type mesh_name: str
@param mesh_name: The name of the mesh</p>
<p>@rtype: List[List[Union[int, float]]]
@returns: A list of list of weight indices and the weight values</p>
<spanclass="sig-name descname"><spanclass="pre">joints</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></em><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights.joints"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">no_of_influences</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">int</span></em><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights.no_of_influences"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">skinning_method</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">int</span></em><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights.skinning_method"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">vertices_info</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></em><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights.vertices_info"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">dna_viewer.util.skin_weights_maya.</span></span><spanclass="sig-name descname"><spanclass="pre">SkinWeightsMaya</span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#SkinWeightsMaya"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.SkinWeightsMaya"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_file_joint_mappings</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">skin_weights</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights"title="dna_viewer.util.skin_weights_maya.MayaSkinWeights"><spanclass="pre">dna_viewer.util.skin_weights_maya.MayaSkinWeights</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">skin_cluster</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMayaAnim.MFnSkinCluster</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#SkinWeightsMaya.get_file_joint_mappings"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.SkinWeightsMaya.get_file_joint_mappings"title="Permalink to this definition"></a></dt>
<dd><p>Returns a list of object indices representing the influences concerning the joint names specified in the skin weight model.</p>
<p>@type skin_weights: MayaSkinWeights
@param skin_weights: The instance of the model storing data about skin weights</p>
<p>@type skin_cluster: MFnSkinCluster
@param skin_cluster: An object for working with functions concerning a skin cluster in maya</p>
<p>@rtype: List[int]
@returns: a list of indices representing the influences concerning the given joints</p>
<spanclass="sig-name descname"><spanclass="pre">get_skin_weights_data</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Tuple</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">OpenMaya.MFnMesh</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">OpenMayaAnim.MFnSkinCluster</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#SkinWeightsMaya.get_skin_weights_data"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.SkinWeightsMaya.get_skin_weights_data"title="Permalink to this definition"></a></dt>
<dd><p>Gets the maya objects that manipulate the mesh node and the skin cluster for a given mesh name.</p>
<p>@type mesh_name: str
@param mesh_name: The name of the mesh</p>
<p>@rtype: Tuple[MFnMesh, MFnSkinCluster]
@returns: The maya object that manipulate the mesh node and the skin cluster for a given mesh name.</p>
<spanclass="sig-name descname"><spanclass="pre">get_skin_weights_from_scene</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights"title="dna_viewer.util.skin_weights_maya.MayaSkinWeights"><spanclass="pre">dna_viewer.util.skin_weights_maya.MayaSkinWeights</span></a></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#SkinWeightsMaya.get_skin_weights_from_scene"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.SkinWeightsMaya.get_skin_weights_from_scene"title="Permalink to this definition"></a></dt>
<dd><p>Gets the instance of this class filled with data from the scene for a given mesh name.</p>
<p>@type mesh_name: str
@param mesh_name: The mesh name</p>
<p>@rtype: MayaSkinWeights
@returns: An instance of this class with the data from the scene</p>
<spanclass="sig-name descname"><spanclass="pre">import_skin_weights</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">skin_cluster</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMayaAnim.MFnSkinCluster</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_node</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">OpenMaya.MFnMesh</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">skin_weights</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights"title="dna_viewer.util.skin_weights_maya.MayaSkinWeights"><spanclass="pre">dna_viewer.util.skin_weights_maya.MayaSkinWeights</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">file_joint_mapping</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">List</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">]</span></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#SkinWeightsMaya.import_skin_weights"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.SkinWeightsMaya.import_skin_weights"title="Permalink to this definition"></a></dt>
<dd><p>Imports the skin weights to the scene using the joint mapping and the data provided in the model containing the weights.</p>
<p>@type skin_cluster: MFnSkinCluster
@param skin_cluster: An object for working with functions concerning a skin cluster in maya</p>
<p>@type mesh_node: MFnMesh
@param mesh_node: An object for working with functions concerning meshes in maya</p>
<p>@type skin_weights: MayaSkinWeights
@param skin_weights: The instance of the model storing data about skin weights</p>
<p>@type file_joint_mapping: List[int]
@param file_joint_mapping: a list of indices representing the influences concerning joints</p>
<spanclass="sig-name descname"><spanclass="pre">set_skin_weights_to_scene</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mesh_name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">skin_weights</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="#dna_viewer.util.skin_weights_maya.MayaSkinWeights"title="dna_viewer.util.skin_weights_maya.MayaSkinWeights"><spanclass="pre">dna_viewer.util.skin_weights_maya.MayaSkinWeights</span></a></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">None</span></span></span><aclass="reference internal"href="_modules/dna_viewer/util/skin_weights_maya.html#SkinWeightsMaya.set_skin_weights_to_scene"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#dna_viewer.util.skin_weights_maya.SkinWeightsMaya.set_skin_weights_to_scene"title="Permalink to this definition"></a></dt>
<dd><p>Sets the skin weights to the scene.</p>
<p>@type mesh_name: str
@param mesh_name: The mesh name</p>
<p>@type skin_weights: MayaSkinWeights
@param skin_weights: The object containing data that need to be set to the scene.</p>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-dna_viewer.util">
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-dna_viewer.util"title="Permalink to this headline"></a></h2>