tik_manager4.dcc.blender.utils ============================== .. py:module:: tik_manager4.dcc.blender.utils .. autoapi-nested-parse:: This module contains utility functions for Blender. Functions --------- .. autoapisummary:: tik_manager4.dcc.blender.utils.get_override_context tik_manager4.dcc.blender.utils.get_ranges tik_manager4.dcc.blender.utils.get_scene_fps tik_manager4.dcc.blender.utils.get_usd_export_kwargs tik_manager4.dcc.blender.utils.keep_scene_settings tik_manager4.dcc.blender.utils.set_ranges tik_manager4.dcc.blender.utils.set_scene_fps Module Contents --------------- .. py:function:: get_override_context(context=None) .. py:function:: get_ranges() Get the frame range. .. py:function:: get_scene_fps() Return the scene FPS. .. py:function:: get_usd_export_kwargs(file_path, animation=False, uvmaps=True, hair=True, materials=True, mesh_colors=True, textures=True, export_textures_mode='NEW', convert_orientation=True, global_up_selection='Y') Generates arguments settings for exporting a USD file. Includes options for exporting materials, textures, UV maps, animation, hair, mesh colors. Adds extra settings for Blender version 4.2 or newer. Args: file_path (str): File path to write USD file animation (bool): Export animated data uvmaps (bool): Export UVs hair (bool): Export hair particle systems as curves materials (bool): Export material data mesh_colors (bool): Export color attributes textures (bool): Reference external texture files in generated USD export_textures_mode (str): Export Textures, Texture export method (KEEP', 'PRESERVE', 'NEW') convert_orientation (bool): Transform scene from Blender coordinate system to USD global_up_selection (str): Which axis in Blender will map to +Y in USD (+Y, +Z, -Y, -Z) Returns: dict: A dictionary of export options. .. py:function:: keep_scene_settings(func) Decorator method to keep the current render settings. .. py:function:: set_ranges(range_list) Set the frame range. .. py:function:: set_scene_fps(fps_value) Set the scene FPS.