Source code for cgl.plugins.houdini.utils
import os
[docs]
def create_tt(duration, tt_object):
"""
Args:
duration: duration of the turntable
tt_object: object to create the turntable around
"""
pass
[docs]
def set_default_render_path(node_name="out/Ocean"):
from cgl.plugins.houdini.alchemy import get_node, scene_object, set_attr
out_node = get_node(node_name)
filename = "$HIPNAME.$OS.$F4.exr"
output = scene_object().copy(entity_type="render", filename=filename)
set_attr(out_node, "vm_picture", output.get_path())
[docs]
def confirm_prompt(title="title", message="message", button="Ok"):
"""Standard confirm prompt
This is an easy wrapper that allows us to do
confirm prompts in the native language of the application while keeping conventions
Args:
title:
message:
button: single button is created with a string, multiple buttons created with array
"""
pm.confirmDialog(title=title, message=message, button=button)
[docs]
def get_hdri_json_path():
hdri_json = CONFIG["paths"]["resources"]
return os.path.join(hdri_json, "hdri", "settings.json")
# window = pm.window()
# pm.columnLayout()
# pm.optionMenu(label='Colors', changeCommand=create_env_light)
# for each in d.keys():
# pm.menuItem(label=each)
# pm.showWindow(window)
[docs]
def import_bundle(bundle_path):
"""Imports all geometry for the bundle, and places it according to the matrix.
Args:
bundle_path: path to bundle.json file.
"""
pass
[docs]
def import_layout(layout_path):
"""
parses a layout.json and imports and places all models as well as bundles.
Args:
layout_path:
"""
pass
[docs]
def create_env_light(tex_name):
"""
creates an env light with texture: tex_name
Args:
tex_name:
"""
pass