Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from alembic_cache_utils import cache_utils, export_asset
- from alembic_cache_utils.pipeline_cache import export_cache
- import assets
- assetList = ['Mouse_Gio_Mom']
- ass_cls_list = []
- for ns in [ns for ns in cmds.namespaceInfo( listOnlyNamespaces=True ) if '_' in ns]:
- asset_name = '_'.join(ns.split('_')[:-1])
- if asset_name in assetList:
- ass_cls_list.append(assets.by_namespace(ns))
- cache_que_base_dir = 'C:/Temp/substep_cache_que'
- cmds.sysFile(cache_que_base_dir,md=1)
- cache_que_json = cache_que_base_dir+'/'+str(os.getpid())+'_Cache_Que.json'
- export_asset.export_asset_list(asset_list=ass_cls_list, queue_path=cache_que_json,custom_name='Batch')
- with open(cache_que_json,'r') as que_file:
- que_orig_read = que_file.read()
- with open(cache_que_json,'w') as que_file:
- que_file.write(que_orig_read.replace('-step 1.0','-step 0.25'))
- cache_que_run_cls = export_cache.RunQueuedJobs(queue_path=cache_que_json)
- cache_que_run_cls._run_cache()"
- help(export_asset.export_asset_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement