mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
reset frame range & frame rate for the correct frame range & fps value
This commit is contained in:
parent
e8107e2b97
commit
edd19c3135
1 changed files with 4 additions and 7 deletions
|
|
@ -7,7 +7,7 @@ Because of limited api, alembics can be only loaded, but not easily updated.
|
|||
import os
|
||||
from ayon_core.pipeline import load, get_representation_path
|
||||
from ayon_max.api import lib, maintained_selection
|
||||
from ayon_max.api.lib import unique_namespace
|
||||
from ayon_max.api.lib import unique_namespace, reset_frame_range
|
||||
from ayon_max.api.pipeline import (
|
||||
containerise,
|
||||
get_previous_loaded_object,
|
||||
|
|
@ -38,12 +38,9 @@ class AbcLoader(load.LoaderPlugin):
|
|||
}
|
||||
|
||||
rt.AlembicImport.ImportToRoot = False
|
||||
product_fps = float(context["version"]["attrib"].get("fps"))
|
||||
if product_fps is None:
|
||||
# Just stick to current scene FPS
|
||||
product_fps = float(rt.frameRate)
|
||||
# TODO: remove after the post-system fps setup
|
||||
rt.frameRange = product_fps
|
||||
# TODO: it will be removed after the improvement
|
||||
# on the post-system setup
|
||||
reset_frame_range()
|
||||
rt.importFile(file_path, rt.name("noPrompt"), using=rt.AlembicImport)
|
||||
|
||||
abc_after = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue