Skip to content

Commit

Permalink
Migrating from master and slave lingo
Browse files Browse the repository at this point in the history
  • Loading branch information
bopopescu committed Jul 20, 2020
1 parent 359c527 commit d82eb02
Show file tree
Hide file tree
Showing 50 changed files with 1,228 additions and 1,228 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Domemaster Stereo Shader Template File
# Domemain Stereo Shader Template File
# 2015-01-31 09.29 am

import pymel.core as pm
import maya.cmds as cmds
import mtoa.ui.ae.templates as templates
#from mtoa.ui.ae.customShapeAttributes import CameraTemplate as CameraTemplate

def DomemasterStereoCreateCameraMode(attr):
def DomemainStereoCreateCameraMode(attr):
cmds.setUITemplate('attributeEditorPresetsTemplate', pushTemplate=True)
cmds.attrEnumOptionMenuGrp('DomemasterStereoCameraMode', attribute=attr, label="Camera", enumeratedItem=[(0, 'Center'), (1, 'Left'), (2, 'Right')])
cmds.attrEnumOptionMenuGrp('DomemainStereoCameraMode', attribute=attr, label="Camera", enumeratedItem=[(0, 'Center'), (1, 'Left'), (2, 'Right')])
cmds.setUITemplate(popTemplate=True)

def DomemasterStereoSetCameraMode(attr):
cmds.attrEnumOptionMenuGrp('DomemasterStereoCameraMode', edit=True, attribute=attr)
def DomemainStereoSetCameraMode(attr):
cmds.attrEnumOptionMenuGrp('DomemainStereoCameraMode', edit=True, attribute=attr)

#class DomemasterStereoTemplate(CameraTemplate):
class DomemasterStereoTemplate(templates.AttributeTemplate):
#class DomemainStereoTemplate(CameraTemplate):
class DomemainStereoTemplate(templates.AttributeTemplate):
def setup(self):
self.beginLayout("Domemaster Stereo Shader", collapse=False)
self.beginLayout("Domemain Stereo Shader", collapse=False)
# Create the Cameras option menu with the Center, Left, and Right views
self.addCustom("aiCamera", DomemasterStereoCreateCameraMode, DomemasterStereoSetCameraMode)
self.addCustom("aiCamera", DomemainStereoCreateCameraMode, DomemainStereoSetCameraMode)
self.addControl("aiFovAngle", label="Field of View")
self.addSeparator()
self.addControl("aiZeroParallaxSphere", label="Zero Parallax Sphere")
Expand Down Expand Up @@ -61,5 +61,5 @@ def setup(self):

self.endLayout()

templates.registerTranslatorUI(DomemasterStereoTemplate, "camera", "DomemasterStereo")
#templates.registerTranslatorUI(DomemasterStereoTemplate, "stereoRigCamera", "DomemasterStereo")
templates.registerTranslatorUI(DomemainStereoTemplate, "camera", "DomemainStereo")
#templates.registerTranslatorUI(DomemainStereoTemplate, "stereoRigCamera", "DomemainStereo")
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Domemaster WxH Shader Template File
# Domemain WxH Shader Template File
# 2015-01-31 09.29 am

import pymel.core as pm
Expand All @@ -7,10 +7,10 @@
#from mtoa.ui.ae.customShapeAttributes import CameraTemplate as CameraTemplate


#class DomemasterWxHTemplate(CameraTemplate):
class DomemasterWxHTemplate(templates.AttributeTemplate):
#class DomemainWxHTemplate(CameraTemplate):
class DomemainWxHTemplate(templates.AttributeTemplate):
def setup(self):
self.beginLayout("Domemaster WxH Shader", collapse=False)
self.beginLayout("Domemain WxH Shader", collapse=False)
# Create the Cameras option menu with the Center, Left, and Right views

self.addControl("aiDiameter", label="Diameter")
Expand Down Expand Up @@ -43,4 +43,4 @@ def setup(self):

self.endLayout()

templates.registerTranslatorUI(DomemasterWxHTemplate, "camera", "DomemasterWxH")
templates.registerTranslatorUI(DomemainWxHTemplate, "camera", "DomemainWxH")
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
Python Init command for Domemaster3D Fulldome Stereo
Python Init command for Domemain3D Fulldome Stereo
Created by Andrew Hazelden andrew@andrewhazelden.com
"""
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
Python Init command for Domemaster3D Fulldome Stereo
Python Init command for Domemain3D Fulldome Stereo
Created by Andrew Hazelden andrew@andrewhazelden.com
"""
Loading

0 comments on commit d82eb02

Please sign in to comment.