diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterStereoTemplate.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterStereoTemplate.py index 9317d80..c4e6356 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterStereoTemplate.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterStereoTemplate.py @@ -1,4 +1,4 @@ -# Domemaster Stereo Shader Template File +# Domemain Stereo Shader Template File # 2015-01-31 09.29 am import pymel.core as pm @@ -6,20 +6,20 @@ 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") @@ -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") diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterWxHTemplate.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterWxHTemplate.py index 26fb11a..36628c2 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterWxHTemplate.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/DomemasterWxHTemplate.py @@ -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 @@ -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") @@ -43,4 +43,4 @@ def setup(self): self.endLayout() -templates.registerTranslatorUI(DomemasterWxHTemplate, "camera", "DomemasterWxH") +templates.registerTranslatorUI(DomemainWxHTemplate, "camera", "DomemainWxH") diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/__init__.py index 532bee6..c5e324f 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/ae/__init__.py @@ -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 """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/__init__.py index 532bee6..c5e324f 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/__init__.py @@ -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 """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeCamera.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeCamera.py index 1949af3..b3fcf3d 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeCamera.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeCamera.py @@ -1,5 +1,5 @@ """ -Arnold Domemaster3D Camera Setup Script V2.1.2 +Arnold Domemain3D Camera Setup Script V2.1.2 2016-09-17 05.27 PM Created by Andrew Hazelden andrew@andrewhazelden.com @@ -22,7 +22,7 @@ Updated Arnold camera shape names -Updated the DomemasterWxH function name +Updated the DomemainWxH function name Version 1.7.4 @@ -57,7 +57,7 @@ ------------------------------------------------------------------------------ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig A python function to create a fulldome stereo rig in Maya. Run using the command: @@ -66,29 +66,29 @@ arnoldDomeCamera.createArnoldFulldomeStereoRig() ------------------------------------------------------------------------------ -Domemaster3D Fulldome FOV Camera +Domemain3D Fulldome FOV Camera -A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemasterStereo based camera. +A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemainStereo based camera. Run using the command: import arnoldDomeCamera as arnoldDomeCamera reload(arnoldDomeCamera) -arnoldDomeCamera.createArnoldDomemasterFOV_Camera() +arnoldDomeCamera.createArnoldDomemainFOV_Camera() ------------------------------------------------------------------------------ -Domemaster3D Fulldome WxH Camera +Domemain3D Fulldome WxH Camera A python function to create a fulldome 2D camera in Maya. Run using the command: import arnoldDomeCamera as arnoldDomeCamera reload(arnoldDomeCamera) -arnoldDomeCamera.createArnoldDomemasterWxH_Camera() +arnoldDomeCamera.createArnoldDomemainWxH_Camera() ------------------------------------------------------------------------------ -Domemaster3D createArnoldLatLong_Camera +Domemain3D createArnoldLatLong_Camera A python function to create a 2D LatLong / Equirectangular / Spherical camera. This option uses the LatLong Stereo shader applied in a 2D center camera viewing mode. Run using the command: @@ -98,7 +98,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createArnoldLatLongStereoRig +Domemain3D createArnoldLatLongStereoRig A python function to create a stereoscopic latitude longitude lens shader and attach it to a camera. Run using the command: @@ -108,7 +108,7 @@ ------------------------------------------------------------------------------ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background A python function to create a hemispherical yellow test grid in Maya. Run using the command: @@ -118,7 +118,7 @@ ------------------------------------------------------------------------------ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. Run using the command: @@ -127,7 +127,7 @@ arnoldDomeCamera.createLatLongGrid() ------------------------------------------------------------------------------ -Domemaster3D createTestShapes +Domemain3D createTestShapes A python function to create a test sphere and cube in Maya. Run using the command: @@ -137,7 +137,7 @@ ------------------------------------------------------------------------------ -Domemaster3D getMayaVersionDome +Domemain3D getMayaVersionDome A python function to check what Maya version is active. import arnoldDomeCamera @@ -146,62 +146,62 @@ ------------------------------------------------------------------------------ -Show the Domemaster Wiki +Show the Domemain Wiki -------------------------------- Loads the wiki page in your default web browser Run using the command: -print("Open the Domemaster Wiki Page") +print("Open the Domemain Wiki Page") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterWiki() +arnoldDomeCamera.openDomemainWiki() -print("Open the Domemaster NING Group") +print("Open the Domemain NING Group") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterNing() +arnoldDomeCamera.openDomemainNing() -print("Open the Domemaster Downloads Page") +print("Open the Domemain Downloads Page") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterDownloads() +arnoldDomeCamera.openDomemainDownloads() -print("Open the Domemaster Bug Reporter") +print("Open the Domemain Bug Reporter") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterBugReport() +arnoldDomeCamera.openDomemainBugReport() """ -def openDomemasterWiki(): +def openDomemainWiki(): import webbrowser - # Domemaster Stereo Shader - Wiki Page + # Domemain Stereo Shader - Wiki Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/wiki' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openArnoldDomemasterNing(): +def openArnoldDomemainNing(): import webbrowser - # Domemaster NING Group + # Domemain NING Group url = 'http://fulldome.ning.com/forum/topics/stereoscopic-domemaster-images' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openArnoldDomemasterDownloads(): +def openArnoldDomemainDownloads(): import webbrowser - # Domemaster Stereo Shader - Download Page + # Domemain Stereo Shader - Download Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/releases' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openArnoldDomemasterBugReport(): +def openArnoldDomemainBugReport(): import webbrowser - # Domemaster Stereo Shader - Bug Report Page + # Domemain Stereo Shader - Bug Report Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/issues' # Open URL in new window, raising the window if possible. @@ -219,7 +219,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -230,32 +230,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR')+ "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files(x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files(x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system()+ " System]" + print "[Domemain3D is running on a " + platform.system()+ " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -263,7 +263,7 @@ def getSourceImagesPath(imageFileName): """ -Domemaster3D AutoSetup +Domemain3D AutoSetup ---------------------- A python function to create a fulldome stereo rig and test grid in Maya. @@ -277,7 +277,7 @@ def Autosetup(): """ -Domemaster3D setDomeSamplingQuality +Domemain3D setDomeSamplingQuality ---------------------- A python function to setup the AA sampling quality. @@ -292,7 +292,7 @@ def setDomeSamplingQuality(): """ -Domemaster3D SetRenderRes +Domemain3D SetRenderRes ---------------------- A python function to setup the basic 2K x 2K square render settings. @@ -311,7 +311,7 @@ def setRenderRes(): fulldomeRenderHeight = 2048 #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', fulldomeRenderWidth) cmds.setAttr('defaultResolution.height', fulldomeRenderHeight) @@ -321,7 +321,7 @@ def setRenderRes(): """ -Domemaster3D changeRenderRes +Domemain3D changeRenderRes ---------------------- A python function to change the basic resolution square render settings. @@ -340,7 +340,7 @@ def changeRenderRes(renderSizePx): fulldomeRenderHeight = renderSizePx #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', fulldomeRenderWidth) cmds.setAttr('defaultResolution.height', fulldomeRenderHeight) @@ -351,7 +351,7 @@ def changeRenderRes(renderSizePx): """ -Domemaster3D changeRenderResWH +Domemain3D changeRenderResWH ---------------------- A python function to change the basic resolution render settings. @@ -371,7 +371,7 @@ def changeRenderResWH(renderSizeW, renderSizeH): domeDeviceAspectRatio=domeRenderWidth/domeRenderHeight #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', domeRenderWidth) cmds.setAttr('defaultResolution.height', domeRenderHeight) @@ -383,7 +383,7 @@ def changeRenderResWH(renderSizeW, renderSizeH): """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -454,18 +454,18 @@ def createArnoldFulldomeStereoRig(): #import maya.cmds as cmds # PreRender MEL: - #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') # PostRender MEL: - #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') # Enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -535,22 +535,22 @@ def createArnoldLatLongStereoRig(): #import maya.cmds as cmds # PreRender MEL: - #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') # PostRender MEL: - #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') # Enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D createDomemasterFOV_Camera +Domemain3D createDomemainFOV_Camera ---------------------- -A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemasterStereo based camera. +A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemainStereo based camera. """ -def createArnoldDomemasterFOV_Camera(): +def createArnoldDomemainFOV_Camera(): import maya.cmds as cmds #import maya.mel as mel @@ -562,18 +562,18 @@ def createArnoldDomemasterFOV_Camera(): # --------------------------------------------------------------------- # Arnold camera type - cameraType = 'DomemasterStereo' + cameraType = 'DomemainStereo' # --------------------------------------------------------------------- # Create the stereo rig # --------------------------------------------------------------------- # Create a camera and get the shape name. - cameraName = cmds.camera(name='ArnoldDomemasterFOV_Camera') + cameraName = cmds.camera(name='ArnoldDomemainFOV_Camera') cameraShape = cameraName[1] # --------------------------------------------------------------------- - # Assign the Arnold DomemasterStereo camera type + # Assign the Arnold DomemainStereo camera type # --------------------------------------------------------------------- cmds.setAttr(cameraShape+'.ai_translator', cameraType, type='string') @@ -598,7 +598,7 @@ def createArnoldDomemasterFOV_Camera(): cmds.setAttr(cameraName[0]+'.rotateZ', 0) # Changes the render settings to set the stereo camera to be a renderable camera - cmds.setAttr(cameraShape+'.renderable', 1)# ArnoldDomemasterFOV_Camera + cmds.setAttr(cameraShape+'.renderable', 1)# ArnoldDomemainFOV_Camera cmds.setAttr('topShape.renderable', 0) cmds.setAttr('sideShape.renderable', 0) cmds.setAttr('frontShape.renderable', 0) @@ -618,11 +618,11 @@ def createArnoldDomemasterFOV_Camera(): """ -Domemaster3D createDomemasterWxH_Camera +Domemain3D createDomemainWxH_Camera ---------------------- -A python function to set up an Arnold DomemasterWxH based camera. +A python function to set up an Arnold DomemainWxH based camera. """ -def createArnoldDomemasterWxH_Camera(): +def createArnoldDomemainWxH_Camera(): import maya.cmds as cmds #import maya.mel as mel @@ -634,18 +634,18 @@ def createArnoldDomemasterWxH_Camera(): # --------------------------------------------------------------------- # Arnold camera type - cameraType = 'DomemasterWxH' + cameraType = 'DomemainWxH' # --------------------------------------------------------------------- # Create the stereo rig # --------------------------------------------------------------------- # Create a camera and get the shape name. - cameraName = cmds.camera(name='ArnoldDomemasterWxH_Camera') + cameraName = cmds.camera(name='ArnoldDomemainWxH_Camera') cameraShape = cameraName[1] # --------------------------------------------------------------------- - # Assign the Arnold domemasterWxH camera type + # Assign the Arnold domemainWxH camera type # --------------------------------------------------------------------- cmds.setAttr(cameraShape+'.ai_translator', cameraType, type='string') @@ -683,7 +683,7 @@ def createArnoldDomemasterWxH_Camera(): """ -Domemaster3D createArnoldLatLong_Camera +Domemain3D createArnoldLatLong_Camera ---------------------- A python function to create a 2D LatLong / Equirectangular / Spherical camera. This option uses the LatLong Stereo shader applied in a 2D center camera viewing mode. """ @@ -758,7 +758,7 @@ def createArnoldLatLong_Camera(): """ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. @@ -782,7 +782,7 @@ def createLatLongGrid(): """ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya. @@ -818,27 +818,27 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGrid'): - print('Removing existing Domemaster3D object: domeGrid') + print('Removing existing Domemain3D object: domeGrid') cmds.select('domeGrid', replace=True) cmds.delete() if cmds.objExists('MeshGroup'): - print('Removing existing Domemaster3D object: MeshGroup') + print('Removing existing Domemain3D object: MeshGroup') cmds.select('MeshGroup', replace=True) cmds.delete() if cmds.objExists(domeGridSurface): - print('Removing existing Domemaster3D object: ' + domeGridSurface) + print('Removing existing Domemain3D object: ' + domeGridSurface) cmds.select(domeGridSurface, replace=True) cmds.delete() if cmds.objExists('domeGridToon'): - print('Removing existing Domemaster3D object: domeGridToon') + print('Removing existing Domemain3D object: domeGridToon') cmds.select('domeGridToon', replace=True) cmds.delete() if cmds.objExists('domeGrid_displayModeExpr'): - print('Removing existing Domemaster3D object: domeGrid_displayModeExpr') + print('Removing existing Domemain3D object: domeGrid_displayModeExpr') cmds.select('domeGrid_displayModeExpr', replace=True) cmds.delete() @@ -847,22 +847,22 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGridLinesSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShader') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShader') cmds.select('domeGridLinesSurfaceShader', replace=True) cmds.delete() if cmds.objExists('domeGridLinesSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShaderSG') cmds.select('domeGridLinesSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridSurfaceShaderSG') cmds.select('domeGridSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridSurfaceShader') + print('Removing existing Domemain3D object: domeGridSurfaceShader') cmds.select('domeGridSurfaceShader', replace=True) cmds.delete() @@ -1326,7 +1326,7 @@ def createDomeGrid(): """ -Domemaster3D createTestShapes +Domemain3D createTestShapes ---------------------- A python function to create a test sphere and cube in Maya. """ @@ -1335,17 +1335,17 @@ def createTestShapes(): import maya.cmds as cmds if cmds.objExists('domeTestLight'): - print('Removing existing Domemaster3D object: domeTestLight') + print('Removing existing Domemain3D object: domeTestLight') cmds.select('domeTestLight', replace=True) cmds.delete() if cmds.objExists('polyTestSphere'): - print('Removing existing Domemaster3D object: polyTestSphere') + print('Removing existing Domemain3D object: polyTestSphere') cmds.select('polyTestSphere', replace=True) cmds.delete() if cmds.objExists('polyTestCube'): - print('Removing existing Domemaster3D object: polyTestCube') + print('Removing existing Domemain3D object: polyTestCube') cmds.select('polyTestCube', replace=True) cmds.delete() diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeStereoRig.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeStereoRig.py index 0926d0c..64bd906 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeStereoRig.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldDomeStereoRig.py @@ -1,5 +1,5 @@ """ - Arnold Domemaster3D Fulldome Stereo Rig V2.1.2 + Arnold Domemain3D Fulldome Stereo Rig V2.1.2 2016-09-17 by Andrew Hazelden andrew@andrewhazelden.com ----------------------------------------------------------------------- @@ -70,7 +70,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - #Setup the base folder path for the Domemaster3D control maps + #Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -81,32 +81,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -117,7 +117,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Variables @@ -126,7 +126,7 @@ def createLensShaders(centerCam, leftCam, rightCam): # tiltMapFileTexture = getSourceImagesPath("head_tilt_map.png") # Arnold camera type - cameraType = 'DomemasterStereo' + cameraType = 'DomemainStereo' # Check if Arnold is loaded before linking the attributes if (cmds.pluginInfo("mtoa",q=True,loaded=True)): @@ -162,7 +162,7 @@ def createLensShaders(centerCam, leftCam, rightCam): cmds.connectAttr(leftCam+'.aiFlipRayY', rightCam+'.aiFlipRayY', force=True) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -185,25 +185,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr(slave + '.renderable', 0) + cmds.setAttr(subordinate + '.renderable', 0) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -218,24 +218,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr(slave + '.' + attr, keyable=False) + cmds.setAttr(subordinate + '.' + attr, keyable=False) - return slave + return subordinate def __createFrustumNode(mainCam, parent, baseName): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -311,8 +311,8 @@ def createRig(unusedBasename='ArnoldDomeStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # @@ -338,7 +338,7 @@ def createRig(unusedBasename='ArnoldDomeStereoCamera'): #--------------------------------------------------------------------------- - # Custom Domemaster3D Setup code + # Custom Domemain3D Setup code #--------------------------------------------------------------------------- # 4 mm focal length = 160 degree FOV #cmds.setAttr(centerCam + '.focalLength', 4 ) diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldLatLongStereoRig.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldLatLongStereoRig.py index fa24a3b..7ca768f 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldLatLongStereoRig.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/arnoldLatLongStereoRig.py @@ -71,7 +71,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - # Setup the base folder path for the Domemaster3D control maps + # Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -82,32 +82,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -118,7 +118,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Variables @@ -162,7 +162,7 @@ def createLensShaders(centerCam, leftCam, rightCam): cmds.connectAttr( leftCam+'.aiFlipRayY', rightCam+'.aiFlipRayY', force=True ) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -186,25 +186,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr( slave + '.renderable', 0 ) + cmds.setAttr( subordinate + '.renderable', 0 ) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -219,24 +219,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False ) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False ) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr( slave + '.' + attr, keyable=False ) + cmds.setAttr( subordinate + '.' + attr, keyable=False ) - return slave + return subordinate def __createFrustumNode( mainCam, parent, baseName ): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -312,8 +312,8 @@ def createRig(unusedBasename='ArnoldLatLongStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/userSetup.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/userSetup.py index f94a375..b189a47 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/userSetup.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/mtoa/scripts/userSetup.py @@ -1,5 +1,5 @@ """ -Arnold Domemaster3D Startup Code Version 2.1 +Arnold Domemain3D Startup Code Version 2.1 2016-07-28 12.51 PM by Andrew Hazelden """ @@ -100,12 +100,12 @@ def addNewArnoldLatLongRig(): else: print ("An ArnoldLatLongStereoCamera rig already exists in the stereoRigManager.") -# Load the Arnold Domemaster3D menu system in the rendering menu set +# Load the Arnold Domemain3D menu system in the rendering menu set def addNewArnoldDomeMenu(): import maya.mel as mel - print("Loading the ArnoldDomemaster3D menu items...") + print("Loading the ArnoldDomemain3D menu items...") mel.eval('source "arnoldDomeMenu.mel";') - mel.eval('createArnoldDomemaster3DMenu();') + mel.eval('createArnoldDomemain3DMenu();') # Load the new stereo Arnold stereo rigs @@ -118,14 +118,14 @@ def deferredLoadArnoldRig(): cmds.evalDeferred("addNewArnoldDomeRig()") #---------------------------------------------------------------------------- -# Main Domemaster3D Start up function +# Main Domemain3D Start up function #---------------------------------------------------------------------------- # Stop Maya from running the python code twice by looking if it is __main__ if (__name__ == '__main__'): import maya.cmds as cmds - # Add the Domemaster3D Stereo & LatLong_Stereo camera Rig + # Add the Domemain3D Stereo & LatLong_Stereo camera Rig #import arnoldDomeStereoRig #import arnoldLatLongStereoRig @@ -139,17 +139,17 @@ def deferredLoadArnoldRig(): isMayaInBatchMode = maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kBatch # isMayaInBatchMode = 1 means Batch Mode, 0 means GUI mode if(isMayaInBatchMode == False): - print("The Arnold Domemaster3D Shader is running in GUI mode.") + print("The Arnold Domemain3D Shader is running in GUI mode.") # Make sure the stereo plug-in is loaded cmds.evalDeferred("cmds.loadPlugin('stereoCamera', quiet=True)") # Load the new stereo Arnold stereo rigs cmds.evalDeferred("deferredLoadArnoldRig()") - # Load the Domemaster3D menu system in the rendering menu set + # Load the Domemain3D menu system in the rendering menu set cmds.evalDeferred("addNewArnoldDomeMenu()") else: - print("The Arnold Domemaster3D Shader is running in batch mode.") + print("The Arnold Domemain3D Shader is running in batch mode.") @@ -160,5 +160,5 @@ def deferredLoadArnoldRig(): # pass # --------------------------------------------------------------------- -# End Domemaster3D Startup Code +# End Domemain3D Startup Code # --------------------------------------------------------------------- diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterStereo/DomemasterStereoTemplate.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterStereo/DomemasterStereoTemplate.py index fe87ad7..cd6a64c 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterStereo/DomemasterStereoTemplate.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterStereo/DomemasterStereoTemplate.py @@ -1,4 +1,4 @@ -# Domemaster Stereo Shader Template File +# Domemain Stereo Shader Template File # 2014-10-31 6:38 pm import pymel.core as pm @@ -6,20 +6,20 @@ 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") @@ -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") diff --git a/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterWxH/DomemasterWxHTemplate.py b/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterWxH/DomemasterWxHTemplate.py index b9b8c66..398fa9f 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterWxH/DomemasterWxHTemplate.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/arnold/source/DomemasterWxH/DomemasterWxHTemplate.py @@ -1,4 +1,4 @@ -# Domemaster WxH Shader Template File +# Domemain WxH Shader Template File # 2014-11-06 10.44 am import pymel.core as pm @@ -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") @@ -43,4 +43,4 @@ def setup(self): self.endLayout() -templates.registerTranslatorUI(DomemasterWxHTemplate, "camera", "DomemasterWxH") +templates.registerTranslatorUI(DomemainWxHTemplate, "camera", "DomemainWxH") diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2010/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2010/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2010/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2010/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2011/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2011/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2011/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2011/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2012/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2012/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2012/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2012/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2013.5/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2013.5/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2013.5/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2013.5/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2013/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2013/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2013/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2013/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2014/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2014/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2014/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2014/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2015/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2015/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2015/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2015/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2016.5/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2016.5/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2016.5/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2016.5/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2016/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2016/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2016/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2016/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2017/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2017/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2017/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2017/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/2018/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/2018/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/2018/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/2018/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/LatLongStereoRig.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/LatLongStereoRig.py index 2d099cb..3a3fb6b 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/LatLongStereoRig.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/LatLongStereoRig.py @@ -91,7 +91,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -102,32 +102,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -137,7 +137,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print"Center: " + centerCam + "Left: " + leftCam + "Right: " + rightCam # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Variables @@ -254,7 +254,7 @@ def createLensShaders(centerCam, leftCam, rightCam): print("Parallax_Distance: " + str(defaultDomeRadius)) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- mayaVersion = getMayaVersionDome() @@ -380,7 +380,7 @@ def createLensShaders(centerCam, leftCam, rightCam): cmds.connectAttr(centerCamLens+'.Parallax_Distance', centerCam+'.zeroParallax', force=True) cmds.connectAttr(centerCamLens+'.Cameras_Separation', centerCam+'.interaxialSeparation', force=True) - # Turn on Stereo 3D support for the Domemaster3D Maya camera rig + # Turn on Stereo 3D support for the Domemain3D Maya camera rig cmds.setAttr(centerCam+'.stereo', 1) """ @@ -390,25 +390,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr(slave + '.renderable', 0) + cmds.setAttr(subordinate + '.renderable', 0) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in ['horizontalFilmAperture', 'verticalFilmAperture', @@ -423,24 +423,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane']: - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False) # Hide some more attributes on the transform # for attr in ['scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest']: - cmds.setAttr(slave + '.' + attr, keyable=False) + cmds.setAttr(subordinate + '.' + attr, keyable=False) - return slave + return subordinate def __createFrustumNode(mainCam, parent, baseName): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -517,8 +517,8 @@ def createRig(unusedBasename='LatLongStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # @@ -557,7 +557,7 @@ def createRig(unusedBasename='LatLongStereoCamera'): domeOverrideFOV = int(os.getenv('DOMEMASTER3D_MAYA_REALTIME_FOV', defaultRealtimeFOV)) if((domeOverrideFOV >= 3) and (domeOverrideFOV <= 3500)): - print ("Using a Domemaster3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") + print ("Using a Domemain3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") else: print ("The \"DOMEMASTER3D_MAYA_REALTIME_FOV\" environment variable overridden FOV Value of " + str(domeOverrideFOV) + " is outside of the acceptable range of 3 mm to 3500mm that Maya accepts as a valid camera field of view value. The default value of " + str(defaultRealtimeFOV) + " will be used instead.\n") domeOverrideFOV = defaultRealtimeFOV diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/__init__.py index cac7932..8e709be 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/__init__.py @@ -1,5 +1,5 @@ """ Python Init command for the -Domemaster3D Fulldome Stereo +Domemain3D Fulldome Stereo Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCamera.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCamera.py index fbf0891..2ba66d1 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCamera.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCamera.py @@ -1,5 +1,5 @@ """ -Domemaster3D Camera Setup Script V2.4 +Domemain3D Camera Setup Script V2.4 2018-08-21 Created by Andrew Hazelden andrew@andrewhazelden.com @@ -10,7 +10,7 @@ Version 2.3 - 2017-05-17 ------------------------- -Added support for preserving existing pre/post render MEL script entries when Domemaster3D adds a new camera rig to the scene, or you click the "Add" / "Rem" shelf buttons. This revision is based upon a submission from Campbell Strong. +Added support for preserving existing pre/post render MEL script entries when Domemain3D adds a new camera rig to the scene, or you click the "Add" / "Rem" shelf buttons. This revision is based upon a submission from Campbell Strong. Version 2.2 - 2016-12-23 ------------------------- @@ -52,7 +52,7 @@ ------------ 2015-08-21 -Added the `addPrePostRenderScript()` and `removePrePostRenderScript()` functions to the domeCamera.py script to make it easier to set up the Domemaster3D pre render and post render mel scripts in the Maya render settings window. +Added the `addPrePostRenderScript()` and `removePrePostRenderScript()` functions to the domeCamera.py script to make it easier to set up the Domemain3D pre render and post render mel scripts in the Maya render settings window. Version 1.7.4 ------------ @@ -76,7 +76,7 @@ --------------- July 12, 2014 -Added a new "FulldomeIBL" tool to the Maya shelf. This allows you to use a file texture with a circular domemaster 180 degree FOV image as the image based lighting environment map in the scene, and as the source of final gather IBL, and Maya 2015 "emit light" based lighting. The fulldome texture is applied using a mentalrayTexture with an image sequence expression. The FulldomeIBL tool supports domemaster frame masking. +Added a new "FulldomeIBL" tool to the Maya shelf. This allows you to use a file texture with a circular domemain 180 degree FOV image as the image based lighting environment map in the scene, and as the source of final gather IBL, and Maya 2015 "emit light" based lighting. The fulldome texture is applied using a mentalrayTexture with an image sequence expression. The FulldomeIBL tool supports domemain frame masking. The new "HemirectIBL" tool (hemirect = half height equirectangular 360x90 degree image) tool creates a custom mentalrayTexture based shading network that lets you feed in an image with the top half of an equirectangular panorama into the mental ray IBL's spherical texture input. Note: This mode requires your batch rendering software to distribute the rendering job using 1 frame per packet/render slice so a new image is loaded for each from of the sequence. The HemirectIBL tool works with Maya 2015's newly improved "emit light" IBL lighting system. @@ -103,7 +103,7 @@ Dec 7, 2013 Updated Linux install path to: -/opt/Domemaster3D +/opt/Domemain3D Version 1.4 B8 ----------------- @@ -150,7 +150,7 @@ Released June 27, 2013 Updated the the Automagic tool's dome grid color to a brighter yellow value. This makes the grid more visible in a Physical Sun & Sky scene. -Added a new HELP icon to the Maya Shelf toolset. This shelf item loads the domemaster stereo shader wiki page. +Added a new HELP icon to the Maya Shelf toolset. This shelf item loads the domemain stereo shader wiki page. Version 1.3.3 @@ -167,7 +167,7 @@ Released April 16, 2013 Edited the default camera connections for the lens shaders to work with the modified versions of the maya createMentalRayIndirectLightingTab.mel & AEmia_physicalskyTemplate.mel scripts. This fixes the problem of the Physical Sky & Sun system overwriting the first .miLensShader input on cameras in the scene. -The location of the default domemaster control map textures is now in the Program Files\Domemaster3D\sourceimages folder on Windows or the /Applications/Domemaster3D/sourceimages folder on macOS. The Domemaster3D shelf tools have been updated to link to the new sourceimages folder. +The location of the default domemain control map textures is now in the Program Files\Domemain3D\sourceimages folder on Windows or the /Applications/Domemain3D/sourceimages folder on macOS. The Domemain3D shelf tools have been updated to link to the new sourceimages folder. Version 1.3 ------------ @@ -184,12 +184,12 @@ Version 1.0 ------------ Released Aug 6, 2012 -First release of the Domemaster3D auto-setup python scripts. +First release of the Domemain3D auto-setup python scripts. ------------------------------------------------------------------------------ -Domemaster3D AutoSetup +Domemain3D AutoSetup A python function to create a fulldome stereo rig and test grid in Maya. Run using the command: @@ -199,7 +199,7 @@ ------------------------------------------------------------------------------ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig A python function to create a fulldome stereo rig in Maya. Run using the command: @@ -209,7 +209,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createLatLong_Camera +Domemain3D createLatLong_Camera A python function to create a latitude longitude lens shader and attach it to a camera. Run using the command: @@ -218,7 +218,7 @@ domeCamera.createLatLong_Camera() ------------------------------------------------------------------------------ -Domemaster3D createLatLongStereoRig +Domemain3D createLatLongStereoRig A python function to create a stereoscopic latitude longitude lens shader and attach it to a camera. Run using the command: @@ -227,7 +227,7 @@ domeCamera.createLatLongStereoRig() ------------------------------------------------------------------------------ -Domemaster3D createLatLongStereoAimRig +Domemain3D createLatLongStereoAimRig -------------------------------- A python function to create a LatLong stereo rig in Maya with an aim constraint applied. Reminder: Maya has issues with using cameras that have aim constraints when you apply them to animation layers. @@ -238,7 +238,7 @@ domeCamera.createLatLongStereoAimRig() ------------------------------------------------------------------------------ -Domemaster3D createLatLongStereoZenithRig +Domemain3D createLatLongStereoZenithRig A python function to create a stereoscopic latitude longitude lens shader and attach it to a camera. The lens shaders have the Zenith Mode checkboxes enabled by default. @@ -250,7 +250,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createDomeAFL_WxH_Camera +Domemain3D createDomeAFL_WxH_Camera A python function to create a domeAFL_WxH lens shader and attach it to a camera. Run using the command: @@ -260,7 +260,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createDomeAFL_FOV_Camera +Domemain3D createDomeAFL_FOV_Camera A python function to create a domeAFL_FOV lens shader and attach it to a camera. Run using the command: @@ -270,7 +270,7 @@ ------------------------------------------------------------------------------ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background A python function to create a hemispherical yellow test grid in Maya. Run using the command: @@ -280,7 +280,7 @@ ------------------------------------------------------------------------------ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background A python function to create a spherical yellow test grid in Maya. Run using the command: @@ -290,7 +290,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createTestShapes +Domemain3D createTestShapes A python function to create a test sphere and cube in Maya. Run using the command: @@ -300,7 +300,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createRobLookup +Domemain3D createRobLookup A python function to create a mental ray screen space texture and connect it to a robLookupBackground lens shader. @@ -310,7 +310,7 @@ domeCamera.createRobLookup() ------------------------------------------------------------------------------ -Domemaster3D createDomeRampTexture +Domemain3D createDomeRampTexture A python function to create a mental ray screen space ramp texture and connect it to a robLookupBackground lens shader. @@ -320,7 +320,7 @@ domeCamera.createDomeRampTexture() ------------------------------------------------------------------------------ -Domemaster3D setRenderRes +Domemain3D setRenderRes A python function to setup the basic mental ray 2K x 2K square render settings. Run using the command: @@ -329,8 +329,8 @@ domeCamera.setRenderRes() ------------------------------------------------------------------------------ -Domemaster3D Add Pre/Post Render Mel -A python function to add the Domemaster3D shader Pre/Post render mel scripts to the Maya Render Settings window. +Domemain3D Add Pre/Post Render Mel +A python function to add the Domemain3D shader Pre/Post render mel scripts to the Maya Render Settings window. Run using the command: import domeCamera as domeCamera @@ -338,8 +338,8 @@ domeCamera.addPrePostRenderScript() ------------------------------------------------------------------------------ -Domemaster3D Remove Pre/Post Render Mel -A python function to remove the Domemaster3D shader Pre/Post render mel scripts from the Maya Render Settings window. +Domemain3D Remove Pre/Post Render Mel +A python function to remove the Domemain3D shader Pre/Post render mel scripts from the Maya Render Settings window. Run using the command: import domeCamera as domeCamera @@ -347,7 +347,7 @@ domeCamera.removePrePostRenderScript() ------------------------------------------------------------------------------ -Domemaster3D setDomeSamplingQuality +Domemain3D setDomeSamplingQuality A python function to setup the mental ray AA sampling quality. Run using the command: @@ -357,7 +357,7 @@ ------------------------------------------------------------------------------ -Domemaster3D changeRenderRes +Domemain3D changeRenderRes A python function to change the basic mental ray resolution square render settings. Run using the command: @@ -367,7 +367,7 @@ ------------------------------------------------------------------------------ -Domemaster3D Force Mental Ray to load +Domemain3D Force Mental Ray to load A python function to make sure mental ray is active and the MR shading nodes are read to be used. Run using the command: @@ -377,7 +377,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createFulldomeIBL +Domemain3D createFulldomeIBL A python function to create a mental ray texture and connect it to an mental ray mentalrayIbl node. The this function will offset the texture coordinates so a 180 degree fisheye image would sit in the center of the mental ray IBL system's 360 degree angular fisheye input. @@ -390,7 +390,7 @@ ------------------------------------------------------------------------------ -Domemaster3D getMayaVersionDome +Domemain3D getMayaVersionDome A python function to check what Maya version is active. @@ -412,63 +412,63 @@ """ -Show the Domemaster Wiki +Show the Domemain Wiki -------------------------------- Loads the wiki page in your default web browser Run using the command: -print("Open the Domemaster Wiki Page") +print("Open the Domemain Wiki Page") import domeCamera as domeCamera -domeCamera.openDomemasterWiki() +domeCamera.openDomemainWiki() -print("Open the Domemaster NING Group") +print("Open the Domemain NING Group") import domeCamera as domeCamera -domeCamera.openDomemasterNing() +domeCamera.openDomemainNing() -print("Open the Domemaster Downloads Page") +print("Open the Domemain Downloads Page") import domeCamera as domeCamera -domeCamera.openDomemasterDownloads() +domeCamera.openDomemainDownloads() -print("Open the Domemaster Bug Reporter") +print("Open the Domemain Bug Reporter") import domeCamera as domeCamera -domeCamera.openDomemasterBugReport() +domeCamera.openDomemainBugReport() """ -def openDomemasterWiki(): +def openDomemainWiki(): import webbrowser - # Domemaster Stereo Shader - Wiki Page + # Domemain Stereo Shader - Wiki Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/wiki' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openDomemasterNing(): +def openDomemainNing(): import webbrowser - # Domemaster NING Group + # Domemain NING Group url = 'http://fulldome.ning.com/forum/topics/stereoscopic-domemaster-images' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openDomemasterDownloads(): +def openDomemainDownloads(): import webbrowser - # Domemaster Stereo Shader - Download Page + # Domemain Stereo Shader - Download Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/releases' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openDomemasterBugReport(): +def openDomemainBugReport(): import webbrowser - # Domemaster Stereo Shader - Bug Report Page + # Domemain Stereo Shader - Bug Report Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/issues' # Open URL in new window, raising the window if possible. @@ -486,7 +486,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -497,32 +497,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -530,7 +530,7 @@ def getSourceImagesPath(imageFileName): """ -Domemaster3D AutoSetup +Domemain3D AutoSetup ---------------------- A python function to create a fulldome stereo rig and test grid in Maya. @@ -546,7 +546,7 @@ def autosetup(): """ -Domemaster3D setDomeSamplingQuality +Domemain3D setDomeSamplingQuality ---------------------- A python function to setup the mental ray AA sampling quality. @@ -591,13 +591,13 @@ def setDomeSamplingQuality(): cmds.setAttr('miDefaultOptions.miSamplesMax', 100) -preMelDomemaster = 'source "domeRender.mel"; domemaster3DPreRenderMEL();' -postMelDomemaster = 'source "domeRender.mel"; domemaster3DPostRenderMEL();' +preMelDomemain = 'source "domeRender.mel"; domemain3DPreRenderMEL();' +postMelDomemain = 'source "domeRender.mel"; domemain3DPostRenderMEL();' """ -Domemaster3D Add Pre/Post Render Mel +Domemain3D Add Pre/Post Render Mel ---------------------- -A python function to add the Domemaster3D shader Pre/Post render mel scripts to the Maya Render Settings window. +A python function to add the Domemain3D shader Pre/Post render mel scripts to the Maya Render Settings window. """ def addPrePostRenderScript(): @@ -608,26 +608,26 @@ def addPrePostRenderScript(): # PreRender MEL: preMelCurrent = cmds.getAttr('defaultRenderGlobals.preMel') or '' - if not(preMelDomemaster in preMelCurrent): - preMelCurrent = preMelCurrent + ';' + preMelDomemaster + if not(preMelDomemain in preMelCurrent): + preMelCurrent = preMelCurrent + ';' + preMelDomemain preMelCurrent = preMelCurrent.replace(';;', ';') cmds.setAttr('defaultRenderGlobals.preMel', preMelCurrent, type = 'string') # PostRender MEL: postMelCurrent = cmds.getAttr('defaultRenderGlobals.postMel') or '' - if not(postMelDomemaster in postMelCurrent): - postMelCurrent = postMelCurrent + ';' + postMelDomemaster + if not(postMelDomemain in postMelCurrent): + postMelCurrent = postMelCurrent + ';' + postMelDomemain postMelCurrent = postMelCurrent.replace(';;', ';') cmds.setAttr('defaultRenderGlobals.postMel', postMelCurrent, type = 'string') # Enable realtime 3D - mel.eval('source "domeRender.mel"; domemaster3DPostRenderMEL();') + mel.eval('source "domeRender.mel"; domemain3DPostRenderMEL();') """ -Domemaster3D Remove Pre/Post Render Mel +Domemain3D Remove Pre/Post Render Mel ---------------------- -A python function to remove the Domemaster3D shader Pre/Post render mel scripts from the Maya Render Settings window. +A python function to remove the Domemain3D shader Pre/Post render mel scripts from the Maya Render Settings window. """ def removePrePostRenderScript(): @@ -638,22 +638,22 @@ def removePrePostRenderScript(): # PreRender MEL: preMelCurrent = cmds.getAttr('defaultRenderGlobals.preMel') or '' - preMelCurrent = preMelCurrent.replace(preMelDomemaster, '') + preMelCurrent = preMelCurrent.replace(preMelDomemain, '') preMelCurrent = preMelCurrent.replace(';;', ';') cmds.setAttr('defaultRenderGlobals.preMel', preMelCurrent, type='string') # PostRender MEL: postMelCurrent = cmds.getAttr('defaultRenderGlobals.postMel') or '' - postMelCurrent = postMelCurrent.replace(postMelDomemaster, '') + postMelCurrent = postMelCurrent.replace(postMelDomemain, '') postMelCurrent = postMelCurrent.replace(';;', ';') cmds.setAttr('defaultRenderGlobals.postMel', postMelCurrent, type='string') # Disable the realtime 3D camera offsets - mel.eval('source "domeRender.mel"; domemaster3DPostRenderMEL();') + mel.eval('source "domeRender.mel"; domemain3DPostRenderMEL();') """ -Domemaster3D SetRenderRes +Domemain3D SetRenderRes ---------------------- A python function to setup the basic mental ray 2K x 2K square render settings. @@ -669,7 +669,7 @@ def setRenderRes(): fulldomeRenderHeight = 2048 #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', fulldomeRenderWidth) cmds.setAttr('defaultResolution.height', fulldomeRenderHeight) @@ -679,7 +679,7 @@ def setRenderRes(): """ -Domemaster3D changeRenderRes +Domemain3D changeRenderRes ---------------------- A python function to change the basic mental ray resolution square render settings. @@ -696,7 +696,7 @@ def changeRenderRes(renderSizePx): fulldomeRenderHeight = renderSizePx #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', fulldomeRenderWidth) cmds.setAttr('defaultResolution.height', fulldomeRenderHeight) @@ -707,7 +707,7 @@ def changeRenderRes(renderSizePx): """ -Domemaster3D changeRenderResWH +Domemain3D changeRenderResWH ---------------------- A python function to change the basic mental ray resolution render settings. @@ -725,7 +725,7 @@ def changeRenderResWH(renderSizeW, renderSizeH): domeDeviceAspectRatio=domeRenderWidth/domeRenderHeight #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', domeRenderWidth) cmds.setAttr('defaultResolution.height', domeRenderHeight) @@ -737,7 +737,7 @@ def changeRenderResWH(renderSizeW, renderSizeH): """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -830,7 +830,7 @@ def createFulldomeStereoRig(): """ -Domemaster3D createDomeAFL_FOV_Camera +Domemain3D createDomeAFL_FOV_Camera ---------------------- A python function to create a domeAFL_FOV lens shader and attach it to a camera. """ @@ -901,7 +901,7 @@ def createDomeAFL_FOV_Camera(): domeOverrideFOV = int(os.getenv('DOMEMASTER3D_MAYA_REALTIME_FOV', defaultRealtimeFOV)) if((domeOverrideFOV >= 3) and (domeOverrideFOV <= 3500)): - print ("Using a Domemaster3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") + print ("Using a Domemain3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") else: print ("The \"DOMEMASTER3D_MAYA_REALTIME_FOV\" environment variable overridden FOV Value of " + str(domeOverrideFOV) + " is outside of the acceptable range of 3 mm to 3500mm that Maya accepts as a valid camera field of view value. The default value of " + str(defaultRealtimeFOV) + " will be used instead.\n") domeOverrideFOV = defaultRealtimeFOV @@ -931,7 +931,7 @@ def createDomeAFL_FOV_Camera(): """ -Domemaster3D createDomeAFL_WxH_Camera +Domemain3D createDomeAFL_WxH_Camera ---------------------- A python function to create a domeAFL_WxH lens shader and attach it to a camera. """ @@ -1003,7 +1003,7 @@ def createDomeAFL_WxH_Camera(): domeOverrideFOV = int(os.getenv('DOMEMASTER3D_MAYA_REALTIME_FOV', defaultRealtimeFOV)) if((domeOverrideFOV >= 3) and (domeOverrideFOV <= 3500)): - print ("Using a Domemaster3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") + print ("Using a Domemain3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") else: print ("The \"DOMEMASTER3D_MAYA_REALTIME_FOV\" environment variable overridden FOV Value of " + str(domeOverrideFOV) + " is outside of the acceptable range of 3 mm to 3500mm that Maya accepts as a valid camera field of view value. The default value of " + str(defaultRealtimeFOV) + " will be used instead.\n") domeOverrideFOV = defaultRealtimeFOV @@ -1019,7 +1019,7 @@ def createDomeAFL_WxH_Camera(): """ -Domemaster3D createLatLong_Camera +Domemain3D createLatLong_Camera ---------------------- A python function to create a latitude longitude lens shader and attach it to a camera. """ @@ -1092,7 +1092,7 @@ def createLatLong_Camera(): domeOverrideFOV = int(os.getenv('DOMEMASTER3D_MAYA_REALTIME_FOV', defaultRealtimeFOV)) if((domeOverrideFOV >= 3) and (domeOverrideFOV <= 3500)): - print ("Using a Domemaster3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") + print ("Using a Domemain3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") else: print ("The \"DOMEMASTER3D_MAYA_REALTIME_FOV\" environment variable overridden FOV Value of " + str(domeOverrideFOV) + " is outside of the acceptable range of 3 mm to 3500mm that Maya accepts as a valid camera field of view value. The default value of " + str(defaultRealtimeFOV) + " will be used instead.\n") domeOverrideFOV = defaultRealtimeFOV @@ -1108,7 +1108,7 @@ def createLatLong_Camera(): """ -Domemaster3D LatLong Stereo Rig +Domemain3D LatLong Stereo Rig -------------------------------- A python function to create a LatLong stereo rig in Maya. """ @@ -1202,7 +1202,7 @@ def createLatLongStereoRig(): """ -Domemaster3D LatLong Stereo Aim Rig +Domemain3D LatLong Stereo Aim Rig -------------------------------- A python function to create a LatLong stereo rig in Maya with an aim constraint applied. """ @@ -1303,7 +1303,7 @@ def createLatLongStereoAimRig(): """ -Domemaster3D LatLong Stereo Zenith Rig +Domemain3D LatLong Stereo Zenith Rig -------------------------------- A python function to create a LatLong stereo rig in Maya. The lens shaders have the Zenith Mode checkboxes enabled by default. @@ -1399,7 +1399,7 @@ def createLatLongStereoZenithRig(): """ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. @@ -1423,7 +1423,7 @@ def createLatLongGrid(): """ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background -------------------------------------- A python function to create a hemispherical yellow test grid in Maya. @@ -1459,27 +1459,27 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGrid'): - print('Removing existing Domemaster3D object: domeGrid') + print('Removing existing Domemain3D object: domeGrid') cmds.select('domeGrid', replace=True) cmds.delete() if cmds.objExists('MeshGroup'): - print('Removing existing Domemaster3D object: MeshGroup') + print('Removing existing Domemain3D object: MeshGroup') cmds.select('MeshGroup', replace=True) cmds.delete() if cmds.objExists(domeGridSurface): - print('Removing existing Domemaster3D object: ' + domeGridSurface) + print('Removing existing Domemain3D object: ' + domeGridSurface) cmds.select(domeGridSurface, replace=True) cmds.delete() if cmds.objExists('domeGridToon'): - print('Removing existing Domemaster3D object: domeGridToon') + print('Removing existing Domemain3D object: domeGridToon') cmds.select('domeGridToon', replace=True) cmds.delete() if cmds.objExists('domeGrid_displayModeExpr'): - print('Removing existing Domemaster3D object: domeGrid_displayModeExpr') + print('Removing existing Domemain3D object: domeGrid_displayModeExpr') cmds.select('domeGrid_displayModeExpr', replace=True) cmds.delete() @@ -1488,22 +1488,22 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGridLinesSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShader') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShader') cmds.select('domeGridLinesSurfaceShader', replace=True) cmds.delete() if cmds.objExists('domeGridLinesSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShaderSG') cmds.select('domeGridLinesSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridSurfaceShaderSG') cmds.select('domeGridSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridSurfaceShader') + print('Removing existing Domemain3D object: domeGridSurfaceShader') cmds.select('domeGridSurfaceShader', replace=True) cmds.delete() @@ -1957,7 +1957,7 @@ def createDomeGrid(): """ -Domemaster3D createTestShapes +Domemain3D createTestShapes ---------------------- A python function to create a test sphere and cube in Maya. """ @@ -1966,17 +1966,17 @@ def createTestShapes(): import maya.cmds as cmds if cmds.objExists('domeTestLight'): - print('Removing existing Domemaster3D object: domeTestLight') + print('Removing existing Domemain3D object: domeTestLight') cmds.select('domeTestLight', replace=True) cmds.delete() if cmds.objExists('polyTestSphere'): - print('Removing existing Domemaster3D object: polyTestSphere') + print('Removing existing Domemain3D object: polyTestSphere') cmds.select('polyTestSphere', replace=True) cmds.delete() if cmds.objExists('polyTestCube'): - print('Removing existing Domemaster3D object: polyTestCube') + print('Removing existing Domemain3D object: polyTestCube') cmds.select('polyTestCube', replace=True) cmds.delete() @@ -2006,7 +2006,7 @@ def createTestShapes(): """ -Domemaster3D createRobLookup +Domemain3D createRobLookup ---------------------- A python function to create a mental ray screen space texture and connect it to a robLookupBackground lens shader. @@ -2019,7 +2019,7 @@ def createRobLookup(): forceMentalRayLoad() # --------------------------------------------------------------------- - # Setup the base folder path for the Domemaster3D control maps + # Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Variables @@ -2111,7 +2111,7 @@ def createRobLookup(): """ -Domemaster3D createDomeRampTexture +Domemain3D createDomeRampTexture ---------------------- A python function to create a mental ray screen space ramp texture and connect it to a robLookupBackground lens shader. @@ -2171,23 +2171,23 @@ def createFulldomeIBL(): iblDialogString = 'Do you want to have a circular alpha mask applied to the imagery in your fulldome IBL shading network?\n' iblDialogString += '\n' - iblDialogString += 'Note: This is useful for hiding comments written in the border zone of the domemaster frame and will stop them from showing up in the environment map background.' + iblDialogString += 'Note: This is useful for hiding comments written in the border zone of the domemain frame and will stop them from showing up in the environment map background.' iblDialogButtonSelected = cmds.confirmDialog( title='FulldomeIBL Creation', message=iblDialogString, button=['Yes','No'], defaultButton='No', cancelButton='No', dismissString='No', icon='question') if(iblDialogButtonSelected == 'Yes'): print 'Creating a circular masked FulldomeIBL Shading Network.\n' - # Masked Domemaster Frame Boundary input = 1 + # Masked Domemain Frame Boundary input = 1 isMasked = 1 else: print 'Creating a regular FulldomeIBL Shading Network.\n' - # UnMasked Domemaster Frame Boundary input = 0 + # UnMasked Domemain Frame Boundary input = 0 isMasked = 0 # Check if we are running Maya 2015+ and then enable the emit light mode mayaVersion = getMayaVersionDome() # --------------------------------------------------------------------- - # Setup the base folder path for the Domemaster3D control maps + # Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Make sure the mental ray plugin was loaded @@ -2210,10 +2210,10 @@ def createFulldomeIBL(): iblMapFileTexture = getSourceImagesPath("fulldomeAlignmentGrid_4k.png") print "[Loading IBL Map]: " + iblMapFileTexture - # Create the alpha domemaster frame mask + # Create the alpha domemain frame mask if(isMasked): - domeMaskMapFileTexture = getSourceImagesPath("domemaster_mask.png") - print "[Loading Domemaster Circular Mask Map]: " + domeMaskMapFileTexture + domeMaskMapFileTexture = getSourceImagesPath("domemain_mask.png") + print "[Loading Domemain Circular Mask Map]: " + domeMaskMapFileTexture # --------------------------------------------------------------------- # Create the mentalrayIblShape node @@ -2255,7 +2255,7 @@ def createFulldomeIBL(): dome_map_mr_tex = cmds.shadingNode('mentalrayTexture', n='dome_map_mentalrayTexture1', asTexture=True) dome_remap_color = cmds.shadingNode('remapColor', n='dome_remapColor1', asTexture=True) - # Create the alpha domemaster frame mask + # Create the alpha domemain frame mask if(isMasked): dome_mask_map_mr_tex = cmds.shadingNode('mentalrayTexture', n='dome_mask_mentalrayTexture1', asTexture=True) dome_mask_tex_filter = cmds.shadingNode('mib_texture_lookup', n='dome_mask_mib_texture_lookup1', asTexture=True) @@ -2263,13 +2263,13 @@ def createFulldomeIBL(): dome_mask_multiply = cmds.shadingNode('multiplyDivide', n='dome_mask_multiply', asUtility=True) # Connect the nodes - # RGB Domemaster Texture Map + # RGB Domemain Texture Map cmds.setAttr(dome_map_mr_tex+'.fileTextureName', iblMapFileTexture , type="string") #cmds.setAttr(dome_map_mr_tex+'.fileTextureName', '' , type="string") - # Create the alpha domemaster frame mask + # Create the alpha domemain frame mask if(isMasked): - # Circular Domemaster Mask Texture Map + # Circular Domemain Mask Texture Map cmds.setAttr(dome_mask_map_mr_tex+'.fileTextureName', domeMaskMapFileTexture , type="string") #cmds.setAttr(dome_mask_tex_filter+'.fileTextureName', '' , type="string") @@ -2281,14 +2281,14 @@ def createFulldomeIBL(): cmds.setAttr(iblShapeName+'.type', 1) # Connect the rest of the MR texture shading network - # RGB Domemaster Map + # RGB Domemain Map cmds.connectAttr(dome_map_mr_tex+'.message', dome_map_tex_filter+'.tex') cmds.connectAttr(dome_tex_vector+'.outValue', dome_tex_remap+'.input') cmds.connectAttr(dome_tex_remap+'.outValue', dome_map_tex_filter+'.coord') - # Create the alpha domemaster frame mask + # Create the alpha domemain frame mask if(isMasked): - # Circular Domemaster Mask Map + # Circular Domemain Mask Map cmds.connectAttr(dome_mask_map_mr_tex+'.message', dome_mask_tex_filter+'.tex') cmds.connectAttr(dome_tex_remap+'.outValue', dome_mask_tex_filter+'.coord') @@ -2296,11 +2296,11 @@ def createFulldomeIBL(): cmds.connectAttr(dome_mask_tex_filter+'.outValue', dome_mask_multiply+'.input1') cmds.connectAttr(dome_map_tex_filter+'.outValue', dome_mask_multiply+'.input2') - # Create the alpha domemaster frame mask - # Apply a composited fulldome mask over the domemaster RGB image + # Create the alpha domemain frame mask + # Apply a composited fulldome mask over the domemain RGB image cmds.connectAttr(dome_mask_multiply+'.output', dome_remap_color+'.color') else: - # Skip the domemaster mask and just apply the raw RGB image + # Skip the domemain mask and just apply the raw RGB image cmds.connectAttr(dome_map_tex_filter+'.outValue', dome_remap_color+'.color') @@ -2405,7 +2405,7 @@ def createHemirectIBL(): #Check if we are running Maya 2015+ and then enable the emit light mode mayaVersion = getMayaVersionDome() # --------------------------------------------------------------------- - # Setup the base folder path for the Domemaster3D control maps + # Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Make sure the mental ray plugin was loaded diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCrossBounce.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCrossBounce.py index 5265114..c537566 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCrossBounce.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeCrossBounce.py @@ -1,22 +1,22 @@ """ Fulldome Cross Bounce Setup Script V2.4 -for Domemaster3D and Maya on Windows +for Domemain3D and Maya on Windows 2018-08-21 This script will create a Maya scene that uses Mental Ray Final Gather to compute a fulldome crossbounce light simulation. The rendered image shows the light pollution that happens when a video image is projected on a hemispherical dome screen. You can preview the full result in Photoshop or After Effects by applying the rendered crossbounce simulation with an Add (Linear Dodge) transfer mode over the original fulldome image. -The default image used is the ocean fulldome test image that comes with the domemaster3D shader: -C:\Program Files\Domemaster3D\sourceimages\fulldome_2K.jpg +The default image used is the ocean fulldome test image that comes with the domemain3D shader: +C:\Program Files\Domemain3D\sourceimages\fulldome_2K.jpg When the script runs, the fulldome_2K.jpg image is used as the source texture for the FulldomeIBL sim and it is also loaded as a "kept image" in the Maya render view window. Also, the fulldome domeAFL_FOV camera is snapshoted automatically as the current render camera so the first time you hit render in the render view you will be looking through the correct camera. -The Domemaster3D v1.6 or newer FulldomeIBL tool is used to set up the domemaster formatted image sequence loading and a remapColor low dynamic range to high dynamic range image conversion preset is used to enhance the IBL based light simulation. +The Domemain3D v1.6 or newer FulldomeIBL tool is used to set up the domemain formatted image sequence loading and a remapColor low dynamic range to high dynamic range image conversion preset is used to enhance the IBL based light simulation. How to use this Script ------------------------- -Step 1. You need to download a copy of the Domemaster3D shader (version 1.6 or higher) to use this script: +Step 1. You need to download a copy of the Domemain3D shader (version 1.6 or higher) to use this script: https://github.com/zicher3d-org/domemaster-stereo-shader/releases Step 2. Place the python "domeCrossBounce.py" script in one of Maya's 'script' folders and restart Maya. Copy the icon file "domeCrossBounce.png" to your Maya icons folder. @@ -30,9 +30,9 @@ reload(domeCrossBounce) domeCrossBounce.createCrossBounce() -Step 4. When the script starts you will be asked if you want an circular alpha mask to be applied to the fulldome frame. This will matte out any writing or captions that might exist around a domemaster frame. Choosing "Yes" or "No" in the Fulldome IBL Creation dialog is fine if you are using the sample fulldome_2K.jpg test image. +Step 4. When the script starts you will be asked if you want an circular alpha mask to be applied to the fulldome frame. This will matte out any writing or captions that might exist around a domemain frame. Choosing "Yes" or "No" in the Fulldome IBL Creation dialog is fine if you are using the sample fulldome_2K.jpg test image. -Step 5. If you click "render" in the Render View you will see the simulated crossbounce light pollution. If you save the frame to your desktop you can try compositing it over the original image ( C:\Program Files\Domemaster3D\sourceimages\fulldome_2K.jpg ) in Photoshop using the Linear Dodge / Add transfer mode to compare the difference. +Step 5. If you click "render" in the Render View you will see the simulated crossbounce light pollution. If you save the frame to your desktop you can try compositing it over the original image ( C:\Program Files\Domemain3D\sourceimages\fulldome_2K.jpg ) in Photoshop using the Linear Dodge / Add transfer mode to compare the difference. """ def createCrossBounce(): diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeMaterial.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeMaterial.py index 237df7a..c972188 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeMaterial.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeMaterial.py @@ -46,14 +46,14 @@ Version 1.9.3 - 2016-02-08 ----------------------------- -Updated the DomeViewer tool to add Ricoh Theta S support along with a set of Ricoh Theta S panoramic viewing meshes "ricoh_theta_s_mesh.obj", and "ricoh_theta_s_mesh.ma" to the Domemaster3D sourceimages folder +Updated the DomeViewer tool to add Ricoh Theta S support along with a set of Ricoh Theta S panoramic viewing meshes "ricoh_theta_s_mesh.obj", and "ricoh_theta_s_mesh.ma" to the Domemain3D sourceimages folder -Updated the DomeViewer tool to add Facebook Cube Map 3x2 support along with a set of Facebook Cube Map 3x2 panoramic viewing meshes "facebookCube3x2_mesh.obj", and "facebookCube3x2_mesh.ma" to the Domemaster3D sourceimages folder +Updated the DomeViewer tool to add Facebook Cube Map 3x2 support along with a set of Facebook Cube Map 3x2 panoramic viewing meshes "facebookCube3x2_mesh.obj", and "facebookCube3x2_mesh.ma" to the Domemain3D sourceimages folder Version 1.9.2 - 2016-01-03 ----------------------------- -Updated the DomeViewer tool to addGearVR Mono Cube support, and included a set of Gear VR panoramic viewing meshes "gearVRCube_mesh.obj", and "gearVRCube_mesh.ma" in the Domemaster3D sourceimages folder +Updated the DomeViewer tool to addGearVR Mono Cube support, and included a set of Gear VR panoramic viewing meshes "gearVRCube_mesh.obj", and "gearVRCube_mesh.ma" in the Domemain3D sourceimages folder Changed the DomeViewer "Show Focal Length in HUD" default state to off @@ -72,9 +72,9 @@ ------------------------------------- -Domemaster3D attribute presets path detection code added: +Domemain3D attribute presets path detection code added: domeMaterial.getDomePresetsPath('remapColor/ldr_to_hdr_boost_10x.mel') - # C:/Program Files/Domemaster3D/maya/common/presets/attrPresets/remapColor/ldr_to_hdr_boost_10x.mel + # C:/Program Files/Domemain3D/maya/common/presets/attrPresets/remapColor/ldr_to_hdr_boost_10x.mel Version 1.6 - 2014-11-3 @@ -109,7 +109,7 @@ ------------------------------------ Updated Linux install path to: -/opt/Domemaster3D +/opt/Domemain3D Added support for the Quadsphere (starglobe) mesh to the domeViewer @@ -127,7 +127,7 @@ Version 1.4 Beta 4 - Build 4 - 2013-10-20 --------------------------------------------- -Added the Dome Viewer feature for exploring rendered domemaster formatted imagery +Added the Dome Viewer feature for exploring rendered domemain formatted imagery Version 1.3.5 Build 7 - 2013-08-20 @@ -137,7 +137,7 @@ Added a starglobe tool to the Maya shelf to create a night sky backdrop -The starglobe textures and meshes are stored in the Domemaster3D/sourceimages folder. +The starglobe textures and meshes are stored in the Domemain3D/sourceimages folder. Version 1.3.3 - 2013-05-29 @@ -153,7 +153,7 @@ Edited the default camera connections for the lens shaders to work with the modified versions of the maya createMentalRayIndirectLightingTab.mel & AEmia_physicalskyTemplate.mel scripts. This fixes the problem of the Physical Sky & Sum system overwriting the first .miLensShader input on cameras in the scene. -The location of the default domemaster control map textures is now in the C:\Program Files\Domemaster3D\sourceimages folder on Windows or the /Applications/Domemaster3D/sourceimages folder on macOS. The Domemaster3D shelf tools have been updated to link to the new sourceimages folder. +The location of the default domemain control map textures is now in the C:\Program Files\Domemain3D\sourceimages folder on Windows or the /Applications/Domemain3D/sourceimages folder on macOS. The Domemain3D shelf tools have been updated to link to the new sourceimages folder. Version 1.3 - Build 27 - 2012-11-04 --------------------------------------- @@ -236,7 +236,7 @@ ------------------------------------------------------------------------------ -Domemaster3D Force Mental Ray to load +Domemain3D Force Mental Ray to load A python function to make sure mental ray is active and the MR shading nodes are read to be used. Run using the command: @@ -250,7 +250,7 @@ A python function to create a 8K textured starglobe with a mental ray native mia_material_x_passes shading network. The starglobe meshes are stored in the folder: -C:/Program Files/Domemaster3D/sourceimages +C:/Program Files/Domemain3D/sourceimages Run using the command: import domeMaterial as domeMaterial @@ -263,7 +263,7 @@ A python function to create a fulldome image viewer with an incandescent lambert based shading network. The domeViewer mesh is stored in the folder: -C:/Program Files/Domemaster3D/sourceimages +C:/Program Files/Domemain3D/sourceimages Run using the command: import domeMaterial as domeMaterial @@ -304,7 +304,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -315,32 +315,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -357,7 +357,7 @@ def getModelsPath(modelFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D models + # Set up the base folder path for the Domemain3D models # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -368,32 +368,32 @@ def getModelsPath(modelFileName): # Try and read the value from the current Maya.env file's environment variables baseModelsFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseModelsFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseModelsFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseModelsFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseModelsFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseModelsFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseModelsFolder = "/Applications/Domemaster3D/sourceimages/" + baseModelsFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseModelsFolder = "/opt/Domemaster3D/sourceimages/" + baseModelsFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseModelsFolder = "/opt/Domemaster3D/sourceimages/" + baseModelsFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseModelsFolder = "" combinedFileAndModelPath = baseModelsFolder + modelFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the model file]: " + combinedFileAndModelPath return combinedFileAndModelPath @@ -411,7 +411,7 @@ def getDomePresetsPath(PresetsFileName): import maya.mel as mel # --------------------------------------------------------------------- - # Setup the base folder path for the Domemaster3D AttrPresets + # Setup the base folder path for the Domemain3D AttrPresets # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -422,32 +422,32 @@ def getDomePresetsPath(PresetsFileName): # Try and read the value from the current Maya.env file's environment variables basePresetsFolder = os.environ.get('DOMEMASTER3D_MAYA_DIR') + '/common/presets/attrPresets/' - # Typical Result: C:/Program Files/Domemaster3D/maya/common/presets/attrPresets/ + # Typical Result: C:/Program Files/Domemain3D/maya/common/presets/attrPresets/ # Use a fixed value if the env var is empty if basePresetsFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - basePresetsFolder = 'C:/Program Files/Domemaster3D/maya/common/presets/attrPresets/' + basePresetsFolder = 'C:/Program Files/Domemain3D/maya/common/presets/attrPresets/' elif platform.system()== 'win32': # Check if the program is running on Windows 32 - basePresetsFolder = 'C:/Program Files (x86)/Domemaster3D/maya/common/presets/attrPresets/' + basePresetsFolder = 'C:/Program Files (x86)/Domemain3D/maya/common/presets/attrPresets/' elif platform.system()== 'Darwin': # Check if the program is running on macOS - basePresetsFolder = '/Applications/Domemaster3D/maya/common/presets/attrPresets/' + basePresetsFolder = '/Applications/Domemain3D/maya/common/presets/attrPresets/' elif platform.system()== 'Linux': # Check if the program is running on Linux - basePresetsFolder = '/opt/Domemaster3D/maya/common/presets/attrPresets/' + basePresetsFolder = '/opt/Domemain3D/maya/common/presets/attrPresets/' elif platform.system()== 'Linux2': # Check if the program is running on Linux - basePresetsFolder = '/opt/Domemaster3D/maya/common/presets/attrPresets/' + basePresetsFolder = '/opt/Domemain3D/maya/common/presets/attrPresets/' else: # Create the empty variable as a fallback mode basePresetsFolder = '' combinedFileAndPresetsPath = basePresetsFolder + PresetsFileName - print '[Domemaster3D is running on a ' + platform.system() + ' System]' + print '[Domemain3D is running on a ' + platform.system() + ' System]' print '[Requesting the Presets file]: ' + combinedFileAndPresetsPath return combinedFileAndPresetsPath @@ -477,13 +477,13 @@ def createDomeViewerTexture(meshName, isGrid, stereoMode, stereoView): stereoViewPrefix = 'center_' # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D textures + # Set up the base folder path for the Domemain3D textures # --------------------------------------------------------------------- # Set the file texture variables to '' if you don't want a file to be specified domeViewerMapFileTexture = '' - # Read the texture from the Domemaster3D Folder + # Read the texture from the Domemain3D Folder #domeViewerMapFileTexture = getSourceImagesPath("fulldome_1K.jpg") materialNamePrefix = '' @@ -1189,13 +1189,13 @@ def createDomeViewerMesh(meshName, meshFileName, domeTiltAngle, scale, viewerFli #object_selection = cmds.ls(sl=True) if cmds.objExists(meshName): - print('Removing existing Domemaster3D object: ' + meshName) + print('Removing existing Domemain3D object: ' + meshName) cmds.select(meshName, replace=True) cmds.delete() updatedMeshName = stereoViewPrefix+meshName if cmds.objExists(updatedMeshName): - print('Removing existing Domemaster3D object: ' + updatedMeshName) + print('Removing existing Domemain3D object: ' + updatedMeshName) cmds.select(updatedMeshName, replace=True) cmds.delete() @@ -1207,7 +1207,7 @@ def createDomeViewerMesh(meshName, meshFileName, domeTiltAngle, scale, viewerFli # cmds.select(meshFileName + '_uiConfigurationScriptNode', replace=True) # cmds.delete() - # Load the viewer model from the Domemaster3D source images directory + # Load the viewer model from the Domemain3D source images directory domeViewerModelFile = getModelsPath(meshFileName + meshFileExtension) # Load the Maya .ma format viewer model into the scene @@ -1667,7 +1667,7 @@ def createStarglobe(): forceMentalRayLoad() # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D textures + # Set up the base folder path for the Domemain3D textures # --------------------------------------------------------------------- # Set the file texture variables to "" if you don't want a file to be specified @@ -1680,7 +1680,7 @@ def createStarglobe(): object_selection = cmds.ls(sl=True) if cmds.objExists('polyStarglobe'): - print('Removing existing Domemaster3D object: polyStarglobe') + print('Removing existing Domemain3D object: polyStarglobe') cmds.select( 'polyStarglobe', replace=True) cmds.delete() @@ -1900,7 +1900,7 @@ def createColorBumpMiaMaterial(): forceMentalRayLoad() # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Set the file texture variables to "" if you don't want a file to be specified @@ -2433,7 +2433,7 @@ def createMentalrayTextureExtraAttrs(color_mr_tex, fileTextureName): # Set the file texture variables to "" if you don't want a file to be specified #ColorMapFileTexture = '' - #ColorMapFileTexture = getSourceImagesPath('NightSky_Domemaster.exr') + #ColorMapFileTexture = getSourceImagesPath('NightSky_Domemain.exr') #ColorMapFileTexture = getSourceImagesPath('checker.iff') ColorMapFileTexture = fileTextureName diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeStereoRig.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeStereoRig.py index 16183ad..7755dde 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeStereoRig.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeStereoRig.py @@ -1,5 +1,5 @@ """ - Domemaster3D Fulldome Stereo Rig V2.4 + Domemain3D Fulldome Stereo Rig V2.4 2018-08-21 by Andrew Hazelden andrew@andrewhazelden.com ----------------------------------------------------------------------- @@ -34,7 +34,7 @@ ------------ Oct 3, 2014 - Updated the sourceimages path code to allow the installation of the Domemaster3D shader to a folder other than the default path. + Updated the sourceimages path code to allow the installation of the Domemain3D shader to a folder other than the default path. New in Version 1.5 ------------------ @@ -95,7 +95,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -106,32 +106,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -141,7 +141,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print"Center: " + centerCam + "Left: " + leftCam + "Right: " + rightCam # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Variables @@ -262,7 +262,7 @@ def createLensShaders(centerCam, leftCam, rightCam): print("Dome Radius: " + str(defaultDomeRadius)) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- mayaVersion = getMayaVersionDome() @@ -386,7 +386,7 @@ def createLensShaders(centerCam, leftCam, rightCam): cmds.connectAttr(centerCamLens+'.Dome_Radius', centerCam+'.zeroParallax', force=True) cmds.connectAttr(centerCamLens+'.Cameras_Separation', centerCam+'.interaxialSeparation', force=True) - # Turn on Stereo 3D support for the Domemaster3D Maya camera rig + # Turn on Stereo 3D support for the Domemain3D Maya camera rig cmds.setAttr(centerCam+'.stereo', 1) """ @@ -396,25 +396,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr(slave + '.renderable', 0) + cmds.setAttr(subordinate + '.renderable', 0) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in ['horizontalFilmAperture', 'verticalFilmAperture', @@ -429,24 +429,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane']: - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False) # Hide some more attributes on the transform # for attr in ['scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest']: - cmds.setAttr(slave + '.' + attr, keyable=False) + cmds.setAttr(subordinate + '.' + attr, keyable=False) - return slave + return subordinate def __createFrustumNode(mainCam, parent, baseName): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -524,8 +524,8 @@ def createRig(unusedBasename='DomeStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # @@ -551,7 +551,7 @@ def createRig(unusedBasename='DomeStereoCamera'): #--------------------------------------------------------------------------- - # Custom Domemaster3D Setup code + # Custom Domemain3D Setup code #--------------------------------------------------------------------------- import os import sys @@ -564,7 +564,7 @@ def createRig(unusedBasename='DomeStereoCamera'): domeOverrideFOV = int(os.getenv('DOMEMASTER3D_MAYA_REALTIME_FOV', defaultRealtimeFOV)) if((domeOverrideFOV >= 3) and (domeOverrideFOV <= 3500)): - print ("Using a Domemaster3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") + print ("Using a Domemain3D realtime viewport FOV value of " + str(domeOverrideFOV) + ".\n") else: print ("The \"DOMEMASTER3D_MAYA_REALTIME_FOV\" environment variable overridden FOV Value of " + str(domeOverrideFOV) + " is outside of the acceptable range of 3 mm to 3500mm that Maya accepts as a valid camera field of view value. The default value of " + str(defaultRealtimeFOV) + " will be used instead.\n") domeOverrideFOV = defaultRealtimeFOV diff --git a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/userSetup.py b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/userSetup.py index 78a15cd..74dd141 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/userSetup.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/userSetup.py @@ -1,5 +1,5 @@ """ -Domemaster3D Startup Code V2.4 +Domemain3D Startup Code V2.4 2018-08-21 by Andrew Hazelden """ @@ -73,7 +73,7 @@ def addNewDomeRig(): print ("A DomeStereoCamera rig already exists in the stereoRigManager.") #else: # Maya 2010 or older was detected - #print ("The Domemaster3D stereo rig feature requires Maya 2011 and newer.") + #print ("The Domemain3D stereo rig feature requires Maya 2011 and newer.") # Check if a LatLongStereoCamera rig exists in the scene def addNewLatLongRig(): @@ -101,15 +101,15 @@ def addNewLatLongRig(): # Maya 2010 or older was detected #print ("The LatLong_Stereo stereo rig feature requires Maya 2011 and newer.") -# Load the Domemaster3D menu system in the rendering menu set +# Load the Domemain3D menu system in the rendering menu set def addNewDomeMenu(): import maya.mel as mel - print("Loading the Domemaster3D menu items...") + print("Loading the Domemain3D menu items...") mel.eval('source "domeMenu.mel";') - mel.eval('createDomemaster3DMenu();') + mel.eval('createDomemain3DMenu();') #---------------------------------------------------------------------------- -# Main Domemaster3D Start up function +# Main Domemain3D Start up function #---------------------------------------------------------------------------- # Stop Maya from running the python code twice by looking if it is __main__ @@ -120,7 +120,7 @@ def addNewDomeMenu(): #Check OS platform for Windows/Mac/Linux import platform - # Add the Domemaster3D Stereo & LatLong_Stereo camera Rig + # Add the Domemain3D Stereo & LatLong_Stereo camera Rig import domeStereoRig import LatLongStereoRig @@ -135,16 +135,16 @@ def addNewDomeMenu(): isMayaInBatchMode = maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kBatch # isMayaInBatchMode = 1 means Batch Mode, 0 means GUI mode if(isMayaInBatchMode == False): - print("The Domemaster3D Shader is running in GUI mode.") + print("The Domemain3D Shader is running in GUI mode.") # Make sure the stereo plug-in is loaded cmds.evalDeferred("cmds.loadPlugin('stereoCamera', quiet=True)") cmds.evalDeferred("addNewDomeRig()") cmds.evalDeferred("addNewLatLongRig()") - # Load the Domemaster3D menu system in the rendering menu set + # Load the Domemain3D menu system in the rendering menu set cmds.evalDeferred("addNewDomeMenu()") else: - print("The Domemaster3D Shader is running in batch mode.") + print("The Domemain3D Shader is running in batch mode.") # Make sure the mental ray plugin was loaded #if not (cmds.pluginInfo("Mayatomr",q=True,loaded=True)): @@ -153,5 +153,5 @@ def addNewDomeMenu(): # pass # --------------------------------------------------------------------- -# End Domemaster3D Startup Code +# End Domemain3D Startup Code # --------------------------------------------------------------------- diff --git a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/__init__.py b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/__init__.py index 059117e..afa2d76 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/__init__.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/__init__.py @@ -1,4 +1,4 @@ """ -Python Init command for Domemaster3D +Python Init command for Domemain3D Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/domeVrayRender.py b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/domeVrayRender.py index 1e2d855..ee525c8 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/domeVrayRender.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/domeVrayRender.py @@ -1,11 +1,11 @@ """ domeVrayRender.py -Domemaster3D for Vray for Maya v1.7 +Domemain3D for Vray for Maya v1.7 2015-04-01 09.06 pm by Andrew Hazelden ----------------------------- -This script will prepare a Vray Scene for rendering in Maya using the DomemasterStereo or LatLongStereo shaders. +This script will prepare a Vray Scene for rendering in Maya using the DomemainStereo or LatLongStereo shaders. Run the python code using: import domeVrayRender @@ -71,14 +71,14 @@ def domeVrayHasLatLongStereoAttrs(): #print("This is not a LatLongStereo Camera.") return 0 -# Check if the DomemasterStereo Vray Extra Attributes Exist -def domeVrayHasDomemasterStereoAttrs(): - # Check if the vrayDomemasterStereoOn Attr Exists - if domeVrayGetAttrNumValue("vrayDomemasterStereoOn") == 1: - print("This is a DomemasterStereo Camera.") +# Check if the DomemainStereo Vray Extra Attributes Exist +def domeVrayHasDomemainStereoAttrs(): + # Check if the vrayDomemainStereoOn Attr Exists + if domeVrayGetAttrNumValue("vrayDomemainStereoOn") == 1: + print("This is a DomemainStereo Camera.") return 1 else: - #print("This is not a DomemasterStereo Camera.") + #print("This is not a DomemainStereo Camera.") return 0 # Check if a vray camera extra attribute exists and get it's current string value @@ -195,61 +195,61 @@ def domeVrayTranslator(): zenith_fov = domeVrayGetAttrNumValue("vrayLatLongStereoZenithFov") LatLongStereo.set("zenith_fov", zenith_fov) - elif domeVrayHasDomemasterStereoAttrs() == 1: - # DomemasterStereo Lens Shader Setup - DomemasterStereo = vr.create("DomemasterStereo", "DomemasterStereo") + elif domeVrayHasDomemainStereoAttrs() == 1: + # DomemainStereo Lens Shader Setup + DomemainStereo = vr.create("DomemainStereo", "DomemainStereo") # Check if the shader was found - if DomemasterStereo is None: - print("The DomemasterStereo shader did not load correctly!") + if DomemainStereo is None: + print("The DomemainStereo shader did not load correctly!") return -1 else: - #print(camera + " has a DomemasterStereo lens shader applied.") - cameraAttr = domeVrayGetAttrNumValue("vrayDomemasterStereoCamera") + #print(camera + " has a DomemainStereo lens shader applied.") + cameraAttr = domeVrayGetAttrNumValue("vrayDomemainStereoCamera") #Use the camera name to set the stereo camera view value - #DomemasterStereo.set("camera", stereo_view) + #DomemainStereo.set("camera", stereo_view) #Use the Vray Extra Attribute to set the stereo camera view value - DomemasterStereo.set("camera", cameraAttr) + DomemainStereo.set("camera", cameraAttr) - fov_angle = domeVrayGetAttrNumValue("vrayDomemasterStereoFovAngle") - DomemasterStereo.set("fov_angle", fov_angle) + fov_angle = domeVrayGetAttrNumValue("vrayDomemainStereoFovAngle") + DomemainStereo.set("fov_angle", fov_angle) - parallax_distance = domeVrayGetAttrNumValue("vrayDomemasterStereoParallaxDistance") - DomemasterStereo.set("parallax_distance", parallax_distance) + parallax_distance = domeVrayGetAttrNumValue("vrayDomemainStereoParallaxDistance") + DomemainStereo.set("parallax_distance", parallax_distance) - separation = domeVrayGetAttrNumValue("vrayDomemasterStereoSeparation") - DomemasterStereo.set("separation", separation) + separation = domeVrayGetAttrNumValue("vrayDomemainStereoSeparation") + DomemainStereo.set("separation", separation) - forward_tilt = domeVrayGetAttrNumValue("vrayDomemasterStereoForwardTilt") - DomemasterStereo.set("forward_tilt", forward_tilt) + forward_tilt = domeVrayGetAttrNumValue("vrayDomemainStereoForwardTilt") + DomemainStereo.set("forward_tilt", forward_tilt) - tilt_compensation = domeVrayGetAttrNumValue("vrayDomemasterStereoTiltCompensation") - DomemasterStereo.set("tilt_compensation", tilt_compensation) + tilt_compensation = domeVrayGetAttrNumValue("vrayDomemainStereoTiltCompensation") + DomemainStereo.set("tilt_compensation", tilt_compensation) - vertical_mode = domeVrayGetAttrNumValue("vrayDomemasterStereoVerticalMode") - DomemasterStereo.set("vertical_mode", vertical_mode) + vertical_mode = domeVrayGetAttrNumValue("vrayDomemainStereoVerticalMode") + DomemainStereo.set("vertical_mode", vertical_mode) - DomemasterStereo.set("separation_map", 1.0) - DomemasterStereo.set("head_turn_map", 1.0) - DomemasterStereo.set("head_tilt_map", 0.5) + DomemainStereo.set("separation_map", 1.0) + DomemainStereo.set("head_turn_map", 1.0) + DomemainStereo.set("head_tilt_map", 0.5) - flip_x = domeVrayGetAttrNumValue("vrayDomemasterStereoFlipX") - DomemasterStereo.set("flip_x", flip_x) + flip_x = domeVrayGetAttrNumValue("vrayDomemainStereoFlipX") + DomemainStereo.set("flip_x", flip_x) - flip_y = domeVrayGetAttrNumValue("vrayDomemasterStereoFlipY") - DomemasterStereo.set("flip_y", flip_y) + flip_y = domeVrayGetAttrNumValue("vrayDomemainStereoFlipY") + DomemainStereo.set("flip_y", flip_y) - poles_corr = domeVrayGetAttrNumValue("vrayDomemasterStereoPolesCorrection") - DomemasterStereo.set("poles_corr", poles_corr) + poles_corr = domeVrayGetAttrNumValue("vrayDomemainStereoPolesCorrection") + DomemainStereo.set("poles_corr", poles_corr) - poles_corr_start = domeVrayGetAttrNumValue("vrayDomemasterStereoPolesCorrectionStart") - DomemasterStereo.set("poles_corr_start", poles_corr_start) + poles_corr_start = domeVrayGetAttrNumValue("vrayDomemainStereoPolesCorrectionStart") + DomemainStereo.set("poles_corr_start", poles_corr_start) - poles_corr_end = domeVrayGetAttrNumValue("vrayDomemasterStereoPolesCorrectionEnd") - DomemasterStereo.set("poles_corr_end", poles_corr_end) + poles_corr_end = domeVrayGetAttrNumValue("vrayDomemainStereoPolesCorrectionEnd") + DomemainStereo.set("poles_corr_end", poles_corr_end) - neck_offset = domeVrayGetAttrNumValue("vrayDomemasterStereoNeckOffset") - DomemasterStereo.set("neck_offset", neck_offset) + neck_offset = domeVrayGetAttrNumValue("vrayDomemainStereoNeckOffset") + DomemainStereo.set("neck_offset", neck_offset) #Check what version of Maya is active def getMayaVersionDome(): diff --git a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/userSetup.py b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/userSetup.py index 14764d4..d0a0451 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/userSetup.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/userSetup.py @@ -1,5 +1,5 @@ """ -Vray Domemaster3D Startup Code Version 2.1 +Vray Domemain3D Startup Code Version 2.1 2016-07-26 04.41 PM by Andrew Hazelden """ @@ -14,7 +14,7 @@ def findVrayDomeRig(): defs = cmds.stereoRigManager(rigDefinition=rig) print 'Rig "'+ rig +'": (language '+defs[0]+') create callback: '+defs[1] # Check for rig - if (rig == "VrayDomemasterStereoCamera"): + if (rig == "VrayDomemainStereoCamera"): return 1 return 0 @@ -50,30 +50,30 @@ def getMayaVersionDome(): return mayaVersion -# Check if a DomemasterStereoCamera rig exists in the scene +# Check if a DomemainStereoCamera rig exists in the scene def addNewVrayDomeRig(): import maya.mel as mel import maya.cmds as cmds if (findVrayDomeRig() == 0): - print ("An VrayDomemasterStereoCamera rig has been added to the stereoRigManager.") - # Register the DomemasterStereoCamera rig type + print ("An VrayDomemainStereoCamera rig has been added to the stereoRigManager.") + # Register the DomemainStereoCamera rig type # add[rig, language, createProcedure] # cameraSetFunc=[rig,callback] # Add the custom rig - #cmds.evalDeferred("cmds.stereoRigManager(add=['VrayDomemasterStereoCamera', 'Python', 'vrayDomemasterStereoRig.createRig'])") - cmds.stereoRigManager(add=['VrayDomemasterStereoCamera', 'Python', 'vrayDomemasterStereoRig.createRig']) + #cmds.evalDeferred("cmds.stereoRigManager(add=['VrayDomemainStereoCamera', 'Python', 'vrayDomemainStereoRig.createRig'])") + cmds.stereoRigManager(add=['VrayDomemainStereoCamera', 'Python', 'vrayDomemainStereoRig.createRig']) # Add the custom callback set for Maya 2011+ mayaVersion = getMayaVersionDome() if (mayaVersion >= 2011): - #cmds.evalDeferred("cmds.stereoRigManager(cameraSetFunc=['VrayDomemasterStereoCamera','vrayDomemasterStereoRig.attachToCameraSet'] )") - cmds.stereoRigManager(cameraSetFunc=['VrayDomemasterStereoCamera','vrayDomemasterStereoRig.attachToCameraSet']) + #cmds.evalDeferred("cmds.stereoRigManager(cameraSetFunc=['VrayDomemainStereoCamera','vrayDomemainStereoRig.attachToCameraSet'] )") + cmds.stereoRigManager(cameraSetFunc=['VrayDomemainStereoCamera','vrayDomemainStereoRig.attachToCameraSet']) # Make the new rig the default rig - #cmds.evalDeferred("cmds.stereoRigManager(defaultRig='VrayDomemasterStereoCamera')") - cmds.stereoRigManager(defaultRig='VrayDomemasterStereoCamera') + #cmds.evalDeferred("cmds.stereoRigManager(defaultRig='VrayDomemainStereoCamera')") + cmds.stereoRigManager(defaultRig='VrayDomemainStereoCamera') else: - print ("An VrayDomemasterStereoCamera rig already exists in the stereoRigManager.") + print ("An VrayDomemainStereoCamera rig already exists in the stereoRigManager.") # Check if a LatLongStereoCamera rig exists in the scene @@ -103,12 +103,12 @@ def addNewVrayLatLongRig(): -# Load the Vray Domemaster3D menu system in the rendering menu set +# Load the Vray Domemain3D menu system in the rendering menu set def addNewVrayDomeMenu(): import maya.mel as mel - print("Loading the Vray Domemaster3D menu items...") + print("Loading the Vray Domemain3D menu items...") mel.eval('source "vrayDomeMenu.mel";') - mel.eval('createVrayDomemaster3DMenu();') + mel.eval('createVrayDomemain3DMenu();') # Load the new Vray stereo rigs @@ -121,15 +121,15 @@ def deferredLoadVrayRig(): cmds.evalDeferred("addNewVrayDomeRig()") #---------------------------------------------------------------------------- -# Main Domemaster3D Start up function +# Main Domemain3D Start up function #---------------------------------------------------------------------------- # Stop Maya from running the python code twice by looking if it is __main__ if (__name__ == '__main__'): import maya.cmds as cmds - # Add the Domemaster3D Stereo & LatLong_Stereo camera Rig - #import vrayDomemasterStereoRig + # Add the Domemain3D Stereo & LatLong_Stereo camera Rig + #import vrayDomemainStereoRig #import vrayLatLongStereoRig """ @@ -142,17 +142,17 @@ def deferredLoadVrayRig(): isMayaInBatchMode = maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kBatch # isMayaInBatchMode = 1 means Batch Mode, 0 means GUI mode if(isMayaInBatchMode == False): - print("The Vray Domemaster3D Shader is running in GUI mode.") + print("The Vray Domemain3D Shader is running in GUI mode.") # Make sure the stereo plug-in is loaded cmds.evalDeferred("cmds.loadPlugin('stereoCamera', quiet=True)") # Load the new Vray stereo rigs cmds.evalDeferred("deferredLoadVrayRig()") - # Load the Vray Domemaster3D menu system in the rendering menu set + # Load the Vray Domemain3D menu system in the rendering menu set cmds.evalDeferred("addNewVrayDomeMenu()") else: - print("The Vray Domemaster3D Shader is running in batch mode.") + print("The Vray Domemain3D Shader is running in batch mode.") # Make sure the Vray plugin was loaded @@ -162,5 +162,5 @@ def deferredLoadVrayRig(): # pass # --------------------------------------------------------------------- -# End Vray Domemaster3D Startup Code +# End Vray Domemain3D Startup Code # --------------------------------------------------------------------- diff --git a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomeCamera.py b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomeCamera.py index e43d83d..f30b977 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomeCamera.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomeCamera.py @@ -1,5 +1,5 @@ """ -Vray Domemaster3D Camera Setup Script V2.1 +Vray Domemain3D Camera Setup Script V2.1 2016-07-26 04.55 PM Created by Andrew Hazelden andrew@andrewhazelden.com @@ -38,7 +38,7 @@ ------------------------------------------------------------------------------ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig A python function to create a fulldome stereo rig in Maya. Run using the command: @@ -48,7 +48,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createVrayLatLongStereoRig +Domemain3D createVrayLatLongStereoRig A python function to create a stereoscopic latitude longitude lens shader and attach it to a camera. Run using the command: @@ -58,7 +58,7 @@ ------------------------------------------------------------------------------ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background A python function to create a spherical yellow test grid in Maya. Run using the command: @@ -68,7 +68,7 @@ ------------------------------------------------------------------------------ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. Run using the command: @@ -78,7 +78,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createTestShapes +Domemain3D createTestShapes A python function to create a test sphere and cube in Maya. Run using the command: @@ -88,7 +88,7 @@ ------------------------------------------------------------------------------ -Domemaster3D getMayaVersionDome +Domemain3D getMayaVersionDome A python function to check what Maya version is active. import vrayDomeCamera @@ -98,62 +98,62 @@ ------------------------------------------------------------------------------ -Show the Domemaster Wiki +Show the Domemain Wiki -------------------------------- Loads the wiki page in your default web browser Run using the command: -print("Open the Domemaster Wiki Page") +print("Open the Domemain Wiki Page") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterWiki() +vrayDomeCamera.openDomemainWiki() -print("Open the Domemaster NING Group") +print("Open the Domemain NING Group") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterNing() +vrayDomeCamera.openDomemainNing() -print("Open the Domemaster Downloads Page") +print("Open the Domemain Downloads Page") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterDownloads() +vrayDomeCamera.openDomemainDownloads() -print("Open the Domemaster Bug Reporter") +print("Open the Domemain Bug Reporter") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterBugReport() +vrayDomeCamera.openDomemainBugReport() """ -def openDomemasterWiki(): +def openDomemainWiki(): import webbrowser - # Domemaster Stereo Shader - Wiki Page + # Domemain Stereo Shader - Wiki Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/wiki' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openVrayDomemasterNing(): +def openVrayDomemainNing(): import webbrowser - # Domemaster NING Group + # Domemain NING Group url = 'http://fulldome.ning.com/forum/topics/stereoscopic-domemaster-images' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openVrayDomemasterDownloads(): +def openVrayDomemainDownloads(): import webbrowser - # Domemaster Stereo Shader - Download Page + # Domemain Stereo Shader - Download Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/releases' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openVrayDomemasterBugReport(): +def openVrayDomemainBugReport(): import webbrowser - # Domemaster Stereo Shader - Bug Report Page + # Domemain Stereo Shader - Bug Report Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/issues' # Open URL in new window, raising the window if possible. @@ -171,7 +171,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -182,32 +182,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -215,7 +215,7 @@ def getSourceImagesPath(imageFileName): """ -Domemaster3D AutoSetup +Domemain3D AutoSetup ---------------------- A python function to create a fulldome stereo rig and test grid in Maya. @@ -228,7 +228,7 @@ def Autosetup(): createTestShapes() """ -Domemaster3D setDomeSamplingQuality +Domemain3D setDomeSamplingQuality ---------------------- A python function to setup the AA sampling quality. @@ -243,7 +243,7 @@ def setDomeSamplingQuality(): """ -Domemaster3D SetRenderRes +Domemain3D SetRenderRes ---------------------- A python function to setup the basic 2K x 2K square render settings. @@ -262,7 +262,7 @@ def setRenderRes(): fulldomeRenderHeight = 2048 #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr( 'defaultResolution.width', fulldomeRenderWidth ) cmds.setAttr( 'defaultResolution.height', fulldomeRenderHeight ) @@ -277,7 +277,7 @@ def setRenderRes(): cmds.setAttr( 'vraySettings.aspectRatio', 1) """ -Domemaster3D changeRenderRes +Domemain3D changeRenderRes ---------------------- A python function to change the basic resolution square render settings. @@ -296,7 +296,7 @@ def changeRenderRes( renderSizePx ): fulldomeRenderHeight = renderSizePx #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr( 'defaultResolution.width', fulldomeRenderWidth ) cmds.setAttr( 'defaultResolution.height', fulldomeRenderHeight ) @@ -314,7 +314,7 @@ def changeRenderRes( renderSizePx ): """ -Domemaster3D changeRenderResWH +Domemain3D changeRenderResWH ---------------------- A python function to change the basic resolution render settings. @@ -334,7 +334,7 @@ def changeRenderResWH( renderSizeW, renderSizeH): domeDeviceAspectRatio=domeRenderWidth/domeRenderHeight #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr( 'defaultResolution.width', domeRenderWidth ) cmds.setAttr( 'defaultResolution.height', domeRenderHeight ) @@ -352,7 +352,7 @@ def changeRenderResWH( renderSizeW, renderSizeH): """ -Domemaster3D Vray Settings Node Check +Domemain3D Vray Settings Node Check -------------------------------- A python function to create a VRaySettingsNode in Maya. """ @@ -369,7 +369,7 @@ def domeCreateVraySettingsNode(): """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -402,12 +402,12 @@ def createVrayFulldomeStereoRig(): from maya.app.stereo import stereoCameraRig - # Set the default rig to an VrayDomemasterStereoCamera - cmds.stereoRigManager(defaultRig='VrayDomemasterStereoCamera') + # Set the default rig to an VrayDomemainStereoCamera + cmds.stereoRigManager(defaultRig='VrayDomemainStereoCamera') # Add the camera rig to the scene - rig = stereoCameraRig.createStereoCameraRig('VrayDomemasterStereoCamera') - #[u'VrayDomeStereoCamera', u'VrayDomemasterStereoCameraLeft', u'VrayDomemasterStereoCameraRight'] + rig = stereoCameraRig.createStereoCameraRig('VrayDomemainStereoCamera') + #[u'VrayDomeStereoCamera', u'VrayDomemainStereoCameraLeft', u'VrayDomemainStereoCameraRight'] #Get the stereo camera rig shape nodes for the center/right/left cameras rig_center_shape_name = getObjectShapeNode(rig[0]) @@ -445,18 +445,18 @@ def createVrayFulldomeStereoRig(): #import maya.cmds as cmds #PreRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') #PostRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') #enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -532,19 +532,19 @@ def createVrayLatLongStereoRig(): #import maya.cmds as cmds #PreRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') #PostRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') #enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. @@ -567,7 +567,7 @@ def createLatLongGrid(): cmds.setAttr('domeGrid.Dome_Spans', 24) """ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya. @@ -603,27 +603,27 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGrid'): - print('Removing existing Domemaster3D object: domeGrid') + print('Removing existing Domemain3D object: domeGrid') cmds.select('domeGrid', replace=True) cmds.delete() if cmds.objExists('MeshGroup'): - print('Removing existing Domemaster3D object: MeshGroup') + print('Removing existing Domemain3D object: MeshGroup') cmds.select('MeshGroup', replace=True) cmds.delete() if cmds.objExists(domeGridSurface): - print('Removing existing Domemaster3D object: ' + domeGridSurface) + print('Removing existing Domemain3D object: ' + domeGridSurface) cmds.select(domeGridSurface, replace=True) cmds.delete() if cmds.objExists('domeGridToon'): - print('Removing existing Domemaster3D object: domeGridToon') + print('Removing existing Domemain3D object: domeGridToon') cmds.select('domeGridToon', replace=True) cmds.delete() if cmds.objExists('domeGrid_displayModeExpr'): - print('Removing existing Domemaster3D object: domeGrid_displayModeExpr') + print('Removing existing Domemain3D object: domeGrid_displayModeExpr') cmds.select('domeGrid_displayModeExpr', replace=True) cmds.delete() @@ -632,22 +632,22 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGridLinesSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShader') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShader') cmds.select('domeGridLinesSurfaceShader', replace=True) cmds.delete() if cmds.objExists('domeGridLinesSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShaderSG') cmds.select('domeGridLinesSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridSurfaceShaderSG') cmds.select('domeGridSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridSurfaceShader') + print('Removing existing Domemain3D object: domeGridSurfaceShader') cmds.select('domeGridSurfaceShader', replace=True) cmds.delete() @@ -1112,7 +1112,7 @@ def createDomeGrid(): """ -Domemaster3D createTestShapes +Domemain3D createTestShapes ---------------------- A python function to create a test sphere and cube in Maya. """ @@ -1121,17 +1121,17 @@ def createTestShapes(): import maya.cmds as cmds if cmds.objExists('domeTestLight'): - print('Removing existing Domemaster3D object: domeTestLight') + print('Removing existing Domemain3D object: domeTestLight') cmds.select('domeTestLight', replace=True) cmds.delete() if cmds.objExists('polyTestSphere'): - print('Removing existing Domemaster3D object: polyTestSphere') + print('Removing existing Domemain3D object: polyTestSphere') cmds.select('polyTestSphere', replace=True) cmds.delete() if cmds.objExists('polyTestCube'): - print('Removing existing Domemaster3D object: polyTestCube') + print('Removing existing Domemain3D object: polyTestCube') cmds.select('polyTestCube', replace=True) cmds.delete() diff --git a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomemasterStereoRig.py b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomemasterStereoRig.py index 42d3ecd..e292456 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomemasterStereoRig.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayDomemasterStereoRig.py @@ -1,5 +1,5 @@ """ - Vray DomemasterStereo Camera Rig V1.7 + Vray DomemainStereo Camera Rig V1.7 2015-05-08 11.46 pm by Andrew Hazelden andrew@andrewhazelden.com ----------------------------------------------------------------------- @@ -10,7 +10,7 @@ --------------- 2015-05-08 - Adapted the mental ray script to support Vray DomemasterStereo rendering + Adapted the mental ray script to support Vray DomemainStereo rendering Stereo Rig Script Notes @@ -65,7 +65,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - #Setup the base folder path for the Domemaster3D control maps + #Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -76,32 +76,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -112,7 +112,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Variables @@ -128,36 +128,36 @@ def createLensShaders(centerCam, leftCam, rightCam): print( "[Center Camera] " + centerCam + "\n" ) # Enable the Lens Shader's Vray Extra Attributes - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoOn', longName='vrayDomemasterStereoOn', attributeType='long', defaultValue=1) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoOn', longName='vrayDomemainStereoOn', attributeType='long', defaultValue=1) # Center Camera View - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoCamera', longName='vrayDomemasterStereoCamera', attributeType='long', defaultValue=0) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoFovAngle', longName='vrayDomemasterStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoParallaxDistance', longName='vrayDomemasterStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparation', longName='vrayDomemasterStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoForwardTilt', longName='vrayDomemasterStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoTiltCompensation', longName='vrayDomemasterStereoTiltCompensation', attributeType='long', defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoVerticalMode', longName='vrayDomemasterStereoVerticalMode', attributeType='long', defaultValue=0) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMap', longName='vrayDomemasterStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMapr', longName='vrayDomemasterStereoSeparationMapr', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMapg', longName='vrayDomemasterStereoSeparationMapg', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMapb', longName='vrayDomemasterStereoSeparationMapb', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMap', longName='vrayDomemasterStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMapr', longName='vrayDomemasterStereoHeadTurnMapr', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMapg', longName='vrayDomemasterStereoHeadTurnMapg', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMapb', longName='vrayDomemasterStereoHeadTurnMapb', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMap', longName='vrayDomemasterStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMapr', longName='vrayDomemasterStereoHeadTiltMapr', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=0.5 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMapg', longName='vrayDomemasterStereoHeadTiltMapg', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=0.5 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMapb', longName='vrayDomemasterStereoHeadTiltMapb', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=0.5 ) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoFlipX', longName='vrayDomemasterStereoFlipX', attributeType='long', defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoFlipY', longName='vrayDomemasterStereoFlipY', attributeType='long', defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoNeckOffset', longName='vrayDomemasterStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoCamera', longName='vrayDomemainStereoCamera', attributeType='long', defaultValue=0) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoFovAngle', longName='vrayDomemainStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoParallaxDistance', longName='vrayDomemainStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparation', longName='vrayDomemainStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoForwardTilt', longName='vrayDomemainStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoTiltCompensation', longName='vrayDomemainStereoTiltCompensation', attributeType='long', defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoVerticalMode', longName='vrayDomemainStereoVerticalMode', attributeType='long', defaultValue=0) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMap', longName='vrayDomemainStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMapr', longName='vrayDomemainStereoSeparationMapr', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMapg', longName='vrayDomemainStereoSeparationMapg', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMapb', longName='vrayDomemainStereoSeparationMapb', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMap', longName='vrayDomemainStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMapr', longName='vrayDomemainStereoHeadTurnMapr', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMapg', longName='vrayDomemainStereoHeadTurnMapg', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMapb', longName='vrayDomemainStereoHeadTurnMapb', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMap', longName='vrayDomemainStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMapr', longName='vrayDomemainStereoHeadTiltMapr', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=0.5 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMapg', longName='vrayDomemainStereoHeadTiltMapg', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=0.5 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMapb', longName='vrayDomemainStereoHeadTiltMapb', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=0.5 ) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoFlipX', longName='vrayDomemainStereoFlipX', attributeType='long', defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoFlipY', longName='vrayDomemainStereoFlipY', attributeType='long', defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoNeckOffset', longName='vrayDomemainStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) # ------------------------------------------------------------------------- @@ -169,36 +169,36 @@ def createLensShaders(centerCam, leftCam, rightCam): print( "[Left Camera Shape] " + leftCamShape + "\n" ) # Enable the Lens Shader's Vray Extra Attributes - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoOn', longName='vrayDomemasterStereoOn', attributeType='long', defaultValue=1) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoOn', longName='vrayDomemainStereoOn', attributeType='long', defaultValue=1) # Left Camera View - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoCamera', longName='vrayDomemasterStereoCamera', attributeType='long', defaultValue=1) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoCamera', longName='vrayDomemainStereoCamera', attributeType='long', defaultValue=1) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoFovAngle', longName='vrayDomemasterStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoParallaxDistance', longName='vrayDomemasterStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparation', longName='vrayDomemasterStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoForwardTilt', longName='vrayDomemasterStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoTiltCompensation', longName='vrayDomemasterStereoTiltCompensation', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoVerticalMode', longName='vrayDomemasterStereoVerticalMode', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoFovAngle', longName='vrayDomemainStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoParallaxDistance', longName='vrayDomemainStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparation', longName='vrayDomemainStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoForwardTilt', longName='vrayDomemainStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoTiltCompensation', longName='vrayDomemainStereoTiltCompensation', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoVerticalMode', longName='vrayDomemainStereoVerticalMode', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMap', longName='vrayDomemasterStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMapr', longName='vrayDomemasterStereoSeparationMapr', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMapg', longName='vrayDomemasterStereoSeparationMapg', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMapb', longName='vrayDomemasterStereoSeparationMapb', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMap', longName='vrayDomemainStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMapr', longName='vrayDomemainStereoSeparationMapr', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMapg', longName='vrayDomemainStereoSeparationMapg', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMapb', longName='vrayDomemainStereoSeparationMapb', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMap', longName='vrayDomemasterStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMapr', longName='vrayDomemasterStereoHeadTurnMapr', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMapg', longName='vrayDomemasterStereoHeadTurnMapg', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMapb', longName='vrayDomemasterStereoHeadTurnMapb', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMap', longName='vrayDomemainStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMapr', longName='vrayDomemainStereoHeadTurnMapr', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMapg', longName='vrayDomemainStereoHeadTurnMapg', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMapb', longName='vrayDomemainStereoHeadTurnMapb', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMap', longName='vrayDomemasterStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMapr', longName='vrayDomemasterStereoHeadTiltMapr', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMapg', longName='vrayDomemasterStereoHeadTiltMapg', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMapb', longName='vrayDomemasterStereoHeadTiltMapb', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMap', longName='vrayDomemainStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMapr', longName='vrayDomemainStereoHeadTiltMapr', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMapg', longName='vrayDomemainStereoHeadTiltMapg', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMapb', longName='vrayDomemainStereoHeadTiltMapb', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoFlipX', longName='vrayDomemasterStereoFlipX', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoFlipY', longName='vrayDomemasterStereoFlipY', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoNeckOffset', longName='vrayDomemasterStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoFlipX', longName='vrayDomemainStereoFlipX', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoFlipY', longName='vrayDomemainStereoFlipY', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoNeckOffset', longName='vrayDomemainStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) # ------------------------------------------------------------------------- @@ -210,67 +210,67 @@ def createLensShaders(centerCam, leftCam, rightCam): print( "[Right Camera Shape] " + rightCamShape + "\n" ) # Enable the Lens Shader's Vray Extra Attributes - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoOn', longName='vrayDomemasterStereoOn', attributeType='long', defaultValue=1) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoOn', longName='vrayDomemainStereoOn', attributeType='long', defaultValue=1) # Center Camera View - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoCamera', longName='vrayDomemasterStereoCamera', attributeType='long', defaultValue=2) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoFovAngle', longName='vrayDomemasterStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoParallaxDistance', longName='vrayDomemasterStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparation', longName='vrayDomemasterStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoForwardTilt', longName='vrayDomemasterStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoTiltCompensation', longName='vrayDomemasterStereoTiltCompensation', attributeType='long', defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoVerticalMode', longName='vrayDomemasterStereoVerticalMode', attributeType='long', defaultValue=0) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMap', longName='vrayDomemasterStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMapr', longName='vrayDomemasterStereoSeparationMapr', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMapg', longName='vrayDomemasterStereoSeparationMapg', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMapb', longName='vrayDomemasterStereoSeparationMapb', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMap', longName='vrayDomemasterStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMapr', longName='vrayDomemasterStereoHeadTurnMapr', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMapg', longName='vrayDomemasterStereoHeadTurnMapg', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMapb', longName='vrayDomemasterStereoHeadTurnMapb', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMap', longName='vrayDomemasterStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMapr', longName='vrayDomemasterStereoHeadTiltMapr', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMapg', longName='vrayDomemasterStereoHeadTiltMapg', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMapb', longName='vrayDomemasterStereoHeadTiltMapb', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoFlipX', longName='vrayDomemasterStereoFlipX', attributeType='long', defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoFlipY', longName='vrayDomemasterStereoFlipY', attributeType='long', defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoNeckOffset', longName='vrayDomemasterStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoCamera', longName='vrayDomemainStereoCamera', attributeType='long', defaultValue=2) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoFovAngle', longName='vrayDomemainStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoParallaxDistance', longName='vrayDomemainStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparation', longName='vrayDomemainStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoForwardTilt', longName='vrayDomemainStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoTiltCompensation', longName='vrayDomemainStereoTiltCompensation', attributeType='long', defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoVerticalMode', longName='vrayDomemainStereoVerticalMode', attributeType='long', defaultValue=0) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMap', longName='vrayDomemainStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMapr', longName='vrayDomemainStereoSeparationMapr', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMapg', longName='vrayDomemainStereoSeparationMapg', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMapb', longName='vrayDomemainStereoSeparationMapb', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMap', longName='vrayDomemainStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMapr', longName='vrayDomemainStereoHeadTurnMapr', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMapg', longName='vrayDomemainStereoHeadTurnMapg', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMapb', longName='vrayDomemainStereoHeadTurnMapb', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMap', longName='vrayDomemainStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMapr', longName='vrayDomemainStereoHeadTiltMapr', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMapg', longName='vrayDomemainStereoHeadTiltMapg', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMapb', longName='vrayDomemainStereoHeadTiltMapb', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoFlipX', longName='vrayDomemainStereoFlipX', attributeType='long', defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoFlipY', longName='vrayDomemainStereoFlipY', attributeType='long', defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoNeckOffset', longName='vrayDomemainStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) # --------------------------------------------------------------------- # Link the common left and right camera attributes to the center camera # --------------------------------------------------------------------- # Link the left camera attributes - cmds.connectAttr( centerCam+'.vrayDomemasterStereoOn', leftCam+'.vrayDomemasterStereoOn', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFovAngle', leftCam+'.vrayDomemasterStereoFovAngle', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoParallaxDistance', leftCam+'.vrayDomemasterStereoParallaxDistance', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoSeparation', leftCam+'.vrayDomemasterStereoSeparation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoForwardTilt', leftCam+'.vrayDomemasterStereoForwardTilt', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoTiltCompensation', leftCam+'.vrayDomemasterStereoTiltCompensation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoVerticalMode', leftCam+'.vrayDomemasterStereoVerticalMode', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipX', leftCam+'.vrayDomemasterStereoFlipX', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipY', leftCam+'.vrayDomemasterStereoFlipY', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoNeckOffset', leftCam+'.vrayDomemasterStereoNeckOffset', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoOn', leftCam+'.vrayDomemainStereoOn', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFovAngle', leftCam+'.vrayDomemainStereoFovAngle', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoParallaxDistance', leftCam+'.vrayDomemainStereoParallaxDistance', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoSeparation', leftCam+'.vrayDomemainStereoSeparation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoForwardTilt', leftCam+'.vrayDomemainStereoForwardTilt', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoTiltCompensation', leftCam+'.vrayDomemainStereoTiltCompensation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoVerticalMode', leftCam+'.vrayDomemainStereoVerticalMode', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipX', leftCam+'.vrayDomemainStereoFlipX', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipY', leftCam+'.vrayDomemainStereoFlipY', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoNeckOffset', leftCam+'.vrayDomemainStereoNeckOffset', force=True ) # Link the right camera attributes - cmds.connectAttr( centerCam+'.vrayDomemasterStereoOn', rightCam+'.vrayDomemasterStereoOn', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFovAngle', rightCam+'.vrayDomemasterStereoFovAngle', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoParallaxDistance', rightCam+'.vrayDomemasterStereoParallaxDistance', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoSeparation', rightCam+'.vrayDomemasterStereoSeparation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoForwardTilt', rightCam+'.vrayDomemasterStereoForwardTilt', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoTiltCompensation', rightCam+'.vrayDomemasterStereoTiltCompensation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoVerticalMode', rightCam+'.vrayDomemasterStereoVerticalMode', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipX', rightCam+'.vrayDomemasterStereoFlipX', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipY', rightCam+'.vrayDomemasterStereoFlipY', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoNeckOffset', rightCam+'.vrayDomemasterStereoNeckOffset', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoOn', rightCam+'.vrayDomemainStereoOn', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFovAngle', rightCam+'.vrayDomemainStereoFovAngle', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoParallaxDistance', rightCam+'.vrayDomemainStereoParallaxDistance', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoSeparation', rightCam+'.vrayDomemainStereoSeparation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoForwardTilt', rightCam+'.vrayDomemainStereoForwardTilt', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoTiltCompensation', rightCam+'.vrayDomemainStereoTiltCompensation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoVerticalMode', rightCam+'.vrayDomemainStereoVerticalMode', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipX', rightCam+'.vrayDomemainStereoFlipX', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipY', rightCam+'.vrayDomemainStereoFlipY', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoNeckOffset', rightCam+'.vrayDomemainStereoNeckOffset', force=True ) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -279,8 +279,8 @@ def createLensShaders(centerCam, leftCam, rightCam): # Link the center camera lens shader to the Maya camera rig stereo3d settings # This enables real-time 3D previews in the viewport # --------------------------------------------------------------------- - cmds.connectAttr( centerCam+'.vrayDomemasterStereoParallaxDistance', centerCam+'.zeroParallax', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoSeparation', centerCam+'.interaxialSeparation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoParallaxDistance', centerCam+'.zeroParallax', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoSeparation', centerCam+'.interaxialSeparation', force=True ) #Turn off the Stereo 3D effect on the native Maya camera rig # This skips the need for a pre-render and post-render mel script. @@ -294,25 +294,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr( slave + '.renderable', 0 ) + cmds.setAttr( subordinate + '.renderable', 0 ) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -327,24 +327,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False ) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False ) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr( slave + '.' + attr, keyable=False ) + cmds.setAttr( subordinate + '.' + attr, keyable=False ) - return slave + return subordinate def __createFrustumNode( mainCam, parent, baseName ): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -367,7 +367,7 @@ def __createFrustumNode( mainCam, parent, baseName ): return frustum -def createRig(unusedBasename='VrayDomemasterStereoCamera'): +def createRig(unusedBasename='VrayDomemainStereoCamera'): """ Creates a new stereo rig. Uses a series of Maya commands to build a stereo rig. @@ -380,11 +380,11 @@ def createRig(unusedBasename='VrayDomemasterStereoCamera'): import string import random randomLetterPostfix = random.choice(string.ascii_uppercase) - #print ("The StereoCameraRig Random letter extension is: VrayDomemasterStereoCamera" + randomLetterPostfix) + #print ("The StereoCameraRig Random letter extension is: VrayDomemainStereoCamera" + randomLetterPostfix) #Put a temp throwaway value of unusedBasename as the createRig input variable #Define basename here instead of the regular createRig() variable - basename='VrayDomemasterStereoCamera' + randomLetterPostfix + basename='VrayDomemainStereoCamera' + randomLetterPostfix # Create the root of the rig # @@ -420,8 +420,8 @@ def createRig(unusedBasename='VrayDomemasterStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # @@ -472,7 +472,7 @@ def createRig(unusedBasename='VrayDomemasterStereoCamera'): cmds.addAttr( root, longName='Cam_Locator_Scale', niceName='Cam Locator Scale', attributeType='double', defaultValue=1.0, minValue=0.01) cmds.setAttr( root+'.Cam_Locator_Scale', keyable=False, channelBox=True) - # Result: Connected VrayDomemasterStereoCamera.Cam_Locator_Scale to VrayDomemasterStereoCameraLeftShape.locatorScale. // + # Result: Connected VrayDomemainStereoCamera.Cam_Locator_Scale to VrayDomemainStereoCameraLeftShape.locatorScale. // cmds.connectAttr ( root+'.Cam_Locator_Scale', centerCam+'.locatorScale', force=True) cmds.connectAttr ( root+'.Cam_Locator_Scale', leftCam+'.locatorScale', force=True) cmds.connectAttr ( root+'.Cam_Locator_Scale', rightCam+'.locatorScale', force=True) @@ -490,7 +490,7 @@ def attachToCameraSet( *args, **keywords ): if not keywords.has_key( 'allDone' ): stereoCameraSets.parentToLayer0Rig( *args, cameraSet=keywords['cameraSet'] ) -rigTypeName = 'VrayDomemasterStereoCamera' +rigTypeName = 'VrayDomemainStereoCamera' def registerThisRig(): """ @@ -500,8 +500,8 @@ def registerThisRig(): mayaVersion = getMayaVersionDome() if (mayaVersion >= 2011): global rigTypeName - cmds.stereoRigManager( add=[rigTypeName, 'Python', 'vrayDomemasterStereoRig.createRig'] ) - cmds.stereoRigManager( cameraSetFunc=[rigTypeName, 'vrayDomemasterStereoRig.attachToCameraSet'] ) + cmds.stereoRigManager( add=[rigTypeName, 'Python', 'vrayDomemainStereoRig.createRig'] ) + cmds.stereoRigManager( cameraSetFunc=[rigTypeName, 'vrayDomemainStereoRig.attachToCameraSet'] ) else: cmds.stereoRigManager(add=['StereoCamera', 'Python', 'maya.app.stereo.stereoCameraDefaultRig.createRig']) diff --git a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayLatLongStereoRig.py b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayLatLongStereoRig.py index b94a81b..de3fe5a 100755 --- a/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayLatLongStereoRig.py +++ b/Domemaster3D Installer/installer files/Domemaster3D/vray/maya/scripts/vrayLatLongStereoRig.py @@ -65,7 +65,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - #Setup the base folder path for the Domemaster3D control maps + #Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -76,32 +76,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -112,7 +112,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Variables @@ -242,7 +242,7 @@ def createLensShaders(centerCam, leftCam, rightCam): # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -266,25 +266,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr( slave + '.renderable', 0 ) + cmds.setAttr( subordinate + '.renderable', 0 ) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -299,24 +299,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False ) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False ) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr( slave + '.' + attr, keyable=False ) + cmds.setAttr( subordinate + '.' + attr, keyable=False ) - return slave + return subordinate def __createFrustumNode( mainCam, parent, baseName ): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -392,8 +392,8 @@ def createRig(unusedBasename='VrayLatLongStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterStereoTemplate.py b/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterStereoTemplate.py index 9317d80..c4e6356 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterStereoTemplate.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterStereoTemplate.py @@ -1,4 +1,4 @@ -# Domemaster Stereo Shader Template File +# Domemain Stereo Shader Template File # 2015-01-31 09.29 am import pymel.core as pm @@ -6,20 +6,20 @@ 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") @@ -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") diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterWxHTemplate.py b/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterWxHTemplate.py index 26fb11a..36628c2 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterWxHTemplate.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/ae/DomemasterWxHTemplate.py @@ -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 @@ -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") @@ -43,4 +43,4 @@ def setup(self): self.endLayout() -templates.registerTranslatorUI(DomemasterWxHTemplate, "camera", "DomemasterWxH") +templates.registerTranslatorUI(DomemainWxHTemplate, "camera", "DomemainWxH") diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/ae/__init__.py b/arnold/Arnold-DomemasterStereo-src/mtoa/ae/__init__.py index 532bee6..c5e324f 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/ae/__init__.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/ae/__init__.py @@ -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 """ diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/__init__.py b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/__init__.py index 532bee6..c5e324f 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/__init__.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/__init__.py @@ -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 """ diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeCamera.py b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeCamera.py index 1949af3..b3fcf3d 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeCamera.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeCamera.py @@ -1,5 +1,5 @@ """ -Arnold Domemaster3D Camera Setup Script V2.1.2 +Arnold Domemain3D Camera Setup Script V2.1.2 2016-09-17 05.27 PM Created by Andrew Hazelden andrew@andrewhazelden.com @@ -22,7 +22,7 @@ Updated Arnold camera shape names -Updated the DomemasterWxH function name +Updated the DomemainWxH function name Version 1.7.4 @@ -57,7 +57,7 @@ ------------------------------------------------------------------------------ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig A python function to create a fulldome stereo rig in Maya. Run using the command: @@ -66,29 +66,29 @@ arnoldDomeCamera.createArnoldFulldomeStereoRig() ------------------------------------------------------------------------------ -Domemaster3D Fulldome FOV Camera +Domemain3D Fulldome FOV Camera -A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemasterStereo based camera. +A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemainStereo based camera. Run using the command: import arnoldDomeCamera as arnoldDomeCamera reload(arnoldDomeCamera) -arnoldDomeCamera.createArnoldDomemasterFOV_Camera() +arnoldDomeCamera.createArnoldDomemainFOV_Camera() ------------------------------------------------------------------------------ -Domemaster3D Fulldome WxH Camera +Domemain3D Fulldome WxH Camera A python function to create a fulldome 2D camera in Maya. Run using the command: import arnoldDomeCamera as arnoldDomeCamera reload(arnoldDomeCamera) -arnoldDomeCamera.createArnoldDomemasterWxH_Camera() +arnoldDomeCamera.createArnoldDomemainWxH_Camera() ------------------------------------------------------------------------------ -Domemaster3D createArnoldLatLong_Camera +Domemain3D createArnoldLatLong_Camera A python function to create a 2D LatLong / Equirectangular / Spherical camera. This option uses the LatLong Stereo shader applied in a 2D center camera viewing mode. Run using the command: @@ -98,7 +98,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createArnoldLatLongStereoRig +Domemain3D createArnoldLatLongStereoRig A python function to create a stereoscopic latitude longitude lens shader and attach it to a camera. Run using the command: @@ -108,7 +108,7 @@ ------------------------------------------------------------------------------ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background A python function to create a hemispherical yellow test grid in Maya. Run using the command: @@ -118,7 +118,7 @@ ------------------------------------------------------------------------------ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. Run using the command: @@ -127,7 +127,7 @@ arnoldDomeCamera.createLatLongGrid() ------------------------------------------------------------------------------ -Domemaster3D createTestShapes +Domemain3D createTestShapes A python function to create a test sphere and cube in Maya. Run using the command: @@ -137,7 +137,7 @@ ------------------------------------------------------------------------------ -Domemaster3D getMayaVersionDome +Domemain3D getMayaVersionDome A python function to check what Maya version is active. import arnoldDomeCamera @@ -146,62 +146,62 @@ ------------------------------------------------------------------------------ -Show the Domemaster Wiki +Show the Domemain Wiki -------------------------------- Loads the wiki page in your default web browser Run using the command: -print("Open the Domemaster Wiki Page") +print("Open the Domemain Wiki Page") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterWiki() +arnoldDomeCamera.openDomemainWiki() -print("Open the Domemaster NING Group") +print("Open the Domemain NING Group") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterNing() +arnoldDomeCamera.openDomemainNing() -print("Open the Domemaster Downloads Page") +print("Open the Domemain Downloads Page") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterDownloads() +arnoldDomeCamera.openDomemainDownloads() -print("Open the Domemaster Bug Reporter") +print("Open the Domemain Bug Reporter") import arnoldDomeCamera as arnoldDomeCamera -arnoldDomeCamera.openDomemasterBugReport() +arnoldDomeCamera.openDomemainBugReport() """ -def openDomemasterWiki(): +def openDomemainWiki(): import webbrowser - # Domemaster Stereo Shader - Wiki Page + # Domemain Stereo Shader - Wiki Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/wiki' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openArnoldDomemasterNing(): +def openArnoldDomemainNing(): import webbrowser - # Domemaster NING Group + # Domemain NING Group url = 'http://fulldome.ning.com/forum/topics/stereoscopic-domemaster-images' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openArnoldDomemasterDownloads(): +def openArnoldDomemainDownloads(): import webbrowser - # Domemaster Stereo Shader - Download Page + # Domemain Stereo Shader - Download Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/releases' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openArnoldDomemasterBugReport(): +def openArnoldDomemainBugReport(): import webbrowser - # Domemaster Stereo Shader - Bug Report Page + # Domemain Stereo Shader - Bug Report Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/issues' # Open URL in new window, raising the window if possible. @@ -219,7 +219,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -230,32 +230,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR')+ "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files(x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files(x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system()+ " System]" + print "[Domemain3D is running on a " + platform.system()+ " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -263,7 +263,7 @@ def getSourceImagesPath(imageFileName): """ -Domemaster3D AutoSetup +Domemain3D AutoSetup ---------------------- A python function to create a fulldome stereo rig and test grid in Maya. @@ -277,7 +277,7 @@ def Autosetup(): """ -Domemaster3D setDomeSamplingQuality +Domemain3D setDomeSamplingQuality ---------------------- A python function to setup the AA sampling quality. @@ -292,7 +292,7 @@ def setDomeSamplingQuality(): """ -Domemaster3D SetRenderRes +Domemain3D SetRenderRes ---------------------- A python function to setup the basic 2K x 2K square render settings. @@ -311,7 +311,7 @@ def setRenderRes(): fulldomeRenderHeight = 2048 #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', fulldomeRenderWidth) cmds.setAttr('defaultResolution.height', fulldomeRenderHeight) @@ -321,7 +321,7 @@ def setRenderRes(): """ -Domemaster3D changeRenderRes +Domemain3D changeRenderRes ---------------------- A python function to change the basic resolution square render settings. @@ -340,7 +340,7 @@ def changeRenderRes(renderSizePx): fulldomeRenderHeight = renderSizePx #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', fulldomeRenderWidth) cmds.setAttr('defaultResolution.height', fulldomeRenderHeight) @@ -351,7 +351,7 @@ def changeRenderRes(renderSizePx): """ -Domemaster3D changeRenderResWH +Domemain3D changeRenderResWH ---------------------- A python function to change the basic resolution render settings. @@ -371,7 +371,7 @@ def changeRenderResWH(renderSizeW, renderSizeH): domeDeviceAspectRatio=domeRenderWidth/domeRenderHeight #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr('defaultResolution.width', domeRenderWidth) cmds.setAttr('defaultResolution.height', domeRenderHeight) @@ -383,7 +383,7 @@ def changeRenderResWH(renderSizeW, renderSizeH): """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -454,18 +454,18 @@ def createArnoldFulldomeStereoRig(): #import maya.cmds as cmds # PreRender MEL: - #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') # PostRender MEL: - #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') # Enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -535,22 +535,22 @@ def createArnoldLatLongStereoRig(): #import maya.cmds as cmds # PreRender MEL: - #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') # PostRender MEL: - #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr('defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') # Enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D createDomemasterFOV_Camera +Domemain3D createDomemainFOV_Camera ---------------------- -A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemasterStereo based camera. +A python function to create a fulldome 2D FOV style camera in Maya using a single Arnold DomemainStereo based camera. """ -def createArnoldDomemasterFOV_Camera(): +def createArnoldDomemainFOV_Camera(): import maya.cmds as cmds #import maya.mel as mel @@ -562,18 +562,18 @@ def createArnoldDomemasterFOV_Camera(): # --------------------------------------------------------------------- # Arnold camera type - cameraType = 'DomemasterStereo' + cameraType = 'DomemainStereo' # --------------------------------------------------------------------- # Create the stereo rig # --------------------------------------------------------------------- # Create a camera and get the shape name. - cameraName = cmds.camera(name='ArnoldDomemasterFOV_Camera') + cameraName = cmds.camera(name='ArnoldDomemainFOV_Camera') cameraShape = cameraName[1] # --------------------------------------------------------------------- - # Assign the Arnold DomemasterStereo camera type + # Assign the Arnold DomemainStereo camera type # --------------------------------------------------------------------- cmds.setAttr(cameraShape+'.ai_translator', cameraType, type='string') @@ -598,7 +598,7 @@ def createArnoldDomemasterFOV_Camera(): cmds.setAttr(cameraName[0]+'.rotateZ', 0) # Changes the render settings to set the stereo camera to be a renderable camera - cmds.setAttr(cameraShape+'.renderable', 1)# ArnoldDomemasterFOV_Camera + cmds.setAttr(cameraShape+'.renderable', 1)# ArnoldDomemainFOV_Camera cmds.setAttr('topShape.renderable', 0) cmds.setAttr('sideShape.renderable', 0) cmds.setAttr('frontShape.renderable', 0) @@ -618,11 +618,11 @@ def createArnoldDomemasterFOV_Camera(): """ -Domemaster3D createDomemasterWxH_Camera +Domemain3D createDomemainWxH_Camera ---------------------- -A python function to set up an Arnold DomemasterWxH based camera. +A python function to set up an Arnold DomemainWxH based camera. """ -def createArnoldDomemasterWxH_Camera(): +def createArnoldDomemainWxH_Camera(): import maya.cmds as cmds #import maya.mel as mel @@ -634,18 +634,18 @@ def createArnoldDomemasterWxH_Camera(): # --------------------------------------------------------------------- # Arnold camera type - cameraType = 'DomemasterWxH' + cameraType = 'DomemainWxH' # --------------------------------------------------------------------- # Create the stereo rig # --------------------------------------------------------------------- # Create a camera and get the shape name. - cameraName = cmds.camera(name='ArnoldDomemasterWxH_Camera') + cameraName = cmds.camera(name='ArnoldDomemainWxH_Camera') cameraShape = cameraName[1] # --------------------------------------------------------------------- - # Assign the Arnold domemasterWxH camera type + # Assign the Arnold domemainWxH camera type # --------------------------------------------------------------------- cmds.setAttr(cameraShape+'.ai_translator', cameraType, type='string') @@ -683,7 +683,7 @@ def createArnoldDomemasterWxH_Camera(): """ -Domemaster3D createArnoldLatLong_Camera +Domemain3D createArnoldLatLong_Camera ---------------------- A python function to create a 2D LatLong / Equirectangular / Spherical camera. This option uses the LatLong Stereo shader applied in a 2D center camera viewing mode. """ @@ -758,7 +758,7 @@ def createArnoldLatLong_Camera(): """ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. @@ -782,7 +782,7 @@ def createLatLongGrid(): """ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya. @@ -818,27 +818,27 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGrid'): - print('Removing existing Domemaster3D object: domeGrid') + print('Removing existing Domemain3D object: domeGrid') cmds.select('domeGrid', replace=True) cmds.delete() if cmds.objExists('MeshGroup'): - print('Removing existing Domemaster3D object: MeshGroup') + print('Removing existing Domemain3D object: MeshGroup') cmds.select('MeshGroup', replace=True) cmds.delete() if cmds.objExists(domeGridSurface): - print('Removing existing Domemaster3D object: ' + domeGridSurface) + print('Removing existing Domemain3D object: ' + domeGridSurface) cmds.select(domeGridSurface, replace=True) cmds.delete() if cmds.objExists('domeGridToon'): - print('Removing existing Domemaster3D object: domeGridToon') + print('Removing existing Domemain3D object: domeGridToon') cmds.select('domeGridToon', replace=True) cmds.delete() if cmds.objExists('domeGrid_displayModeExpr'): - print('Removing existing Domemaster3D object: domeGrid_displayModeExpr') + print('Removing existing Domemain3D object: domeGrid_displayModeExpr') cmds.select('domeGrid_displayModeExpr', replace=True) cmds.delete() @@ -847,22 +847,22 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGridLinesSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShader') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShader') cmds.select('domeGridLinesSurfaceShader', replace=True) cmds.delete() if cmds.objExists('domeGridLinesSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShaderSG') cmds.select('domeGridLinesSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridSurfaceShaderSG') cmds.select('domeGridSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridSurfaceShader') + print('Removing existing Domemain3D object: domeGridSurfaceShader') cmds.select('domeGridSurfaceShader', replace=True) cmds.delete() @@ -1326,7 +1326,7 @@ def createDomeGrid(): """ -Domemaster3D createTestShapes +Domemain3D createTestShapes ---------------------- A python function to create a test sphere and cube in Maya. """ @@ -1335,17 +1335,17 @@ def createTestShapes(): import maya.cmds as cmds if cmds.objExists('domeTestLight'): - print('Removing existing Domemaster3D object: domeTestLight') + print('Removing existing Domemain3D object: domeTestLight') cmds.select('domeTestLight', replace=True) cmds.delete() if cmds.objExists('polyTestSphere'): - print('Removing existing Domemaster3D object: polyTestSphere') + print('Removing existing Domemain3D object: polyTestSphere') cmds.select('polyTestSphere', replace=True) cmds.delete() if cmds.objExists('polyTestCube'): - print('Removing existing Domemaster3D object: polyTestCube') + print('Removing existing Domemain3D object: polyTestCube') cmds.select('polyTestCube', replace=True) cmds.delete() diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeStereoRig.py b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeStereoRig.py index 0926d0c..64bd906 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeStereoRig.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldDomeStereoRig.py @@ -1,5 +1,5 @@ """ - Arnold Domemaster3D Fulldome Stereo Rig V2.1.2 + Arnold Domemain3D Fulldome Stereo Rig V2.1.2 2016-09-17 by Andrew Hazelden andrew@andrewhazelden.com ----------------------------------------------------------------------- @@ -70,7 +70,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - #Setup the base folder path for the Domemaster3D control maps + #Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -81,32 +81,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -117,7 +117,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Variables @@ -126,7 +126,7 @@ def createLensShaders(centerCam, leftCam, rightCam): # tiltMapFileTexture = getSourceImagesPath("head_tilt_map.png") # Arnold camera type - cameraType = 'DomemasterStereo' + cameraType = 'DomemainStereo' # Check if Arnold is loaded before linking the attributes if (cmds.pluginInfo("mtoa",q=True,loaded=True)): @@ -162,7 +162,7 @@ def createLensShaders(centerCam, leftCam, rightCam): cmds.connectAttr(leftCam+'.aiFlipRayY', rightCam+'.aiFlipRayY', force=True) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -185,25 +185,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr(slave + '.renderable', 0) + cmds.setAttr(subordinate + '.renderable', 0) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -218,24 +218,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr(slave + '.' + attr, keyable=False) + cmds.setAttr(subordinate + '.' + attr, keyable=False) - return slave + return subordinate def __createFrustumNode(mainCam, parent, baseName): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -311,8 +311,8 @@ def createRig(unusedBasename='ArnoldDomeStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # @@ -338,7 +338,7 @@ def createRig(unusedBasename='ArnoldDomeStereoCamera'): #--------------------------------------------------------------------------- - # Custom Domemaster3D Setup code + # Custom Domemain3D Setup code #--------------------------------------------------------------------------- # 4 mm focal length = 160 degree FOV #cmds.setAttr(centerCam + '.focalLength', 4 ) diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldLatLongStereoRig.py b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldLatLongStereoRig.py index fa24a3b..7ca768f 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldLatLongStereoRig.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/arnoldLatLongStereoRig.py @@ -71,7 +71,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - # Setup the base folder path for the Domemaster3D control maps + # Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Check OS platform for Windows/Mac/Linux Paths @@ -82,32 +82,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -118,7 +118,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - # Set up the base folder path for the Domemaster3D control maps + # Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- # Variables @@ -162,7 +162,7 @@ def createLensShaders(centerCam, leftCam, rightCam): cmds.connectAttr( leftCam+'.aiFlipRayY', rightCam+'.aiFlipRayY', force=True ) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -186,25 +186,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr( slave + '.renderable', 0 ) + cmds.setAttr( subordinate + '.renderable', 0 ) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -219,24 +219,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False ) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False ) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr( slave + '.' + attr, keyable=False ) + cmds.setAttr( subordinate + '.' + attr, keyable=False ) - return slave + return subordinate def __createFrustumNode( mainCam, parent, baseName ): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -312,8 +312,8 @@ def createRig(unusedBasename='ArnoldLatLongStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # diff --git a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/userSetup.py b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/userSetup.py index f94a375..b189a47 100755 --- a/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/userSetup.py +++ b/arnold/Arnold-DomemasterStereo-src/mtoa/scripts/userSetup.py @@ -1,5 +1,5 @@ """ -Arnold Domemaster3D Startup Code Version 2.1 +Arnold Domemain3D Startup Code Version 2.1 2016-07-28 12.51 PM by Andrew Hazelden """ @@ -100,12 +100,12 @@ def addNewArnoldLatLongRig(): else: print ("An ArnoldLatLongStereoCamera rig already exists in the stereoRigManager.") -# Load the Arnold Domemaster3D menu system in the rendering menu set +# Load the Arnold Domemain3D menu system in the rendering menu set def addNewArnoldDomeMenu(): import maya.mel as mel - print("Loading the ArnoldDomemaster3D menu items...") + print("Loading the ArnoldDomemain3D menu items...") mel.eval('source "arnoldDomeMenu.mel";') - mel.eval('createArnoldDomemaster3DMenu();') + mel.eval('createArnoldDomemain3DMenu();') # Load the new stereo Arnold stereo rigs @@ -118,14 +118,14 @@ def deferredLoadArnoldRig(): cmds.evalDeferred("addNewArnoldDomeRig()") #---------------------------------------------------------------------------- -# Main Domemaster3D Start up function +# Main Domemain3D Start up function #---------------------------------------------------------------------------- # Stop Maya from running the python code twice by looking if it is __main__ if (__name__ == '__main__'): import maya.cmds as cmds - # Add the Domemaster3D Stereo & LatLong_Stereo camera Rig + # Add the Domemain3D Stereo & LatLong_Stereo camera Rig #import arnoldDomeStereoRig #import arnoldLatLongStereoRig @@ -139,17 +139,17 @@ def deferredLoadArnoldRig(): isMayaInBatchMode = maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kBatch # isMayaInBatchMode = 1 means Batch Mode, 0 means GUI mode if(isMayaInBatchMode == False): - print("The Arnold Domemaster3D Shader is running in GUI mode.") + print("The Arnold Domemain3D Shader is running in GUI mode.") # Make sure the stereo plug-in is loaded cmds.evalDeferred("cmds.loadPlugin('stereoCamera', quiet=True)") # Load the new stereo Arnold stereo rigs cmds.evalDeferred("deferredLoadArnoldRig()") - # Load the Domemaster3D menu system in the rendering menu set + # Load the Domemain3D menu system in the rendering menu set cmds.evalDeferred("addNewArnoldDomeMenu()") else: - print("The Arnold Domemaster3D Shader is running in batch mode.") + print("The Arnold Domemain3D Shader is running in batch mode.") @@ -160,5 +160,5 @@ def deferredLoadArnoldRig(): # pass # --------------------------------------------------------------------- -# End Domemaster3D Startup Code +# End Domemain3D Startup Code # --------------------------------------------------------------------- diff --git a/arnold/Arnold-DomemasterStereo-src/source/DomemasterStereo/DomemasterStereoTemplate.py b/arnold/Arnold-DomemasterStereo-src/source/DomemasterStereo/DomemasterStereoTemplate.py index fe87ad7..cd6a64c 100755 --- a/arnold/Arnold-DomemasterStereo-src/source/DomemasterStereo/DomemasterStereoTemplate.py +++ b/arnold/Arnold-DomemasterStereo-src/source/DomemasterStereo/DomemasterStereoTemplate.py @@ -1,4 +1,4 @@ -# Domemaster Stereo Shader Template File +# Domemain Stereo Shader Template File # 2014-10-31 6:38 pm import pymel.core as pm @@ -6,20 +6,20 @@ 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") @@ -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") diff --git a/arnold/Arnold-DomemasterStereo-src/source/DomemasterWxH/DomemasterWxHTemplate.py b/arnold/Arnold-DomemasterStereo-src/source/DomemasterWxH/DomemasterWxHTemplate.py index b9b8c66..398fa9f 100755 --- a/arnold/Arnold-DomemasterStereo-src/source/DomemasterWxH/DomemasterWxHTemplate.py +++ b/arnold/Arnold-DomemasterStereo-src/source/DomemasterWxH/DomemasterWxHTemplate.py @@ -1,4 +1,4 @@ -# Domemaster WxH Shader Template File +# Domemain WxH Shader Template File # 2014-11-06 10.44 am import pymel.core as pm @@ -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") @@ -43,4 +43,4 @@ def setup(self): self.endLayout() -templates.registerTranslatorUI(DomemasterWxHTemplate, "camera", "DomemasterWxH") +templates.registerTranslatorUI(DomemainWxHTemplate, "camera", "DomemainWxH") diff --git a/vray/maya/scripts/__init__.py b/vray/maya/scripts/__init__.py index 059117e..afa2d76 100755 --- a/vray/maya/scripts/__init__.py +++ b/vray/maya/scripts/__init__.py @@ -1,4 +1,4 @@ """ -Python Init command for Domemaster3D +Python Init command for Domemain3D Created by Andrew Hazelden andrew@andrewhazelden.com """ diff --git a/vray/maya/scripts/domeVrayRender.py b/vray/maya/scripts/domeVrayRender.py index 1e2d855..ee525c8 100755 --- a/vray/maya/scripts/domeVrayRender.py +++ b/vray/maya/scripts/domeVrayRender.py @@ -1,11 +1,11 @@ """ domeVrayRender.py -Domemaster3D for Vray for Maya v1.7 +Domemain3D for Vray for Maya v1.7 2015-04-01 09.06 pm by Andrew Hazelden ----------------------------- -This script will prepare a Vray Scene for rendering in Maya using the DomemasterStereo or LatLongStereo shaders. +This script will prepare a Vray Scene for rendering in Maya using the DomemainStereo or LatLongStereo shaders. Run the python code using: import domeVrayRender @@ -71,14 +71,14 @@ def domeVrayHasLatLongStereoAttrs(): #print("This is not a LatLongStereo Camera.") return 0 -# Check if the DomemasterStereo Vray Extra Attributes Exist -def domeVrayHasDomemasterStereoAttrs(): - # Check if the vrayDomemasterStereoOn Attr Exists - if domeVrayGetAttrNumValue("vrayDomemasterStereoOn") == 1: - print("This is a DomemasterStereo Camera.") +# Check if the DomemainStereo Vray Extra Attributes Exist +def domeVrayHasDomemainStereoAttrs(): + # Check if the vrayDomemainStereoOn Attr Exists + if domeVrayGetAttrNumValue("vrayDomemainStereoOn") == 1: + print("This is a DomemainStereo Camera.") return 1 else: - #print("This is not a DomemasterStereo Camera.") + #print("This is not a DomemainStereo Camera.") return 0 # Check if a vray camera extra attribute exists and get it's current string value @@ -195,61 +195,61 @@ def domeVrayTranslator(): zenith_fov = domeVrayGetAttrNumValue("vrayLatLongStereoZenithFov") LatLongStereo.set("zenith_fov", zenith_fov) - elif domeVrayHasDomemasterStereoAttrs() == 1: - # DomemasterStereo Lens Shader Setup - DomemasterStereo = vr.create("DomemasterStereo", "DomemasterStereo") + elif domeVrayHasDomemainStereoAttrs() == 1: + # DomemainStereo Lens Shader Setup + DomemainStereo = vr.create("DomemainStereo", "DomemainStereo") # Check if the shader was found - if DomemasterStereo is None: - print("The DomemasterStereo shader did not load correctly!") + if DomemainStereo is None: + print("The DomemainStereo shader did not load correctly!") return -1 else: - #print(camera + " has a DomemasterStereo lens shader applied.") - cameraAttr = domeVrayGetAttrNumValue("vrayDomemasterStereoCamera") + #print(camera + " has a DomemainStereo lens shader applied.") + cameraAttr = domeVrayGetAttrNumValue("vrayDomemainStereoCamera") #Use the camera name to set the stereo camera view value - #DomemasterStereo.set("camera", stereo_view) + #DomemainStereo.set("camera", stereo_view) #Use the Vray Extra Attribute to set the stereo camera view value - DomemasterStereo.set("camera", cameraAttr) + DomemainStereo.set("camera", cameraAttr) - fov_angle = domeVrayGetAttrNumValue("vrayDomemasterStereoFovAngle") - DomemasterStereo.set("fov_angle", fov_angle) + fov_angle = domeVrayGetAttrNumValue("vrayDomemainStereoFovAngle") + DomemainStereo.set("fov_angle", fov_angle) - parallax_distance = domeVrayGetAttrNumValue("vrayDomemasterStereoParallaxDistance") - DomemasterStereo.set("parallax_distance", parallax_distance) + parallax_distance = domeVrayGetAttrNumValue("vrayDomemainStereoParallaxDistance") + DomemainStereo.set("parallax_distance", parallax_distance) - separation = domeVrayGetAttrNumValue("vrayDomemasterStereoSeparation") - DomemasterStereo.set("separation", separation) + separation = domeVrayGetAttrNumValue("vrayDomemainStereoSeparation") + DomemainStereo.set("separation", separation) - forward_tilt = domeVrayGetAttrNumValue("vrayDomemasterStereoForwardTilt") - DomemasterStereo.set("forward_tilt", forward_tilt) + forward_tilt = domeVrayGetAttrNumValue("vrayDomemainStereoForwardTilt") + DomemainStereo.set("forward_tilt", forward_tilt) - tilt_compensation = domeVrayGetAttrNumValue("vrayDomemasterStereoTiltCompensation") - DomemasterStereo.set("tilt_compensation", tilt_compensation) + tilt_compensation = domeVrayGetAttrNumValue("vrayDomemainStereoTiltCompensation") + DomemainStereo.set("tilt_compensation", tilt_compensation) - vertical_mode = domeVrayGetAttrNumValue("vrayDomemasterStereoVerticalMode") - DomemasterStereo.set("vertical_mode", vertical_mode) + vertical_mode = domeVrayGetAttrNumValue("vrayDomemainStereoVerticalMode") + DomemainStereo.set("vertical_mode", vertical_mode) - DomemasterStereo.set("separation_map", 1.0) - DomemasterStereo.set("head_turn_map", 1.0) - DomemasterStereo.set("head_tilt_map", 0.5) + DomemainStereo.set("separation_map", 1.0) + DomemainStereo.set("head_turn_map", 1.0) + DomemainStereo.set("head_tilt_map", 0.5) - flip_x = domeVrayGetAttrNumValue("vrayDomemasterStereoFlipX") - DomemasterStereo.set("flip_x", flip_x) + flip_x = domeVrayGetAttrNumValue("vrayDomemainStereoFlipX") + DomemainStereo.set("flip_x", flip_x) - flip_y = domeVrayGetAttrNumValue("vrayDomemasterStereoFlipY") - DomemasterStereo.set("flip_y", flip_y) + flip_y = domeVrayGetAttrNumValue("vrayDomemainStereoFlipY") + DomemainStereo.set("flip_y", flip_y) - poles_corr = domeVrayGetAttrNumValue("vrayDomemasterStereoPolesCorrection") - DomemasterStereo.set("poles_corr", poles_corr) + poles_corr = domeVrayGetAttrNumValue("vrayDomemainStereoPolesCorrection") + DomemainStereo.set("poles_corr", poles_corr) - poles_corr_start = domeVrayGetAttrNumValue("vrayDomemasterStereoPolesCorrectionStart") - DomemasterStereo.set("poles_corr_start", poles_corr_start) + poles_corr_start = domeVrayGetAttrNumValue("vrayDomemainStereoPolesCorrectionStart") + DomemainStereo.set("poles_corr_start", poles_corr_start) - poles_corr_end = domeVrayGetAttrNumValue("vrayDomemasterStereoPolesCorrectionEnd") - DomemasterStereo.set("poles_corr_end", poles_corr_end) + poles_corr_end = domeVrayGetAttrNumValue("vrayDomemainStereoPolesCorrectionEnd") + DomemainStereo.set("poles_corr_end", poles_corr_end) - neck_offset = domeVrayGetAttrNumValue("vrayDomemasterStereoNeckOffset") - DomemasterStereo.set("neck_offset", neck_offset) + neck_offset = domeVrayGetAttrNumValue("vrayDomemainStereoNeckOffset") + DomemainStereo.set("neck_offset", neck_offset) #Check what version of Maya is active def getMayaVersionDome(): diff --git a/vray/maya/scripts/userSetup.py b/vray/maya/scripts/userSetup.py index 14764d4..d0a0451 100755 --- a/vray/maya/scripts/userSetup.py +++ b/vray/maya/scripts/userSetup.py @@ -1,5 +1,5 @@ """ -Vray Domemaster3D Startup Code Version 2.1 +Vray Domemain3D Startup Code Version 2.1 2016-07-26 04.41 PM by Andrew Hazelden """ @@ -14,7 +14,7 @@ def findVrayDomeRig(): defs = cmds.stereoRigManager(rigDefinition=rig) print 'Rig "'+ rig +'": (language '+defs[0]+') create callback: '+defs[1] # Check for rig - if (rig == "VrayDomemasterStereoCamera"): + if (rig == "VrayDomemainStereoCamera"): return 1 return 0 @@ -50,30 +50,30 @@ def getMayaVersionDome(): return mayaVersion -# Check if a DomemasterStereoCamera rig exists in the scene +# Check if a DomemainStereoCamera rig exists in the scene def addNewVrayDomeRig(): import maya.mel as mel import maya.cmds as cmds if (findVrayDomeRig() == 0): - print ("An VrayDomemasterStereoCamera rig has been added to the stereoRigManager.") - # Register the DomemasterStereoCamera rig type + print ("An VrayDomemainStereoCamera rig has been added to the stereoRigManager.") + # Register the DomemainStereoCamera rig type # add[rig, language, createProcedure] # cameraSetFunc=[rig,callback] # Add the custom rig - #cmds.evalDeferred("cmds.stereoRigManager(add=['VrayDomemasterStereoCamera', 'Python', 'vrayDomemasterStereoRig.createRig'])") - cmds.stereoRigManager(add=['VrayDomemasterStereoCamera', 'Python', 'vrayDomemasterStereoRig.createRig']) + #cmds.evalDeferred("cmds.stereoRigManager(add=['VrayDomemainStereoCamera', 'Python', 'vrayDomemainStereoRig.createRig'])") + cmds.stereoRigManager(add=['VrayDomemainStereoCamera', 'Python', 'vrayDomemainStereoRig.createRig']) # Add the custom callback set for Maya 2011+ mayaVersion = getMayaVersionDome() if (mayaVersion >= 2011): - #cmds.evalDeferred("cmds.stereoRigManager(cameraSetFunc=['VrayDomemasterStereoCamera','vrayDomemasterStereoRig.attachToCameraSet'] )") - cmds.stereoRigManager(cameraSetFunc=['VrayDomemasterStereoCamera','vrayDomemasterStereoRig.attachToCameraSet']) + #cmds.evalDeferred("cmds.stereoRigManager(cameraSetFunc=['VrayDomemainStereoCamera','vrayDomemainStereoRig.attachToCameraSet'] )") + cmds.stereoRigManager(cameraSetFunc=['VrayDomemainStereoCamera','vrayDomemainStereoRig.attachToCameraSet']) # Make the new rig the default rig - #cmds.evalDeferred("cmds.stereoRigManager(defaultRig='VrayDomemasterStereoCamera')") - cmds.stereoRigManager(defaultRig='VrayDomemasterStereoCamera') + #cmds.evalDeferred("cmds.stereoRigManager(defaultRig='VrayDomemainStereoCamera')") + cmds.stereoRigManager(defaultRig='VrayDomemainStereoCamera') else: - print ("An VrayDomemasterStereoCamera rig already exists in the stereoRigManager.") + print ("An VrayDomemainStereoCamera rig already exists in the stereoRigManager.") # Check if a LatLongStereoCamera rig exists in the scene @@ -103,12 +103,12 @@ def addNewVrayLatLongRig(): -# Load the Vray Domemaster3D menu system in the rendering menu set +# Load the Vray Domemain3D menu system in the rendering menu set def addNewVrayDomeMenu(): import maya.mel as mel - print("Loading the Vray Domemaster3D menu items...") + print("Loading the Vray Domemain3D menu items...") mel.eval('source "vrayDomeMenu.mel";') - mel.eval('createVrayDomemaster3DMenu();') + mel.eval('createVrayDomemain3DMenu();') # Load the new Vray stereo rigs @@ -121,15 +121,15 @@ def deferredLoadVrayRig(): cmds.evalDeferred("addNewVrayDomeRig()") #---------------------------------------------------------------------------- -# Main Domemaster3D Start up function +# Main Domemain3D Start up function #---------------------------------------------------------------------------- # Stop Maya from running the python code twice by looking if it is __main__ if (__name__ == '__main__'): import maya.cmds as cmds - # Add the Domemaster3D Stereo & LatLong_Stereo camera Rig - #import vrayDomemasterStereoRig + # Add the Domemain3D Stereo & LatLong_Stereo camera Rig + #import vrayDomemainStereoRig #import vrayLatLongStereoRig """ @@ -142,17 +142,17 @@ def deferredLoadVrayRig(): isMayaInBatchMode = maya.OpenMaya.MGlobal.mayaState() == maya.OpenMaya.MGlobal.kBatch # isMayaInBatchMode = 1 means Batch Mode, 0 means GUI mode if(isMayaInBatchMode == False): - print("The Vray Domemaster3D Shader is running in GUI mode.") + print("The Vray Domemain3D Shader is running in GUI mode.") # Make sure the stereo plug-in is loaded cmds.evalDeferred("cmds.loadPlugin('stereoCamera', quiet=True)") # Load the new Vray stereo rigs cmds.evalDeferred("deferredLoadVrayRig()") - # Load the Vray Domemaster3D menu system in the rendering menu set + # Load the Vray Domemain3D menu system in the rendering menu set cmds.evalDeferred("addNewVrayDomeMenu()") else: - print("The Vray Domemaster3D Shader is running in batch mode.") + print("The Vray Domemain3D Shader is running in batch mode.") # Make sure the Vray plugin was loaded @@ -162,5 +162,5 @@ def deferredLoadVrayRig(): # pass # --------------------------------------------------------------------- -# End Vray Domemaster3D Startup Code +# End Vray Domemain3D Startup Code # --------------------------------------------------------------------- diff --git a/vray/maya/scripts/vrayDomeCamera.py b/vray/maya/scripts/vrayDomeCamera.py index e43d83d..f30b977 100755 --- a/vray/maya/scripts/vrayDomeCamera.py +++ b/vray/maya/scripts/vrayDomeCamera.py @@ -1,5 +1,5 @@ """ -Vray Domemaster3D Camera Setup Script V2.1 +Vray Domemain3D Camera Setup Script V2.1 2016-07-26 04.55 PM Created by Andrew Hazelden andrew@andrewhazelden.com @@ -38,7 +38,7 @@ ------------------------------------------------------------------------------ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig A python function to create a fulldome stereo rig in Maya. Run using the command: @@ -48,7 +48,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createVrayLatLongStereoRig +Domemain3D createVrayLatLongStereoRig A python function to create a stereoscopic latitude longitude lens shader and attach it to a camera. Run using the command: @@ -58,7 +58,7 @@ ------------------------------------------------------------------------------ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background A python function to create a spherical yellow test grid in Maya. Run using the command: @@ -68,7 +68,7 @@ ------------------------------------------------------------------------------ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. Run using the command: @@ -78,7 +78,7 @@ ------------------------------------------------------------------------------ -Domemaster3D createTestShapes +Domemain3D createTestShapes A python function to create a test sphere and cube in Maya. Run using the command: @@ -88,7 +88,7 @@ ------------------------------------------------------------------------------ -Domemaster3D getMayaVersionDome +Domemain3D getMayaVersionDome A python function to check what Maya version is active. import vrayDomeCamera @@ -98,62 +98,62 @@ ------------------------------------------------------------------------------ -Show the Domemaster Wiki +Show the Domemain Wiki -------------------------------- Loads the wiki page in your default web browser Run using the command: -print("Open the Domemaster Wiki Page") +print("Open the Domemain Wiki Page") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterWiki() +vrayDomeCamera.openDomemainWiki() -print("Open the Domemaster NING Group") +print("Open the Domemain NING Group") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterNing() +vrayDomeCamera.openDomemainNing() -print("Open the Domemaster Downloads Page") +print("Open the Domemain Downloads Page") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterDownloads() +vrayDomeCamera.openDomemainDownloads() -print("Open the Domemaster Bug Reporter") +print("Open the Domemain Bug Reporter") import vrayDomeCamera as vrayDomeCamera -vrayDomeCamera.openDomemasterBugReport() +vrayDomeCamera.openDomemainBugReport() """ -def openDomemasterWiki(): +def openDomemainWiki(): import webbrowser - # Domemaster Stereo Shader - Wiki Page + # Domemain Stereo Shader - Wiki Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/wiki' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openVrayDomemasterNing(): +def openVrayDomemainNing(): import webbrowser - # Domemaster NING Group + # Domemain NING Group url = 'http://fulldome.ning.com/forum/topics/stereoscopic-domemaster-images' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openVrayDomemasterDownloads(): +def openVrayDomemainDownloads(): import webbrowser - # Domemaster Stereo Shader - Download Page + # Domemain Stereo Shader - Download Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/releases' # Open URL in new window, raising the window if possible. webbrowser.open_new(url) -def openVrayDomemasterBugReport(): +def openVrayDomemainBugReport(): import webbrowser - # Domemaster Stereo Shader - Bug Report Page + # Domemain Stereo Shader - Bug Report Page url = 'https://github.com/zicher3d-org/domemaster-stereo-shader/issues' # Open URL in new window, raising the window if possible. @@ -171,7 +171,7 @@ def getSourceImagesPath(imageFileName): import maya.cmds as cmds import maya.mel as mel # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -182,32 +182,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -215,7 +215,7 @@ def getSourceImagesPath(imageFileName): """ -Domemaster3D AutoSetup +Domemain3D AutoSetup ---------------------- A python function to create a fulldome stereo rig and test grid in Maya. @@ -228,7 +228,7 @@ def Autosetup(): createTestShapes() """ -Domemaster3D setDomeSamplingQuality +Domemain3D setDomeSamplingQuality ---------------------- A python function to setup the AA sampling quality. @@ -243,7 +243,7 @@ def setDomeSamplingQuality(): """ -Domemaster3D SetRenderRes +Domemain3D SetRenderRes ---------------------- A python function to setup the basic 2K x 2K square render settings. @@ -262,7 +262,7 @@ def setRenderRes(): fulldomeRenderHeight = 2048 #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr( 'defaultResolution.width', fulldomeRenderWidth ) cmds.setAttr( 'defaultResolution.height', fulldomeRenderHeight ) @@ -277,7 +277,7 @@ def setRenderRes(): cmds.setAttr( 'vraySettings.aspectRatio', 1) """ -Domemaster3D changeRenderRes +Domemain3D changeRenderRes ---------------------- A python function to change the basic resolution square render settings. @@ -296,7 +296,7 @@ def changeRenderRes( renderSizePx ): fulldomeRenderHeight = renderSizePx #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr( 'defaultResolution.width', fulldomeRenderWidth ) cmds.setAttr( 'defaultResolution.height', fulldomeRenderHeight ) @@ -314,7 +314,7 @@ def changeRenderRes( renderSizePx ): """ -Domemaster3D changeRenderResWH +Domemain3D changeRenderResWH ---------------------- A python function to change the basic resolution render settings. @@ -334,7 +334,7 @@ def changeRenderResWH( renderSizeW, renderSizeH): domeDeviceAspectRatio=domeRenderWidth/domeRenderHeight #--------------------------------------------------------------------- - # Setup the default render settings for a square domemaster image output + # Setup the default render settings for a square domemain image output # --------------------------------------------------------------------- cmds.setAttr( 'defaultResolution.width', domeRenderWidth ) cmds.setAttr( 'defaultResolution.height', domeRenderHeight ) @@ -352,7 +352,7 @@ def changeRenderResWH( renderSizeW, renderSizeH): """ -Domemaster3D Vray Settings Node Check +Domemain3D Vray Settings Node Check -------------------------------- A python function to create a VRaySettingsNode in Maya. """ @@ -369,7 +369,7 @@ def domeCreateVraySettingsNode(): """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -402,12 +402,12 @@ def createVrayFulldomeStereoRig(): from maya.app.stereo import stereoCameraRig - # Set the default rig to an VrayDomemasterStereoCamera - cmds.stereoRigManager(defaultRig='VrayDomemasterStereoCamera') + # Set the default rig to an VrayDomemainStereoCamera + cmds.stereoRigManager(defaultRig='VrayDomemainStereoCamera') # Add the camera rig to the scene - rig = stereoCameraRig.createStereoCameraRig('VrayDomemasterStereoCamera') - #[u'VrayDomeStereoCamera', u'VrayDomemasterStereoCameraLeft', u'VrayDomemasterStereoCameraRight'] + rig = stereoCameraRig.createStereoCameraRig('VrayDomemainStereoCamera') + #[u'VrayDomeStereoCamera', u'VrayDomemainStereoCameraLeft', u'VrayDomemainStereoCameraRight'] #Get the stereo camera rig shape nodes for the center/right/left cameras rig_center_shape_name = getObjectShapeNode(rig[0]) @@ -445,18 +445,18 @@ def createVrayFulldomeStereoRig(): #import maya.cmds as cmds #PreRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') #PostRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') #enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D Fulldome Stereo Rig +Domemain3D Fulldome Stereo Rig -------------------------------- A python function to create a fulldome stereo rig in Maya. """ @@ -532,19 +532,19 @@ def createVrayLatLongStereoRig(): #import maya.cmds as cmds #PreRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemaster3DPreRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.preMel', "source \"domeRender.mel\"; domemain3DPreRenderMEL();", type='string') #PostRender MEL: - #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemaster3DPostRenderMEL();", type='string') + #cmds.setAttr( 'defaultRenderGlobals.postMel' , "source \"domeRender.mel\"; domemain3DPostRenderMEL();", type='string') #enable realtime 3D - #mel.eval("source \"domeRender.mel\"; domemaster3DPostRenderMEL();"); + #mel.eval("source \"domeRender.mel\"; domemain3DPostRenderMEL();"); return rig """ -Domemaster3D LatLongGrid test background +Domemain3D LatLongGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya that is rotated 90 degrees on the RotateX. @@ -567,7 +567,7 @@ def createLatLongGrid(): cmds.setAttr('domeGrid.Dome_Spans', 24) """ -Domemaster3D DomeGrid test background +Domemain3D DomeGrid test background -------------------------------------- A python function to create a spherical yellow test grid in Maya. @@ -603,27 +603,27 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGrid'): - print('Removing existing Domemaster3D object: domeGrid') + print('Removing existing Domemain3D object: domeGrid') cmds.select('domeGrid', replace=True) cmds.delete() if cmds.objExists('MeshGroup'): - print('Removing existing Domemaster3D object: MeshGroup') + print('Removing existing Domemain3D object: MeshGroup') cmds.select('MeshGroup', replace=True) cmds.delete() if cmds.objExists(domeGridSurface): - print('Removing existing Domemaster3D object: ' + domeGridSurface) + print('Removing existing Domemain3D object: ' + domeGridSurface) cmds.select(domeGridSurface, replace=True) cmds.delete() if cmds.objExists('domeGridToon'): - print('Removing existing Domemaster3D object: domeGridToon') + print('Removing existing Domemain3D object: domeGridToon') cmds.select('domeGridToon', replace=True) cmds.delete() if cmds.objExists('domeGrid_displayModeExpr'): - print('Removing existing Domemaster3D object: domeGrid_displayModeExpr') + print('Removing existing Domemain3D object: domeGrid_displayModeExpr') cmds.select('domeGrid_displayModeExpr', replace=True) cmds.delete() @@ -632,22 +632,22 @@ def createDomeGrid(): #--------------------------------------------------------------------------- if cmds.objExists('domeGridLinesSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShader') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShader') cmds.select('domeGridLinesSurfaceShader', replace=True) cmds.delete() if cmds.objExists('domeGridLinesSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridLinesSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridLinesSurfaceShaderSG') cmds.select('domeGridLinesSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShaderSG'): - print('Removing existing Domemaster3D object: domeGridSurfaceShaderSG') + print('Removing existing Domemain3D object: domeGridSurfaceShaderSG') cmds.select('domeGridSurfaceShaderSG', replace=True) cmds.delete() if cmds.objExists('domeGridSurfaceShader'): - print('Removing existing Domemaster3D object: domeGridSurfaceShader') + print('Removing existing Domemain3D object: domeGridSurfaceShader') cmds.select('domeGridSurfaceShader', replace=True) cmds.delete() @@ -1112,7 +1112,7 @@ def createDomeGrid(): """ -Domemaster3D createTestShapes +Domemain3D createTestShapes ---------------------- A python function to create a test sphere and cube in Maya. """ @@ -1121,17 +1121,17 @@ def createTestShapes(): import maya.cmds as cmds if cmds.objExists('domeTestLight'): - print('Removing existing Domemaster3D object: domeTestLight') + print('Removing existing Domemain3D object: domeTestLight') cmds.select('domeTestLight', replace=True) cmds.delete() if cmds.objExists('polyTestSphere'): - print('Removing existing Domemaster3D object: polyTestSphere') + print('Removing existing Domemain3D object: polyTestSphere') cmds.select('polyTestSphere', replace=True) cmds.delete() if cmds.objExists('polyTestCube'): - print('Removing existing Domemaster3D object: polyTestCube') + print('Removing existing Domemain3D object: polyTestCube') cmds.select('polyTestCube', replace=True) cmds.delete() diff --git a/vray/maya/scripts/vrayDomemasterStereoRig.py b/vray/maya/scripts/vrayDomemasterStereoRig.py index 42d3ecd..e292456 100755 --- a/vray/maya/scripts/vrayDomemasterStereoRig.py +++ b/vray/maya/scripts/vrayDomemasterStereoRig.py @@ -1,5 +1,5 @@ """ - Vray DomemasterStereo Camera Rig V1.7 + Vray DomemainStereo Camera Rig V1.7 2015-05-08 11.46 pm by Andrew Hazelden andrew@andrewhazelden.com ----------------------------------------------------------------------- @@ -10,7 +10,7 @@ --------------- 2015-05-08 - Adapted the mental ray script to support Vray DomemasterStereo rendering + Adapted the mental ray script to support Vray DomemainStereo rendering Stereo Rig Script Notes @@ -65,7 +65,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - #Setup the base folder path for the Domemaster3D control maps + #Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -76,32 +76,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -112,7 +112,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Variables @@ -128,36 +128,36 @@ def createLensShaders(centerCam, leftCam, rightCam): print( "[Center Camera] " + centerCam + "\n" ) # Enable the Lens Shader's Vray Extra Attributes - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoOn', longName='vrayDomemasterStereoOn', attributeType='long', defaultValue=1) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoOn', longName='vrayDomemainStereoOn', attributeType='long', defaultValue=1) # Center Camera View - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoCamera', longName='vrayDomemasterStereoCamera', attributeType='long', defaultValue=0) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoFovAngle', longName='vrayDomemasterStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoParallaxDistance', longName='vrayDomemasterStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparation', longName='vrayDomemasterStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoForwardTilt', longName='vrayDomemasterStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoTiltCompensation', longName='vrayDomemasterStereoTiltCompensation', attributeType='long', defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoVerticalMode', longName='vrayDomemasterStereoVerticalMode', attributeType='long', defaultValue=0) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMap', longName='vrayDomemasterStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMapr', longName='vrayDomemasterStereoSeparationMapr', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMapg', longName='vrayDomemasterStereoSeparationMapg', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoSeparationMapb', longName='vrayDomemasterStereoSeparationMapb', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMap', longName='vrayDomemasterStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMapr', longName='vrayDomemasterStereoHeadTurnMapr', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMapg', longName='vrayDomemasterStereoHeadTurnMapg', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTurnMapb', longName='vrayDomemasterStereoHeadTurnMapb', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMap', longName='vrayDomemasterStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMapr', longName='vrayDomemasterStereoHeadTiltMapr', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=0.5 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMapg', longName='vrayDomemasterStereoHeadTiltMapg', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=0.5 ) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoHeadTiltMapb', longName='vrayDomemasterStereoHeadTiltMapb', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=0.5 ) - - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoFlipX', longName='vrayDomemasterStereoFlipX', attributeType='long', defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoFlipY', longName='vrayDomemasterStereoFlipY', attributeType='long', defaultValue=0) - cmds.addAttr( centerCam, shortName='vrayDomemasterStereoNeckOffset', longName='vrayDomemasterStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoCamera', longName='vrayDomemainStereoCamera', attributeType='long', defaultValue=0) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoFovAngle', longName='vrayDomemainStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoParallaxDistance', longName='vrayDomemainStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparation', longName='vrayDomemainStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoForwardTilt', longName='vrayDomemainStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoTiltCompensation', longName='vrayDomemainStereoTiltCompensation', attributeType='long', defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoVerticalMode', longName='vrayDomemainStereoVerticalMode', attributeType='long', defaultValue=0) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMap', longName='vrayDomemainStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMapr', longName='vrayDomemainStereoSeparationMapr', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMapg', longName='vrayDomemainStereoSeparationMapg', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoSeparationMapb', longName='vrayDomemainStereoSeparationMapb', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMap', longName='vrayDomemainStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMapr', longName='vrayDomemainStereoHeadTurnMapr', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMapg', longName='vrayDomemainStereoHeadTurnMapg', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTurnMapb', longName='vrayDomemainStereoHeadTurnMapb', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMap', longName='vrayDomemainStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMapr', longName='vrayDomemainStereoHeadTiltMapr', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=0.5 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMapg', longName='vrayDomemainStereoHeadTiltMapg', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=0.5 ) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoHeadTiltMapb', longName='vrayDomemainStereoHeadTiltMapb', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=0.5 ) + + cmds.addAttr( centerCam, shortName='vrayDomemainStereoFlipX', longName='vrayDomemainStereoFlipX', attributeType='long', defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoFlipY', longName='vrayDomemainStereoFlipY', attributeType='long', defaultValue=0) + cmds.addAttr( centerCam, shortName='vrayDomemainStereoNeckOffset', longName='vrayDomemainStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) # ------------------------------------------------------------------------- @@ -169,36 +169,36 @@ def createLensShaders(centerCam, leftCam, rightCam): print( "[Left Camera Shape] " + leftCamShape + "\n" ) # Enable the Lens Shader's Vray Extra Attributes - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoOn', longName='vrayDomemasterStereoOn', attributeType='long', defaultValue=1) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoOn', longName='vrayDomemainStereoOn', attributeType='long', defaultValue=1) # Left Camera View - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoCamera', longName='vrayDomemasterStereoCamera', attributeType='long', defaultValue=1) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoCamera', longName='vrayDomemainStereoCamera', attributeType='long', defaultValue=1) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoFovAngle', longName='vrayDomemasterStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoParallaxDistance', longName='vrayDomemasterStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparation', longName='vrayDomemasterStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoForwardTilt', longName='vrayDomemasterStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoTiltCompensation', longName='vrayDomemasterStereoTiltCompensation', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoVerticalMode', longName='vrayDomemasterStereoVerticalMode', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoFovAngle', longName='vrayDomemainStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoParallaxDistance', longName='vrayDomemainStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparation', longName='vrayDomemainStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoForwardTilt', longName='vrayDomemainStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoTiltCompensation', longName='vrayDomemainStereoTiltCompensation', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoVerticalMode', longName='vrayDomemainStereoVerticalMode', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMap', longName='vrayDomemasterStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMapr', longName='vrayDomemasterStereoSeparationMapr', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMapg', longName='vrayDomemasterStereoSeparationMapg', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoSeparationMapb', longName='vrayDomemasterStereoSeparationMapb', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMap', longName='vrayDomemainStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMapr', longName='vrayDomemainStereoSeparationMapr', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMapg', longName='vrayDomemainStereoSeparationMapg', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoSeparationMapb', longName='vrayDomemainStereoSeparationMapb', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMap', longName='vrayDomemasterStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMapr', longName='vrayDomemasterStereoHeadTurnMapr', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMapg', longName='vrayDomemasterStereoHeadTurnMapg', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTurnMapb', longName='vrayDomemasterStereoHeadTurnMapb', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMap', longName='vrayDomemainStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMapr', longName='vrayDomemainStereoHeadTurnMapr', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMapg', longName='vrayDomemainStereoHeadTurnMapg', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTurnMapb', longName='vrayDomemainStereoHeadTurnMapb', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMap', longName='vrayDomemasterStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMapr', longName='vrayDomemasterStereoHeadTiltMapr', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMapg', longName='vrayDomemasterStereoHeadTiltMapg', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoHeadTiltMapb', longName='vrayDomemasterStereoHeadTiltMapb', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMap', longName='vrayDomemainStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMapr', longName='vrayDomemainStereoHeadTiltMapr', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMapg', longName='vrayDomemainStereoHeadTiltMapg', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoHeadTiltMapb', longName='vrayDomemainStereoHeadTiltMapb', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoFlipX', longName='vrayDomemasterStereoFlipX', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoFlipY', longName='vrayDomemasterStereoFlipY', attributeType='long', defaultValue=0) - cmds.addAttr( leftCamShape, shortName='vrayDomemasterStereoNeckOffset', longName='vrayDomemasterStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoFlipX', longName='vrayDomemainStereoFlipX', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoFlipY', longName='vrayDomemainStereoFlipY', attributeType='long', defaultValue=0) + cmds.addAttr( leftCamShape, shortName='vrayDomemainStereoNeckOffset', longName='vrayDomemainStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) # ------------------------------------------------------------------------- @@ -210,67 +210,67 @@ def createLensShaders(centerCam, leftCam, rightCam): print( "[Right Camera Shape] " + rightCamShape + "\n" ) # Enable the Lens Shader's Vray Extra Attributes - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoOn', longName='vrayDomemasterStereoOn', attributeType='long', defaultValue=1) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoOn', longName='vrayDomemainStereoOn', attributeType='long', defaultValue=1) # Center Camera View - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoCamera', longName='vrayDomemasterStereoCamera', attributeType='long', defaultValue=2) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoFovAngle', longName='vrayDomemasterStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoParallaxDistance', longName='vrayDomemasterStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparation', longName='vrayDomemasterStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoForwardTilt', longName='vrayDomemasterStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoTiltCompensation', longName='vrayDomemasterStereoTiltCompensation', attributeType='long', defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoVerticalMode', longName='vrayDomemasterStereoVerticalMode', attributeType='long', defaultValue=0) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMap', longName='vrayDomemasterStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMapr', longName='vrayDomemasterStereoSeparationMapr', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMapg', longName='vrayDomemasterStereoSeparationMapg', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoSeparationMapb', longName='vrayDomemasterStereoSeparationMapb', attributeType='float', parent='vrayDomemasterStereoSeparationMap', defaultValue=1.0 ) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMap', longName='vrayDomemasterStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMapr', longName='vrayDomemasterStereoHeadTurnMapr', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMapg', longName='vrayDomemasterStereoHeadTurnMapg', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTurnMapb', longName='vrayDomemasterStereoHeadTurnMapb', attributeType='float', parent='vrayDomemasterStereoHeadTurnMap', defaultValue=1.0 ) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMap', longName='vrayDomemasterStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMapr', longName='vrayDomemasterStereoHeadTiltMapr', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMapg', longName='vrayDomemasterStereoHeadTiltMapg', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoHeadTiltMapb', longName='vrayDomemasterStereoHeadTiltMapb', attributeType='float', parent='vrayDomemasterStereoHeadTiltMap', defaultValue=1.0 ) - - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoFlipX', longName='vrayDomemasterStereoFlipX', attributeType='long', defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoFlipY', longName='vrayDomemasterStereoFlipY', attributeType='long', defaultValue=0) - cmds.addAttr( rightCamShape, shortName='vrayDomemasterStereoNeckOffset', longName='vrayDomemasterStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoCamera', longName='vrayDomemainStereoCamera', attributeType='long', defaultValue=2) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoFovAngle', longName='vrayDomemainStereoFovAngle', attributeType='float', min=0.1, softMaxValue=360, defaultValue=180) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoParallaxDistance', longName='vrayDomemainStereoParallaxDistance', attributeType='float', min=0.001, softMaxValue=5000, defaultValue=720) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparation', longName='vrayDomemainStereoSeparation', attributeType='float', min=0, softMaxValue=650, defaultValue=6.5) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoForwardTilt', longName='vrayDomemainStereoForwardTilt', attributeType='long', min=0, softMaxValue=360, defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoTiltCompensation', longName='vrayDomemainStereoTiltCompensation', attributeType='long', defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoVerticalMode', longName='vrayDomemainStereoVerticalMode', attributeType='long', defaultValue=0) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMap', longName='vrayDomemainStereoSeparationMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMapr', longName='vrayDomemainStereoSeparationMapr', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMapg', longName='vrayDomemainStereoSeparationMapg', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoSeparationMapb', longName='vrayDomemainStereoSeparationMapb', attributeType='float', parent='vrayDomemainStereoSeparationMap', defaultValue=1.0 ) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMap', longName='vrayDomemainStereoHeadTurnMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMapr', longName='vrayDomemainStereoHeadTurnMapr', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMapg', longName='vrayDomemainStereoHeadTurnMapg', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTurnMapb', longName='vrayDomemainStereoHeadTurnMapb', attributeType='float', parent='vrayDomemainStereoHeadTurnMap', defaultValue=1.0 ) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMap', longName='vrayDomemainStereoHeadTiltMap', attributeType='float3', usedAsColor=True , numberOfChildren=3) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMapr', longName='vrayDomemainStereoHeadTiltMapr', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMapg', longName='vrayDomemainStereoHeadTiltMapg', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoHeadTiltMapb', longName='vrayDomemainStereoHeadTiltMapb', attributeType='float', parent='vrayDomemainStereoHeadTiltMap', defaultValue=1.0 ) + + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoFlipX', longName='vrayDomemainStereoFlipX', attributeType='long', defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoFlipY', longName='vrayDomemainStereoFlipY', attributeType='long', defaultValue=0) + cmds.addAttr( rightCamShape, shortName='vrayDomemainStereoNeckOffset', longName='vrayDomemainStereoNeckOffset', attributeType='float', min=-10000.0, softMaxValue=1000.0 , defaultValue=0.0 ) # --------------------------------------------------------------------- # Link the common left and right camera attributes to the center camera # --------------------------------------------------------------------- # Link the left camera attributes - cmds.connectAttr( centerCam+'.vrayDomemasterStereoOn', leftCam+'.vrayDomemasterStereoOn', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFovAngle', leftCam+'.vrayDomemasterStereoFovAngle', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoParallaxDistance', leftCam+'.vrayDomemasterStereoParallaxDistance', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoSeparation', leftCam+'.vrayDomemasterStereoSeparation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoForwardTilt', leftCam+'.vrayDomemasterStereoForwardTilt', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoTiltCompensation', leftCam+'.vrayDomemasterStereoTiltCompensation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoVerticalMode', leftCam+'.vrayDomemasterStereoVerticalMode', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipX', leftCam+'.vrayDomemasterStereoFlipX', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipY', leftCam+'.vrayDomemasterStereoFlipY', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoNeckOffset', leftCam+'.vrayDomemasterStereoNeckOffset', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoOn', leftCam+'.vrayDomemainStereoOn', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFovAngle', leftCam+'.vrayDomemainStereoFovAngle', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoParallaxDistance', leftCam+'.vrayDomemainStereoParallaxDistance', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoSeparation', leftCam+'.vrayDomemainStereoSeparation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoForwardTilt', leftCam+'.vrayDomemainStereoForwardTilt', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoTiltCompensation', leftCam+'.vrayDomemainStereoTiltCompensation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoVerticalMode', leftCam+'.vrayDomemainStereoVerticalMode', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipX', leftCam+'.vrayDomemainStereoFlipX', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipY', leftCam+'.vrayDomemainStereoFlipY', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoNeckOffset', leftCam+'.vrayDomemainStereoNeckOffset', force=True ) # Link the right camera attributes - cmds.connectAttr( centerCam+'.vrayDomemasterStereoOn', rightCam+'.vrayDomemasterStereoOn', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFovAngle', rightCam+'.vrayDomemasterStereoFovAngle', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoParallaxDistance', rightCam+'.vrayDomemasterStereoParallaxDistance', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoSeparation', rightCam+'.vrayDomemasterStereoSeparation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoForwardTilt', rightCam+'.vrayDomemasterStereoForwardTilt', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoTiltCompensation', rightCam+'.vrayDomemasterStereoTiltCompensation', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoVerticalMode', rightCam+'.vrayDomemasterStereoVerticalMode', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipX', rightCam+'.vrayDomemasterStereoFlipX', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoFlipY', rightCam+'.vrayDomemasterStereoFlipY', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoNeckOffset', rightCam+'.vrayDomemasterStereoNeckOffset', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoOn', rightCam+'.vrayDomemainStereoOn', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFovAngle', rightCam+'.vrayDomemainStereoFovAngle', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoParallaxDistance', rightCam+'.vrayDomemainStereoParallaxDistance', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoSeparation', rightCam+'.vrayDomemainStereoSeparation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoForwardTilt', rightCam+'.vrayDomemainStereoForwardTilt', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoTiltCompensation', rightCam+'.vrayDomemainStereoTiltCompensation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoVerticalMode', rightCam+'.vrayDomemainStereoVerticalMode', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipX', rightCam+'.vrayDomemainStereoFlipX', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoFlipY', rightCam+'.vrayDomemainStereoFlipY', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoNeckOffset', rightCam+'.vrayDomemainStereoNeckOffset', force=True ) # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -279,8 +279,8 @@ def createLensShaders(centerCam, leftCam, rightCam): # Link the center camera lens shader to the Maya camera rig stereo3d settings # This enables real-time 3D previews in the viewport # --------------------------------------------------------------------- - cmds.connectAttr( centerCam+'.vrayDomemasterStereoParallaxDistance', centerCam+'.zeroParallax', force=True ) - cmds.connectAttr( centerCam+'.vrayDomemasterStereoSeparation', centerCam+'.interaxialSeparation', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoParallaxDistance', centerCam+'.zeroParallax', force=True ) + cmds.connectAttr( centerCam+'.vrayDomemainStereoSeparation', centerCam+'.interaxialSeparation', force=True ) #Turn off the Stereo 3D effect on the native Maya camera rig # This skips the need for a pre-render and post-render mel script. @@ -294,25 +294,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr( slave + '.renderable', 0 ) + cmds.setAttr( subordinate + '.renderable', 0 ) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -327,24 +327,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False ) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False ) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr( slave + '.' + attr, keyable=False ) + cmds.setAttr( subordinate + '.' + attr, keyable=False ) - return slave + return subordinate def __createFrustumNode( mainCam, parent, baseName ): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -367,7 +367,7 @@ def __createFrustumNode( mainCam, parent, baseName ): return frustum -def createRig(unusedBasename='VrayDomemasterStereoCamera'): +def createRig(unusedBasename='VrayDomemainStereoCamera'): """ Creates a new stereo rig. Uses a series of Maya commands to build a stereo rig. @@ -380,11 +380,11 @@ def createRig(unusedBasename='VrayDomemasterStereoCamera'): import string import random randomLetterPostfix = random.choice(string.ascii_uppercase) - #print ("The StereoCameraRig Random letter extension is: VrayDomemasterStereoCamera" + randomLetterPostfix) + #print ("The StereoCameraRig Random letter extension is: VrayDomemainStereoCamera" + randomLetterPostfix) #Put a temp throwaway value of unusedBasename as the createRig input variable #Define basename here instead of the regular createRig() variable - basename='VrayDomemasterStereoCamera' + randomLetterPostfix + basename='VrayDomemainStereoCamera' + randomLetterPostfix # Create the root of the rig # @@ -420,8 +420,8 @@ def createRig(unusedBasename='VrayDomemasterStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera # @@ -472,7 +472,7 @@ def createRig(unusedBasename='VrayDomemasterStereoCamera'): cmds.addAttr( root, longName='Cam_Locator_Scale', niceName='Cam Locator Scale', attributeType='double', defaultValue=1.0, minValue=0.01) cmds.setAttr( root+'.Cam_Locator_Scale', keyable=False, channelBox=True) - # Result: Connected VrayDomemasterStereoCamera.Cam_Locator_Scale to VrayDomemasterStereoCameraLeftShape.locatorScale. // + # Result: Connected VrayDomemainStereoCamera.Cam_Locator_Scale to VrayDomemainStereoCameraLeftShape.locatorScale. // cmds.connectAttr ( root+'.Cam_Locator_Scale', centerCam+'.locatorScale', force=True) cmds.connectAttr ( root+'.Cam_Locator_Scale', leftCam+'.locatorScale', force=True) cmds.connectAttr ( root+'.Cam_Locator_Scale', rightCam+'.locatorScale', force=True) @@ -490,7 +490,7 @@ def attachToCameraSet( *args, **keywords ): if not keywords.has_key( 'allDone' ): stereoCameraSets.parentToLayer0Rig( *args, cameraSet=keywords['cameraSet'] ) -rigTypeName = 'VrayDomemasterStereoCamera' +rigTypeName = 'VrayDomemainStereoCamera' def registerThisRig(): """ @@ -500,8 +500,8 @@ def registerThisRig(): mayaVersion = getMayaVersionDome() if (mayaVersion >= 2011): global rigTypeName - cmds.stereoRigManager( add=[rigTypeName, 'Python', 'vrayDomemasterStereoRig.createRig'] ) - cmds.stereoRigManager( cameraSetFunc=[rigTypeName, 'vrayDomemasterStereoRig.attachToCameraSet'] ) + cmds.stereoRigManager( add=[rigTypeName, 'Python', 'vrayDomemainStereoRig.createRig'] ) + cmds.stereoRigManager( cameraSetFunc=[rigTypeName, 'vrayDomemainStereoRig.attachToCameraSet'] ) else: cmds.stereoRigManager(add=['StereoCamera', 'Python', 'maya.app.stereo.stereoCameraDefaultRig.createRig']) diff --git a/vray/maya/scripts/vrayLatLongStereoRig.py b/vray/maya/scripts/vrayLatLongStereoRig.py index b94a81b..de3fe5a 100755 --- a/vray/maya/scripts/vrayLatLongStereoRig.py +++ b/vray/maya/scripts/vrayLatLongStereoRig.py @@ -65,7 +65,7 @@ def getSourceImagesPath(imageFileName): import maya.mel as mel # --------------------------------------------------------------------- - #Setup the base folder path for the Domemaster3D control maps + #Setup the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Check OS platform for Windows/Mac/Linux Paths @@ -76,32 +76,32 @@ def getSourceImagesPath(imageFileName): # Try and read the value from the current Maya.env file's environment variables baseImagesFolder = os.environ.get('DOMEMASTER3D_SOURCEIMAGES_DIR') + "/" - # Typical Result: C:/Program Files/Domemaster3D/sourceimages/ + # Typical Result: C:/Program Files/Domemain3D/sourceimages/ # Use a fixed value if the env var is empty if baseImagesFolder == None: if platform.system()=='Windows': # Check if the program is running on Windows - baseImagesFolder = "C:/Program Files/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files/Domemain3D/sourceimages/" elif platform.system()== 'win32': # Check if the program is running on Windows 32 - baseImagesFolder = "C:/Program Files (x86)/Domemaster3D/sourceimages/" + baseImagesFolder = "C:/Program Files (x86)/Domemain3D/sourceimages/" elif platform.system()== 'Darwin': # Check if the program is running on macOS - baseImagesFolder = "/Applications/Domemaster3D/sourceimages/" + baseImagesFolder = "/Applications/Domemain3D/sourceimages/" elif platform.system()== 'Linux': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" elif platform.system()== 'Linux2': # Check if the program is running on Linux - baseImagesFolder = "/opt/Domemaster3D/sourceimages/" + baseImagesFolder = "/opt/Domemain3D/sourceimages/" else: # Create the empty variable as a fallback mode baseImagesFolder = "" combinedFileAndImagePath = baseImagesFolder + imageFileName - print "[Domemaster3D is running on a " + platform.system() + " System]" + print "[Domemain3D is running on a " + platform.system() + " System]" print "[Requesting the image file]: " + combinedFileAndImagePath return combinedFileAndImagePath @@ -112,7 +112,7 @@ def createLensShaders(centerCam, leftCam, rightCam): import maya.cmds as cmds print "[Center] " + centerCam + " [Left] " + leftCam + " [Right] " + rightCam # --------------------------------------------------------------------- - #Set up the base folder path for the Domemaster3D control maps + #Set up the base folder path for the Domemain3D control maps # --------------------------------------------------------------------- #Variables @@ -242,7 +242,7 @@ def createLensShaders(centerCam, leftCam, rightCam): # --------------------------------------------------------------------- - # Create the custom Domemaster3D shading networks + # Create the custom Domemain3D shading networks # --------------------------------------------------------------------- # Create the nodes @@ -266,25 +266,25 @@ def createLensShaders(centerCam, leftCam, rightCam): registerThisRig() registers it into the system """ -def __createSlaveCamera(masterShape, name, parent): +def __createSubordinateCamera(mainShape, name, parent): """ Private method to this module. - Create a slave camera - Make the default connections between the master camera and the slave one. + Create a subordinate camera + Make the default connections between the main camera and the subordinate one. """ # First create a camera under the right parent with the desired name # - slave = cmds.camera()[0] - slave = cmds.parent(slave, parent)[0] - slave = cmds.rename(slave, name) - slaveShape = cmds.listRelatives(slave, path=True, shapes=True)[0] + subordinate = cmds.camera()[0] + subordinate = cmds.parent(subordinate, parent)[0] + subordinate = cmds.rename(subordinate, name) + subordinateShape = cmds.listRelatives(subordinate, path=True, shapes=True)[0] # Change some default attributes # - cmds.setAttr( slave + '.renderable', 0 ) + cmds.setAttr( subordinate + '.renderable', 0 ) - # Connect the camera attributes from the master, hide them + # Connect the camera attributes from the main, hide them # for attr in [ 'horizontalFilmAperture', 'verticalFilmAperture', @@ -299,24 +299,24 @@ def __createSlaveCamera(masterShape, name, parent): 'displayResolution', 'nearClipPlane', 'farClipPlane' ] : - slaveAttr = slaveShape + '.' + attr - cmds.connectAttr(masterShape + '.' + attr, slaveAttr) - cmds.setAttr(slaveAttr, keyable=False ) + subordinateAttr = subordinateShape + '.' + attr + cmds.connectAttr(mainShape + '.' + attr, subordinateAttr) + cmds.setAttr(subordinateAttr, keyable=False ) # Hide some more attributes on the transform # for attr in [ 'scaleX', 'scaleY', 'scaleZ', 'visibility', 'centerOfInterest' ] : - cmds.setAttr( slave + '.' + attr, keyable=False ) + cmds.setAttr( subordinate + '.' + attr, keyable=False ) - return slave + return subordinate def __createFrustumNode( mainCam, parent, baseName ): """ Private method to this module. Create a display frustum node under the given parent. - Make the default connections between the master camera and the frustum + Make the default connections between the main camera and the frustum Remove some of the channel box attributes that we do not want to show up in the channel box. """ @@ -392,8 +392,8 @@ def createRig(unusedBasename='VrayLatLongStereoCamera'): # Create the left & right eye cameras # - leftCam = __createSlaveCamera(centerCam, rootName+'Left', root) - rightCam = __createSlaveCamera(centerCam, rootName+'Right', root) + leftCam = __createSubordinateCamera(centerCam, rootName+'Left', root) + rightCam = __createSubordinateCamera(centerCam, rootName+'Right', root) # Set up message attribute connections to define the role of each camera #