mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
oscar's comments
This commit is contained in:
parent
b5188e144a
commit
4274300874
4 changed files with 30 additions and 22 deletions
|
|
@ -41,9 +41,10 @@ class CreateArnoldRop(plugin.HoudiniCreator):
|
|||
|
||||
ext = pre_create_data.get("image_format")
|
||||
|
||||
filepath = "{}{}".format(
|
||||
hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
"{}/{}.$F4.{}".format(subset_name, subset_name, ext)
|
||||
filepath = "{renders_dir}{subset_name}/{subset_name}.$F4.{ext}".format(
|
||||
renders_dir=hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
subset_name=subset_name,
|
||||
ext=ext,
|
||||
)
|
||||
parms = {
|
||||
# Render frame range
|
||||
|
|
|
|||
|
|
@ -32,18 +32,19 @@ class CreateKarmaROP(plugin.HoudiniCreator):
|
|||
|
||||
ext = pre_create_data.get("image_format")
|
||||
|
||||
filepath = "{}{}".format(
|
||||
hou.text.expandString("$HIP/pyblish/render/"),
|
||||
"{}/{}.$F4.{}".format(subset_name, subset_name, ext)
|
||||
filepath = "{renders_dir}{subset_name}/{subset_name}.$F4.{ext}".format(
|
||||
renders_dir=hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
subset_name=subset_name,
|
||||
ext=ext,
|
||||
)
|
||||
checkpoint = "{}{}".format(
|
||||
hou.text.expandString("$HIP/pyblish/"),
|
||||
"{}.$F4.checkpoint".format(subset_name)
|
||||
checkpoint = "{cp_dir}{subset_name}.$F4.checkpoint".format(
|
||||
cp_dir= hou.text.expandString("$HIP/pyblish/"),
|
||||
subset_name= subset_name
|
||||
)
|
||||
|
||||
usd_directory = "{}{}".format(
|
||||
hou.text.expandString("$HIP/pyblish/renders/usd_renders/"),
|
||||
"{}_$RENDERID".format(subset_name, subset_name, ext)
|
||||
usd_directory = "{usd_dir}{subset_name}_$RENDERID".format(
|
||||
usd_dir = hou.text.expandString("$HIP/pyblish/renders/usd_renders/"),
|
||||
subset_name=subset_name
|
||||
)
|
||||
|
||||
parms = {
|
||||
|
|
@ -66,12 +67,10 @@ class CreateKarmaROP(plugin.HoudiniCreator):
|
|||
camera = None
|
||||
for node in self.selected_nodes:
|
||||
if node.type().name() == "cam":
|
||||
camera = node.path()
|
||||
camera_node = hou.node(camera)
|
||||
has_camera = pre_create_data.get("cam_res")
|
||||
if has_camera:
|
||||
res_x = camera_node.evalParm("resx")
|
||||
res_y = camera_node.evalParm("resy")
|
||||
res_x = node.evalParm("resx")
|
||||
res_y = node.evalParm("resy")
|
||||
|
||||
if not camera:
|
||||
self.log.warning("No render camera found in selection")
|
||||
|
|
|
|||
|
|
@ -32,9 +32,10 @@ class CreateMantraROP(plugin.HoudiniCreator):
|
|||
|
||||
ext = pre_create_data.get("image_format")
|
||||
|
||||
filepath = "{}{}".format(
|
||||
hou.text.expandString("$HIP/pyblish/render/"),
|
||||
"{}/{}.$F4.{}".format(subset_name, subset_name, ext)
|
||||
filepath = "{renders_dir}{subset_name}/{subset_name}.$F4.{ext}".format(
|
||||
renders_dir=hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
subset_name=subset_name,
|
||||
ext=ext,
|
||||
)
|
||||
|
||||
parms = {
|
||||
|
|
|
|||
|
|
@ -69,6 +69,12 @@ class CreateVrayROP(plugin.HoudiniCreator):
|
|||
instance_data["RenderElement"] = pre_create_data.get("render_element_enabled") # noqa
|
||||
if pre_create_data.get("render_element_enabled", True):
|
||||
# Vray has its own tag for AOV file output
|
||||
filepath = "{renders_dir}{subset_name}/{subset_name}.${aov}.$F4.{ext}".format(
|
||||
renders_dir=hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
subset_name=subset_name,
|
||||
aov = "AOV",
|
||||
ext=ext,
|
||||
)
|
||||
filepath = "{}{}".format(
|
||||
hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
"{}/{}.${}.$F4.{}".format(subset_name,
|
||||
|
|
@ -90,9 +96,10 @@ class CreateVrayROP(plugin.HoudiniCreator):
|
|||
})
|
||||
|
||||
else:
|
||||
filepath = "{}{}".format(
|
||||
hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
"{}/{}.$F4.{}".format(subset_name, subset_name, ext)
|
||||
filepath = "{renders_dir}{subset_name}/{subset_name}.$F4.{ext}".format(
|
||||
renders_dir=hou.text.expandString("$HIP/pyblish/renders/"),
|
||||
subset_name=subset_name,
|
||||
ext=ext,
|
||||
)
|
||||
parms.update({
|
||||
"use_render_channels": 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue