Exemplo n.º 1
0
 def loadGUI(self):
     customRrange = (-1.0, 1.0)
     self.pgs1 = CharGuiSlider(self.main,
                               parent=self.browFrame,
                               text=PLocalizer.EyeBrowProtruding,
                               range=(0.0, 1.0),
                               command=self.updateControlShape)
     self.pgs1.setPos(-0.4, 0, -0.3)
     self.pgs6 = CharGuiSlider(self.main,
                               parent=self.eyeFrame,
                               text=PLocalizer.EyeCorner,
                               command=self.updateControlShape,
                               range=(-0.25, 0.25))
     self.pgs6.setPos(-0.4, 0, -0.3)
     self.pgs7 = CharGuiSlider(self.main,
                               parent=self.eyeFrame,
                               text=PLocalizer.EyeOpeningSize,
                               range=(-1, 1),
                               command=self.updateControlShape)
     self.pgs7.setPos(-0.4, 0, -0.55)
     self.pgs8 = CharGuiSlider(self.main,
                               parent=self.eyeFrame,
                               text=PLocalizer.EyeSpacing,
                               range=(-1, 1),
                               command=self.updateControlShape)
     self.pgs8.setPos(-0.4, 0, -0.8)
     self.pgs = [self.pgs1, self.pgs6, self.pgs7, self.pgs8]
Exemplo n.º 2
0
    def loadGUI(self):
        global sliderRange
        customRange = (-0.5, 0.5)
        if self.main.wantMarketingViewer:
            sliderRange = (-1.0, 1.0)

        self.pgsScale = CharGuiSlider(self.main,
                                      parent=self.headFrame,
                                      text=PLocalizer.BodyHeadScale,
                                      command=self.updateHeadSlider,
                                      range=sliderRange)
        self.pgsScale.setPos(-0.40000000000000002, 0, -0.20000000000000001)
        self.pgsScale['extraArgs'] = [self.pgsScale, 0, 0]
        self.pgs1 = CharGuiSlider(self.main,
                                  parent=self.headFrame,
                                  text=PLocalizer.ShapeHeadWidth,
                                  command=self.updateControlShape,
                                  range=sliderRange)
        self.pgs1.setPos(-0.40000000000000002, 0, -0.45000000000000001)
        self.pgs2 = CharGuiSlider(self.main,
                                  parent=self.headFrame,
                                  text=PLocalizer.ShapeHeadHeight,
                                  command=self.updateControlShape,
                                  range=sliderRange)
        self.pgs2.setPos(-0.40000000000000002, 0, -0.69999999999999996)
        customRange = (0.0, 1.0)
        self.pgs3 = CharGuiSlider(self.main,
                                  parent=self.headFrame,
                                  text=PLocalizer.ShapeHeadRoundness,
                                  command=self.updateControlShape,
                                  range=customRange)
        self.pgs3.setPos(-0.40000000000000002, 0, -0.94999999999999996)
        self.pgs = [self.pgs1, self.pgs2, self.pgs3, self.pgsScale]
Exemplo n.º 3
0
    def loadGUI(self):
        global sliderRange
        customRange = (-1.0, 1.0)
        if self.main.wantMarketingViewer:
            sliderRange = (-1.0, 1.0)

        self.pgs1 = CharGuiSlider(self.main,
                                  parent=self.earFrame,
                                  text=PLocalizer.EarScale,
                                  range=sliderRange,
                                  command=self.updateControlShape)
        self.pgs1.setPos(-0.40000000000000002, 0, -0.29999999999999999)
        self.pgs2 = CharGuiSlider(self.main,
                                  parent=self.earFrame,
                                  text=PLocalizer.EarFlapAngle,
                                  range=sliderRange,
                                  command=self.updateControlShape)
        self.pgs2.setPos(-0.40000000000000002, 0, -0.55000000000000004)
        self.pgs3 = CharGuiSlider(self.main,
                                  parent=self.earFrame,
                                  text=PLocalizer.EarPosition,
                                  range=sliderRange,
                                  command=self.updateControlShape)
        self.pgs3.setPos(-0.40000000000000002, 0, -0.80000000000000004)
        self.pgs = [self.pgs1, self.pgs2, self.pgs3]
