mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
75 lines
1.7 KiB
Python
75 lines
1.7 KiB
Python
from avalon import api
|
|
# from pype.hosts.resolve import lib as drlib
|
|
from avalon.vendor import qargparse
|
|
|
|
|
|
def get_reference_node_parents(ref):
|
|
"""Return all parent reference nodes of reference node
|
|
|
|
Args:
|
|
ref (str): reference node.
|
|
|
|
Returns:
|
|
list: The upstream parent reference nodes.
|
|
|
|
"""
|
|
parents = []
|
|
return parents
|
|
|
|
|
|
class SequenceLoader(api.Loader):
|
|
"""A basic SequenceLoader for Resolve
|
|
|
|
This will implement the basic behavior for a loader to inherit from that
|
|
will containerize the reference and will implement the `remove` and
|
|
`update` logic.
|
|
|
|
"""
|
|
|
|
options = [
|
|
qargparse.Toggle(
|
|
"handles",
|
|
label="Include handles",
|
|
default=0,
|
|
help="Load with handles or without?"
|
|
),
|
|
qargparse.Choice(
|
|
"load_to",
|
|
label="Where to load clips",
|
|
items=[
|
|
"Current timeline",
|
|
"New timeline"
|
|
],
|
|
default=0,
|
|
help="Where do you want clips to be loaded?"
|
|
),
|
|
qargparse.Choice(
|
|
"load_how",
|
|
label="How to load clips",
|
|
items=[
|
|
"original timing",
|
|
"sequential in order"
|
|
],
|
|
default=0,
|
|
help="Would you like to place it at orignal timing?"
|
|
)
|
|
]
|
|
|
|
def load(
|
|
self,
|
|
context,
|
|
name=None,
|
|
namespace=None,
|
|
options=None
|
|
):
|
|
pass
|
|
|
|
def update(self, container, representation):
|
|
"""Update an existing `container`
|
|
"""
|
|
pass
|
|
|
|
def remove(self, container):
|
|
"""Remove an existing `container`
|
|
"""
|
|
pass
|