mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added few todos
This commit is contained in:
parent
3fdfcec29b
commit
ebdc7c3700
2 changed files with 7 additions and 3 deletions
|
|
@ -16,11 +16,12 @@ class IntegrateResourcesPath(pyblish.api.InstancePlugin):
|
|||
template_data = copy.deepcopy(instance.data["anatomyData"])
|
||||
|
||||
anatomy = instance.context.data["anatomy"]
|
||||
padding = int(anatomy.templates["render"]["padding"])
|
||||
frame_padding = int(anatomy.templates["render"]["padding"])
|
||||
|
||||
# add possible representation specific key to anatomy data
|
||||
# TODO ability to set host specific "frame" value
|
||||
template_data.update({
|
||||
"frame": ("#" * padding),
|
||||
"frame": ("#" * frame_padding),
|
||||
"representation": "TEMP"
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
def register(self, instance):
|
||||
# Required environment variables
|
||||
anatomy_data = instance.data["anatomyData"]
|
||||
avalon_location = api.Session["AVALON_LOCATION"]
|
||||
|
||||
io.install()
|
||||
|
||||
|
|
@ -165,6 +164,10 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
if version_data_instance:
|
||||
version_data.update(version_data_instance)
|
||||
|
||||
# TODO remove avalon_location (shall we?)
|
||||
avalon_location = api.Session["AVALON_LOCATION"]
|
||||
# TODO rename method from `create_version` to
|
||||
# `prepare_version` or similar...
|
||||
version = self.create_version(
|
||||
subset=subset,
|
||||
version_number=version_number,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue