#698 - added collect_render

This commit is contained in:
Petr Kalis 2020-11-11 18:10:46 +01:00
parent d285b504b1
commit 4beb6d620f
2 changed files with 27 additions and 2 deletions

View file

@ -16,5 +16,3 @@ class CollectCurrentFile(pyblish.api.ContextPlugin):
context.data["currentFile"] = os.path.normpath(
aftereffects.stub().get_active_document_full_name()
).replace("\\", "/")
#print(debug_pyblish_plugins_loading.discover())

View file

@ -0,0 +1,27 @@
from pype.lib import abstract_collect_render
import pyblish.api
from abc import ABCMeta
import pyblish.api
import six
from avalon import aftereffects
@six.add_metaclass(ABCMeta)
class CollectRender(abstract_collect_render.AbstractCollectRender):
order = pyblish.api.CollectorOrder + 0.01
hosts = ["maya"]
label = "Collect Render Layers"
sync_workfile_version = False
def get_instances(self, context):
import web_pdb
web_pdb.set_trace()
print("hello {}".format(context))
return aftereffects.stub().get_metadata()
def get_expected_files(self, render_instance):
import web_pdb
web_pdb.set_trace()
return []