add reset fbs to reset framerange

This commit is contained in:
Mustafa-Zarkash 2023-08-28 22:47:18 +03:00
parent 437f483bc4
commit e6bbb0c038
2 changed files with 5 additions and 6 deletions

View file

@ -474,6 +474,11 @@ def maintained_selection():
def reset_framerange():
"""Set frame range to current asset"""
# Set new scene fps
fps = get_asset_fps()
print("Setting scene FPS to {}".format(int(fps)))
set_scene_fps(fps)
project_name = get_current_project_name()
asset_name = get_current_asset_name()
# Get the asset ID from the database for the asset of current context

View file

@ -25,7 +25,6 @@ from openpype.lib import (
emit_event,
)
from .lib import get_asset_fps
log = logging.getLogger("openpype.hosts.houdini")
@ -385,11 +384,6 @@ def _set_context_settings():
None
"""
# Set new scene fps
fps = get_asset_fps()
print("Setting scene FPS to %i" % fps)
lib.set_scene_fps(fps)
lib.reset_framerange()