hound fix

This commit is contained in:
Kayla Man 2023-02-20 21:36:37 +08:00
parent 8002dc4f4f
commit 3aa6e9ac9d
3 changed files with 15 additions and 14 deletions

View file

@ -136,18 +136,17 @@ def get_default_render_folder(project_setting=None):
def set_framerange(startFrame, endFrame):
"""
Args:
start_frame (int): Start frame number.
end_frame (int): End frame number.
start_frame (int): Start frame number.
end_frame (int): End frame number.
Note:
Frame range can be specified in different types. Possible values are:
Frame range can be specified in different types. Possible values are:
* `1` - Single frame.
* `2` - Active time segment ( animationRange ).
* `3` - User specified Range.
* `4` - User specified Frame pickup string (for example `1,3,5-12`).
Todo:
Current type is hard-coded, there should be a custom setting for this.
* `1` - Single frame.
* `2` - Active time segment ( animationRange ).
* `3` - User specified Range.
* `4`-User specified Frame pickup string (for example `1,3,5-12`).
TODO:
Current type is hard-coded, there should be a custom setting for this.
"""
rt.rendTimeType = 4
if startFrame is not None and endFrame is not None:
@ -160,6 +159,7 @@ def get_multipass_setting(project_setting=None):
["RenderSettings"]
["multipass"])
def get_max_version():
"""
Args:

View file

@ -8,7 +8,6 @@ from openpype.hosts.max.api.lib import (
get_current_renderer,
get_default_render_folder
)
from openpype.pipeline.context_tools import get_current_project_asset
from openpype.settings import get_project_settings
from openpype.pipeline import legacy_io
@ -74,6 +73,7 @@ class RenderProducts(object):
beauty_output = f"{folder}.####.{fmt}"
beauty_output = beauty_output.replace("\\", "/")
return beauty_output
# TODO: Get the arnold render product
def arnold_render_product(self, folder, fmt):
"""Get all the Arnold AOVs"""

View file

@ -128,8 +128,8 @@ class MaxSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline):
plugin_info = MaxPluginInfo(
SceneFile=self.scene_path,
Version=instance.data["maxversion"],
SaveFile = True,
IgnoreInputs = True
SaveFile=True,
IgnoreInputs=True
)
plugin_payload = attr.asdict(plugin_info)
@ -143,7 +143,6 @@ class MaxSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline):
def process_submission(self):
instance = self._instance
context = instance.context
filepath = self.scene_path
expected_files = instance.data["expectedFiles"]
@ -187,8 +186,10 @@ class MaxSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline):
output_beauty = RenderSettings().get_render_output(instance.name,
old_output_dir)
filepath = self.from_published_scene()
def _clean_name(path):
return os.path.splitext(os.path.basename(path))[0]
new_scene = _clean_name(filepath)
orig_scene = _clean_name(instance.context.data["currentFile"])