mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
feat(pype): adding set_frame_range with handles and irregular handles
This commit is contained in:
parent
d1b6defe18
commit
dadbffaee5
2 changed files with 9 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ from .templates import (
|
|||
)
|
||||
|
||||
from .lib import (
|
||||
get_handle_irregular,
|
||||
get_project_data,
|
||||
get_asset_data,
|
||||
modified_environ,
|
||||
|
|
@ -67,6 +68,7 @@ __all__ = [
|
|||
"reset_data_from_templates",
|
||||
|
||||
# get contextual data
|
||||
"get_handle_irregular",
|
||||
"get_project_data",
|
||||
"get_asset_data",
|
||||
"get_project_name",
|
||||
|
|
|
|||
|
|
@ -15,6 +15,13 @@ import avalon
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_handle_irregular(asset):
|
||||
data = asset["data"]
|
||||
handle_start = data.get("handle_start", 0)
|
||||
handle_end = asset.get("handle_end", 0)
|
||||
return (handle_start, handle_end)
|
||||
|
||||
|
||||
def add_tool_to_environment(tools):
|
||||
"""
|
||||
It is adding dynamic environment to os environment.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue