获取摄像机filegate属性


cam = 'persp'
filmgate_data = {                                         
    '"0.404", "0.295", "1.0"': '16mm Theatrical',         
    '"0.493", "0.292", "1.0"': 'Super 16mm',              
    '"0.864", "0.630", "1.0"': '35mm Academy',            
    '"0.816", "0.612", "1.0"': '35mm TV Projection',      
    '"0.980", "0.735", "1.0"': '35mm Full Aperture',      
    '"0.825", "0.446", "1.0"': '35mm 1.85 Projection',    
    '"0.864", "0.732", "2.0"': '35mm Anamorphic',         
    '"2.066", "0.906", "1.0"': '70mm Projection',         
    '"1.485", "0.991", "1.0"': 'VistaVision',             
    '"2.772", "2.072", "1.0"': 'Imax'                     
}                                                         
                                                          
# cap, hfa,vfa,lsa = camera aperture(inch), horizontalFilm
hfa, vfa = mc.getAttr('{}.cap'.format(camera))[0]         
lsr = mc.getAttr('{}.lsr'.format(camera))                 
filmgate_value =  '"{:.3f}", "{:.3f}", "{:.1f}"'.format(hfa, vfa, lsr) 
print filmgate_value
print filmgate_data.get(filmgate_value, 'user') 

评论
  目录