SHARE
TWEET

substep_abc

yaotungyu Mar 31st, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from alembic_cache_utils import cache_utils, export_asset
  2. from alembic_cache_utils.pipeline_cache import export_cache
  3. import assets
  4.  
  5. assetList = ['Mouse_Gio_Mom']
  6.  
  7. ass_cls_list = []
  8. for ns in [ns for ns in cmds.namespaceInfo( listOnlyNamespaces=True ) if '_' in ns]:
  9.     asset_name = '_'.join(ns.split('_')[:-1])
  10.     if asset_name in assetList:
  11.         ass_cls_list.append(assets.by_namespace(ns))
  12.  
  13.    
  14. cache_que_base_dir = 'C:/Temp/substep_cache_que'
  15. cmds.sysFile(cache_que_base_dir,md=1)
  16. cache_que_json = cache_que_base_dir+'/'+str(os.getpid())+'_Cache_Que.json'
  17. export_asset.export_asset_list(asset_list=ass_cls_list, queue_path=cache_que_json,custom_name='Batch')
  18.  
  19. with open(cache_que_json,'r') as que_file:
  20.     que_orig_read = que_file.read()
  21.  
  22. with open(cache_que_json,'w') as que_file:
  23.     que_file.write(que_orig_read.replace('-step 1.0','-step 0.25'))
  24.  
  25. cache_que_run_cls = export_cache.RunQueuedJobs(queue_path=cache_que_json)
  26. cache_que_run_cls._run_cache()"
  27.  
  28.  
  29. help(export_asset.export_asset_list)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top