feat(pype): adding set_frame_range with handles and irregular handles

This commit is contained in:
Jakub Jezek 2019-05-25 16:38:43 +02:00
parent d1b6defe18
commit dadbffaee5
2 changed files with 9 additions and 0 deletions

View file

@ -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",

View file

@ -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.