How can publish Alembic geometry in Maya when working on a Shot?

The default configuration is set up to allow publishing of Alembic geometry in Maya when working on assets, but you can add the functionality so it is available when working on shots as well.

Instructions

To add it you need to copy the alembic publish settings from the Maya asset publish app environment settings:

To your Maya shot publish app environment settings:

So that you have something that looks like this:

settings.tk-multi-publish2.maya.shot_step:
  collector: "{self}/collector.py:{engine}/tk-multi-publish2/basic/collector.py"
  collector_settings:
      Work Template: maya_shot_work
  publish_plugins:
  - name: Publish to Shotgun
    hook: "{self}/publish_file.py"
    settings: {}
  - name: Upload for review
    hook: "{self}/upload_version.py"
    settings: {}
  - name: Begin file versioning
    hook: "{engine}/tk-multi-publish2/basic/start_version_control.py"
    settings: {}
  - name: Publish to Shotgun
    hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_session.py"
    settings:
        Publish Template: maya_shot_publish
  - name: Publish to Shotgun
    hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_session_geometry.py"
    settings:
        Publish Template: shot_alembic_cache
  help_url: *help_url
  location: "@apps.tk-multi-publish2.location"

Note that I’ve changed the Publish Template value from asset_alembic_cache to shot_alembic_cache. However, the shot_alembic_cache doesn’t exist yet in the templates.yml so you need to add it here:

Something like:

shot_alembic_cache:
        definition: '@shot_root/publish/caches/{name}.v{version}.abc'
4 Likes

Thanks very much Phil, that’s good to see!

2 Likes