yaotungyu

PP batch local

Nov 30th, 2020 (edited)
559
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. from aronado._executors.Shot import ProductFactory
  5. reload(ProductFactory)
  6.  
  7. shots = 'shotstring'.split(',')
  8. for shot_code in shots:
  9.     prodFact_obj = ProductFactory.BatchScriptPropogator()
  10.     prodFact_obj._propagation_mode = 'AppLaunch'
  11.     prodFact_obj.asset_list = ['Tylor_T_mule']
  12.     prodFact_obj.end_state = 'rev'
  13.     prodFact_obj.do_playblast = True
  14.     prodFact_obj._injected_parent_data={}
  15.     prodFact_obj._injected_parent_data['_immediate_shot']=shot_code
  16.     prodFact_obj.Run_Pre_Propagtion_Cmds()
  17.     prodFact_obj.Propagate()
RAW Paste Data