Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shots = 'TJ_202_030_030,TJ_202_030_120,TJ_202_030_160,TJ_202_030_180,TJ_202_030_190,TJ_202_030_210,TJ_202_040_040,TJ_202_040_050,TJ_202_040_070,TJ_202_040_080,TJ_202_040_150,TJ_202_050_020,TJ_202_050_040,TJ_202_050_050,TJ_202_050_070,TJ_202_050_080,TJ_202_050_090,TJ_202_050_100,TJ_202_050_110,TJ_202_050_120,TJ_202_050_140,TJ_202_050_160,TJ_202_050_180,TJ_202_050_250,TJ_202_050_260,TJ_202_050_290,TJ_202_050_350,TJ_202_060_010,TJ_202_060_030,TJ_202_060_040,TJ_202_060_060,TJ_202_060_150,TJ_202_060_160,TJ_202_070_040,TJ_202_070_130,TJ_202_070_190'.split(',')
- logSubject='janeHelmetScaleError'
- for sh in shots:
- sf.openLatestAnimPub(shot_code=sh)
- ref = cmds.file(q=1,r=1)
- for r in ref:
- if r.find('Helmet_Jane')>-1:
- cmds.file(r,lr=1)
- scaleVal = cmds.getAttr(cmds.ls('Helmet_Jane_0*:Root_Ctrl')[0]+'.ScaleXYZ')
- if scaleVal!=1:
- cmds.sysFile('Y:/KNG/assets/gen_elems/ShotFinalTools/sf_pipe/logs/'+logSubject,md=1)
- file = open('Y:/KNG/assets/gen_elems/ShotFinalTools/sf_pipe/logs/'+logSubject+'/'+os.environ['TT_ENTNAME'],'w')
- file.write(cmds.file(q=1,exn=1))
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement