tik_manager4.dcc.blender.utils

This module contains utility functions for Blender.

Functions

get_override_context([context])

get_ranges()

Get the frame range.

get_scene_fps()

Return the scene FPS.

get_usd_export_kwargs(file_path[, animation, uvmaps, ...])

Generates arguments settings for exporting a USD file.

keep_scene_settings(func)

Decorator method to keep the current render settings.

set_ranges(range_list)

Set the frame range.

set_scene_fps(fps_value)

Set the scene FPS.

Module Contents

get_override_context(context=None)
get_ranges()

Get the frame range.

get_scene_fps()

Return the scene FPS.

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.

keep_scene_settings(func)

Decorator method to keep the current render settings.

set_ranges(range_list)

Set the frame range.

set_scene_fps(fps_value)

Set the scene FPS.