Maya alembic geo cache manager
Geo cache alembic v0.1
Created by Sw4r
how to install:
Just copy this code, then paste it in your script editor and make a shelf button out of it.
This tool is made in order to help animators to speed up the frame rate and the fluidity in their scenes.
It was developed for maya 2020, a python3 version is also available, feel free to send me any feedback on it.
How to use it:
First of all, it only works on references items
Select any part of one or many references objects and click on "cache it" in order to export an alembic of visbiles meshes. Those are stored under a folder named "MAYA_ALEMBIC_CACHE".
Subfolder are the name of your current scene and there will be one file per references.
Namespaces of references you cached show up in the scroll list.
You can switch between the display of alembic cache and the rigg using the "toggle selected" button.
You can also unload selected references in the list. Namespaces will switch in the other scroll list.
When you press "delete selected caches" it will searh for the selected references in the ALEMBIC_CACHE group and delete them.
Delete all caches with delete the ALEMBIC_CACHE group
Those two last button also reverse the visibility of riggs.
Open Alembic Cache Folder will pop up an explorer windows on the MAYA_CACHE_FOLDER.
And EMPTY CACHE FOLDER will try to delete every subfolder in MAYA_CACHE_FOLDER directory but if you've already done a cache of an item in your current scene
it will return a warning because the file is in use. But it will delete every other subfolders.
For future versions:
Fix impossible to export when several meshes have the same name
Fix some errors when you selected an unloaded reference.
Have a visual feedback on the current state of a reference Cache / rig