Exemplo n.º 4
0
 def loadGUI(self):
     customRange = (-1.0, 1.0)
     self.pgs1 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseBridgeWidth, range = customRange, command = self.updateControlShape)
     self.pgs1.setPos(-0.40000000000000002, 0, -0.29999999999999999)
     self.pgs2 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseNostrilWidth, range = customRange, command = self.updateControlShape)
     self.pgs2.setPos(-0.40000000000000002, 0, -0.55000000000000004)
     self.pgs3 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseLength, range = customRange, command = self.updateControlShape)
     self.pgs3.setPos(-0.40000000000000002, 0, -0.80000000000000004)
     self.pgs4 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseBump, range = customRange, command = self.updateControlShape)
     self.pgs4.setPos(-0.40000000000000002, 0, -1.05)
     self.pgs5 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseNostrilAngle, range = customRange, command = self.updateControlShape)
     self.pgs5.setPos(-0.40000000000000002, 0, -1.3)
     self.pgs6 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseNostrilHeight, range = customRange, command = self.updateControlShape)
     self.pgs6.setPos(-0.40000000000000002, 0, -1.55)
     self.pgs7 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseBridgeBroke, range = customRange, command = self.updateControlShape)
     self.pgs7.setPos(-0.40000000000000002, 0, -1.8)
     self.pgs8 = CharGuiSlider(self.main, parent = self.noseFrame, text = PLocalizer.NoseNostrilBroke, range = customRange, command = self.updateControlShape)
     self.pgs8.setPos(-0.40000000000000002, 0, -2.0499999999999998)
     self.pgs = [
         self.pgs1,
         self.pgs2,
         self.pgs3,
         self.pgs4,
         self.pgs5,
         self.pgs6,
         self.pgs7,
         self.pgs8]
Exemplo n.º 5
0
 def loadHeightGUI(self):
     self.heightSlider = CharGuiSlider(self.main, parent=self.parent, text=PLocalizer.BodyHeightFrameTitle, command=self.updateHeightSlider, range=(-0.2,
                                                                                                                                                    0.2))
     self.heightSlider.setPos(-0.3, 0, -0.7)
     self.heightSlider.setScale(0.7)
     self.heightSlider['extraArgs'] = [self.heightSlider, 0, 0]
     self.pgs = [self.heightSlider]
Exemplo n.º 6
0
 def loadGUI(self):
     customRange = (-1.0, 1.0)
     self.pgs1 = CharGuiSlider(self.main,
                               parent=self.jawFrame,
                               text=PLocalizer.MouthJawWidth,
                               command=self.updateControlShape,
                               range=customRange)
     self.pgs1.setPos(-0.4, 0, -0.3)
     self.pgs2 = CharGuiSlider(self.main,
                               parent=self.jawFrame,
                               text=PLocalizer.MouthJawLength,
                               command=self.updateControlShape,
                               range=customRange)
     self.pgs2.setPos(-0.4, 0, -0.55)
     self.pgs3 = CharGuiSlider(self.main,
                               parent=self.jawFrame,
                               text=PLocalizer.MouthJawChinAngle,
                               command=self.updateControlShape,
                               range=customRange)
     self.pgs3.setPos(-0.4, 0, -0.8)
     self.pgs4 = CharGuiSlider(self.main,
                               parent=self.jawFrame,
                               text=PLocalizer.MouthJawChinSize,
                               command=self.updateControlShape,
                               range=customRange)
     self.pgs4.setPos(-0.4, 0, -1.05)
     self.pgs5 = CharGuiSlider(self.main,
                               parent=self.lipFrame,
                               text=PLocalizer.MouthWidth,
                               command=self.updateControlShape,
                               range=(-1.0, 0.0))
     self.pgs5.setPos(-0.4, 0, -0.3)
     self.pgs6 = CharGuiSlider(self.main,
                               parent=self.lipFrame,
                               text=PLocalizer.MouthThickness,
                               command=self.updateControlShape,
                               range=customRange)
     self.pgs6.setPos(-0.4, 0, -0.55)
     self.pgs8 = CharGuiSlider(self.main,
                               parent=self.cheekFrame,
                               text=PLocalizer.CheekFat,
                               command=self.updateControlShape,
                               range=customRange)
     self.pgs8.setPos(-0.4, 0, -0.3)
     self.pgs = [
         self.pgs1, self.pgs2, self.pgs3, self.pgs4, self.pgs5, self.pgs6,
         self.pgs8
     ]