Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
change function name + docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fricard committed May 12, 2023
1 parent ff09bbb commit 5ae1847
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions openpype/hosts/maya/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ def reset_frame_range(playback=True, render=True, fps=True, instances=True):
project_name = get_current_project_name()
settings = get_project_settings(project_name)
if settings["maya"]["update_publishable_frame_range"]["enabled"]:
update_assets_frame_range()
update_instances_frame_range()


def reset_scene_resolution():
Expand Down Expand Up @@ -3061,7 +3061,10 @@ def remove_render_layer_observer():
pass


def update_assets_frame_range():
def update_instances_frame_range():
"""Update 'frameStart', 'frameEnd', 'handleStart', 'handleEnd' and 'asset'
attributes of sets that got one, execpt if instance family is 'render'
"""
collected_instances = cmds.ls(
"*.id",
long=True,
Expand Down Expand Up @@ -3104,6 +3107,7 @@ def update_assets_frame_range():
value
)


def show_message(title, msg):
from qtpy import QtWidgets
from openpype.widgets import message_window
Expand Down
2 changes: 1 addition & 1 deletion openpype/hosts/maya/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def on_task_changed():

with lib.suspended_refresh():
lib.set_context_settings()
lib.update_assets_frame_range()
lib.update_instances_frame_range()

msg = " project: {}\n asset: {}\n task:{}".format(
legacy_io.active_project(),
Expand Down

0 comments on commit 5ae1847

Please sign in to comment.