def execute(self, context): try: self._import_recording(context) except Exception as e: capture_exception() raise e return {'FINISHED'}
def invoke(self, context, _event): try: wm = context.window_manager log_amplitude("Blender import operator opened") return wm.invoke_props_dialog(self) except Exception as e: capture_exception() raise e
def reload_recordings_list(node_path): try: hou = get_hou() node = hou.node(node_path) HoudiniParamsBuilder.set_byplay_recording_ids(node) log_amplitude(u"Recording list reloaded") except Exception, e: capture_exception() raise e
def _get_recording_ids_search(_scene, _context): try: return list( reversed( sorted( map(lambda x: (x, x, ""), RecordingLocalStorage().list_recording_ids()) ) ) ) except Exception as e: capture_exception() raise e
def load_recording_for_ui(node_path): try: hou = get_hou() node = hou.node(node_path) recording_id = node.parm("byplay_recording_id").evalAsString() log_amplitude("Recording loaded", recording_id=recording_id) if len(recording_id) < 18: hou.ui.displayMessage("Please select a recording", severity=hou.severityType.Error) return config = { 'set_30fps': node.parm("byplay_set_30fps").eval(), 'add_chopnet': node.parm("byplay_add_chopnet").eval(), } scene.load_recording_for_ui(recording_id, refined=True, config=config) node.setParms({"byplay_loaded_recording_id": recording_id}) except Exception as e: capture_exception() raise e
def setup_byplay_helper_nodes(node): try: Config.setup_logger() except Exception as e: capture_exception() raise e try: Config.read() except Exception as e: capture_exception() hou = get_hou() hou.ui.displayMessage( "Could not read config file. Please open Byplay Desktop and set it up", severity=hou.severityType.Error) raise e try: logging.info("Creating byplay loader node") byplay_settings_container.ByplaySettingsContainer(node).setup() except Exception as e: capture_exception() raise e
def draw(self, context): try: self._draw(context) except Exception as e: capture_exception() raise e
def setup_byplay_helper_nodes(node): try: Config.setup_logger() except Exception, e: capture_exception() raise e
from byplay.recording import Recording import byplay.wrappers.byplay_settings_container as byplay_settings_container from byplay.wrappers.houdini_scene import HoudiniScene def setup_byplay_helper_nodes(node): try: Config.setup_logger() except Exception, e: capture_exception() raise e try: Config.read() except Exception, e: capture_exception() hou = get_hou() hou.ui.displayMessage( u"Could not read config file. Please open Byplay Desktop and set it up", severity=hou.severityType.Error) raise e try: logging.info(u"Creating byplay loader node") byplay_settings_container.ByplaySettingsContainer(node).setup() except Exception, e: capture_exception() raise e def load_recording(recording_id, refined):