We currently have quite long publishing times for certain plugins.
I would like to execute the publish process on our farm by starting a software in headless mode, opening a scene, and executing a certain publish plugin.
I am wondering if I can reuse the existing publish plugings that alreaady work with the tk-multi-publish2 application, but directly in python.
So I am lookging for something like:
# Sudo code # Import collector coll = sgtk.import_collector("MayaCollector") # Import publisher hook hook = sgtk.import_hook("AnimationCachePublishHook") # Publish each item for item in coll.items(): if not hook.accept(settings, item): continue if not hook.validate(settings, item): continue hook;publish(settings, item)
Does this exist?