示例#1
0
 def create(self):
     self.mainLayout = pm.columnLayout(adjustableColumn=True)
     self.infoLayout = pm.columnLayout(adjustableColumn=True)
     pm.setParent(self.mainLayout)
     self.layout = pm.columnLayout(adjustableColumn=True)
     pm.setParent(self.layout)
     self.total = sal.Total_Grades03()
     self.total.create()
     
     pm.button(label = 'Output Grade and Comment', command = pm.Callback(self.check))
     
     pm.setParent(self.layout)
     grading = pm.frameLayout( label= 'Grading', cll = True, cl = True , borderStyle = 'etchedIn', w = 480)
     
     self.lighting = sal.Grading_Section(name = 'Lighting',
             fileName = r"%s/Comments/proj08_lighting.txt" % (self.path),
             field = self.total.queryLight(), toUpdate = self.total)
     self.lighting.create()
     
     
     pm.setParent(grading)
     
     self.mat = sal.Grading_Section(name = 'Materials/Textures',
             fileName = r"%s/Comments/proj08_mat.txt" % (self.path),
             field = self.total.queryMat(), toUpdate = self.total)
     self.mat.create()
     
     
     pm.setParent(grading)
     
     self.compFocal = sal.Grading_Section02(name = 'Comp/Focal Length',
             fileName = r"%s/Comments/proj08_compFocal.txt" % (self.path),
             field = self.total.queryComp(), toUpdate = self.total)
     self.compFocal.create()
     
     pm.setParent(grading)
     
     self.antiAliasing = sal.Grading_Section02(name = 'Antialias/Noise Qual',
             fileName = r"%s/Comments/proj08_antiAliasing.txt" % (self.path),
             field = self.total.queryAnti(), toUpdate = self.total)
     self.antiAliasing.create()
     
     pm.setParent(grading)
     
     self.pro = sal.Grading_Prof02(name = 'Professionalism',
             fileName = r"%s/Comments/proj08_prof.txt" % (self.path),
             field = self.total.queryPro(),
             fileStart = r"%s/Startup/proj08_start.db" % (self.path),
             toUpdate = self.total, infoParent= self.infoLayout)
     self.pro.create()
     
     pm.setParent(self.infoLayout)
     self.info = sal.Images03(self.pro,
             image01 = r"%s/Reference_Images/final01_ref.tga" % (self.path),
             image02 = r"%s/Reference_Images/final02_ref.tga" % (self.path),
             image03 = r"%s/Reference_Images/final03_ref.tga" % (self.path),
             image04 = r"%s/Reference_Images/final04_ref.tga" % (self.path))
     
     return self.layout
示例#2
0
 def create(self):
     self.mainLayout = pm.columnLayout(adjustableColumn=True)
     self.infoLayout = pm.columnLayout(adjustableColumn=True)
     pm.setParent(self.mainLayout)
     self.layout = pm.columnLayout(adjustableColumn=True)
     pm.setParent(self.layout)
     # the total Grades Section
     self.total = sal.Total_Grades02()
     self.total.create()
     
     pm.button(label = 'Output Grade and Comment', command = pm.Callback(self.check))
     
     pm.setParent(self.layout)
     grading = pm.frameLayout( label= 'Grading', cll = True, cl = True , borderStyle = 'etchedIn', w = 480)
     # grading for lighting
     self.lighting = sal.Grading_Section(name = 'Lighting',
             fileName = r"%s/Comments/proj02_lighting.txt" % (self.path),
             field = self.total.queryLight(), toUpdate = self.total)
     self.lighting.create()
     
     pm.setParent(grading)
     # grading for Composition/Focal Lenght
     self.compFocal = sal.Grading_Section02(name = 'Comp/Focal Length',
             fileName = r"%s/Comments/proj02_compFocal.txt" % (self.path),
             field = self.total.queryComp(), toUpdate = self.total)
     self.compFocal.create()
     
     pm.setParent(grading)
     # grading for antialiasing
     self.antiAliasing = sal.Grading_Section02(name = 'Antialias/Noise Qual',
             fileName = r"%s/Comments/proj02_antiAliasing.txt" % (self.path),
             field = self.total.queryAnti(), toUpdate = self.total)
     self.antiAliasing.create()
     
     pm.setParent(grading)
     # grading for Professionalism
     self.pro = sal.Grading_Prof02(name = 'Professionalism',
             fileName = r"%s/Comments/proj02_prof.txt" % (self.path),
             field = self.total.queryPro(),
             fileStart = r"%s/Startup/proj02_start.db" % (self.path),
             toUpdate = self.total, infoParent= self.infoLayout)
     self.pro.create()
     
     # the Images info section
     # *takes the professionalism section as an arguement
     pm.setParent(self.infoLayout)
     self.info = sal.Images02(self.pro, image = r"%s/Reference_Images/proj02_ref.tga" % (self.path))
     
     return self.layout