def execute(output_path=None, **kwargs): import os from studio_usd_pipe.core import common from studio_usd_pipe.utils import maya_asset output_uv = os.path.join(output_path, '{}.uv'.format(kwargs['caption'])) premission = common.data_exists(output_uv, True) if not premission: return False, [output_uv], 'not able to save studio uv!...' studio_uv = maya_asset.create_studio_uv(output_uv) return True, [studio_uv], 'success!...'
def execute(output_path=None, **kwargs): import os from studio_usd_pipe.core import common from studio_usd_pipe.utils import maya_asset output_maya_scene = os.path.join(output_path, '{}.ma'.format(kwargs['caption'])) premission = common.data_exists(output_maya_scene, True) if not premission: return False, [output_maya_scene], 'not able to save studio model!...' maya_scene = maya_asset.create_maya_scene(output_maya_scene) return True, [maya_scene], 'success!...'
def execute(output_path=None, **kwargs): import os from studio_usd_pipe.core import common from studio_usd_pipe.utils import maya_scene output_model = os.path.join(output_path, '{}.animation'.format(kwargs['caption'])) premission = common.data_exists(output_model, True) if not premission: return False, [output_model], 'not able to save studio model!...' studio_model = maya_scene.create_stuio_animation(output_model) return True, [studio_model], 'success!...'
def execute(output_path=None, **kwargs): import os from studio_usd_pipe.core import common from studio_usd_pipe.utils import maya_asset output_usd = os.path.join( output_path, '{}_preview.usd'.format(kwargs['caption']) ) premission = common.data_exists(output_usd, True) if not premission: return False, [output_usd], 'not able to save studio model!...' shader_preview_usd = maya_asset.create_shader_usd(output_usd) return True, [shader_preview_usd], 'success!...'
def execute(output_path=None, **kwargs): import os from studio_usd_pipe.core import common from studio_usd_pipe.utils import maya_asset if not os.path.isfile(kwargs['thumbnail']): return False, [kwargs['thumbnail']], 'not found input thumbnail!...' ouput_image_path = os.path.join(output_path, '{}.png'.format(kwargs['caption'])) premission = common.data_exists(ouput_image_path, True) if not premission: return False, [ouput_image_path], 'not able to save thumbnail!...' thumbnail = maya_asset.create_thumbnail(kwargs['thumbnail'], ouput_image_path) return True, [thumbnail], 'success!...'