yaotungyu

batch cfx update

Jun 9th, 2021
766
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2. if 'G:/Tech_Animation/scripts' not in sys.path:sys.path.append('G:/Tech_Animation/scripts')
  3. import Lavatorium
  4.  
  5. from aronado import _sg_query_util
  6. from aronado._executors.Asset import cfxBatchBuilder
  7. reload(cfxBatchBuilder)
  8.  
  9. cfx_rvs = _sg_query_util.sg_list_assets(status_list = ['rvs'],task_code = 'cfx')
  10. grm_wtg = _sg_query_util.sg_list_assets(status_list = ['wtg'],task_code = 'grm')
  11.  
  12. rebuildable_cfx = list(set(cfx_rvs).difference(grm_wtg))
  13.  
  14. for asset_name in rebuildable_cfx:
  15.     batch_cfx_pubber = cfxBatchBuilder.BatchScriptPropogator()
  16.     batch_cfx_pubber._injected_parent_data={}
  17.     batch_cfx_pubber._injected_parent_data['_immediate_shot']=asset_name
  18.     batch_cfx_pubber.Run_Pre_Propagtion_Cmds()
  19.     batch_cfx_pubber.Propagate()
RAW Paste Data