Merge pull request #3852 from BigRoy/maya_extract_playblast_texture_settings

This commit is contained in:
Milan Kolar 2022-09-15 14:51:05 +02:00 committed by GitHub
commit bd1b2e318b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 92 deletions

View file

@ -2483,7 +2483,7 @@ def load_capture_preset(data=None):
# DISPLAY OPTIONS
id = 'Display Options'
disp_options = {}
for key in preset['Display Options']:
for key in preset[id]:
if key.startswith('background'):
disp_options[key] = preset['Display Options'][key]
if len(disp_options[key]) == 4:

View file

@ -678,25 +678,20 @@
"isolate_view": true,
"off_screen": true
},
"PanZoom": {
"pan_zoom": true
},
"Renderer": {
"rendererName": "vp2Renderer"
},
"Resolution": {
"width": 1920,
"height": 1080,
"percent": 1.0,
"mode": "Custom"
"height": 1080
},
"Viewport Options": {
"override_viewport_options": true,
"displayLights": "default",
"displayTextures": true,
"textureMaxResolution": 1024,
"renderDepthOfField": true,
"shadows": true,
"textures": true,
"twoSidedLighting": true,
"lineAAEnable": true,
"multiSample": 8,
@ -719,7 +714,6 @@
"motionBlurShutterOpenFraction": 0.2,
"cameras": false,
"clipGhosts": false,
"controlVertices": false,
"deformers": false,
"dimensions": false,
"dynamicConstraints": false,
@ -731,8 +725,7 @@
"grid": false,
"hairSystems": true,
"handles": false,
"hud": false,
"hulls": false,
"headsUpDisplay": false,
"ikHandles": false,
"imagePlane": true,
"joints": false,
@ -743,7 +736,9 @@
"nCloths": false,
"nParticles": false,
"nRigids": false,
"controlVertices": false,
"nurbsCurves": false,
"hulls": false,
"nurbsSurfaces": false,
"particleInstancers": false,
"pivots": false,
@ -751,7 +746,8 @@
"pluginShapes": false,
"polymeshes": true,
"strokes": false,
"subdivSurfaces": false
"subdivSurfaces": false,
"textures": false
},
"Camera Options": {
"displayGateMask": false,

View file

@ -94,18 +94,6 @@
}
]
},
{
"type": "dict",
"key": "PanZoom",
"children": [
{
"type": "boolean",
"key": "pan_zoom",
"label": " Pan Zoom"
}
]
},
{
"type": "splitter"
},
@ -153,19 +141,6 @@
"decimal": 0,
"minimum": 0,
"maximum": 99999
},
{
"type": "number",
"key": "percent",
"label": "percent",
"decimal": 1,
"minimum": 0,
"maximum": 200
},
{
"type": "text",
"key": "mode",
"label": "Mode"
}
]
},
@ -195,6 +170,11 @@
{ "nolights": "No Lights"}
]
},
{
"type": "boolean",
"key": "displayTextures",
"label": "Display Textures"
},
{
"type": "number",
"key": "textureMaxResolution",
@ -217,11 +197,6 @@
"key": "shadows",
"label": "Display Shadows"
},
{
"type": "boolean",
"key": "textures",
"label": "Display Textures"
},
{
"type": "boolean",
"key": "twoSidedLighting",
@ -369,120 +344,114 @@
{
"type": "splitter"
},
{
"type": "label",
"label": "<b>Show</b>"
},
{
"type": "boolean",
"key": "cameras",
"label": "cameras"
"label": "Cameras"
},
{
"type": "boolean",
"key": "clipGhosts",
"label": "clipGhosts"
},
{
"type": "boolean",
"key": "controlVertices",
"label": "controlVertices"
"label": "Clip Ghosts"
},
{
"type": "boolean",
"key": "deformers",
"label": "deformers"
"label": "Deformers"
},
{
"type": "boolean",
"key": "dimensions",
"label": "dimensions"
"label": "Dimensions"
},
{
"type": "boolean",
"key": "dynamicConstraints",
"label": "dynamicConstraints"
"label": "Dynamic Constraints"
},
{
"type": "boolean",
"key": "dynamics",
"label": "dynamics"
"label": "Dynamics"
},
{
"type": "boolean",
"key": "fluids",
"label": "fluids"
"label": "Fluids"
},
{
"type": "boolean",
"key": "follicles",
"label": "follicles"
"label": "Follicles"
},
{
"type": "boolean",
"key": "gpuCacheDisplayFilter",
"label": "gpuCacheDisplayFilter"
"label": "GPU Cache"
},
{
"type": "boolean",
"key": "greasePencils",
"label": "greasePencils"
"label": "Grease Pencil"
},
{
"type": "boolean",
"key": "grid",
"label": "grid"
"label": "Grid"
},
{
"type": "boolean",
"key": "hairSystems",
"label": "hairSystems"
"label": "Hair Systems"
},
{
"type": "boolean",
"key": "handles",
"label": "handles"
"label": "Handles"
},
{
"type": "boolean",
"key": "hud",
"label": "hud"
},
{
"type": "boolean",
"key": "hulls",
"label": "hulls"
"key": "headsUpDisplay",
"label": "HUD"
},
{
"type": "boolean",
"key": "ikHandles",
"label": "ikHandles"
"label": "IK Handles"
},
{
"type": "boolean",
"key": "imagePlane",
"label": "imagePlane"
"label": "Image Planes"
},
{
"type": "boolean",
"key": "joints",
"label": "joints"
"label": "Joints"
},
{
"type": "boolean",
"key": "lights",
"label": "lights"
"label": "Lights"
},
{
"type": "boolean",
"key": "locators",
"label": "locators"
"label": "Locators"
},
{
"type": "boolean",
"key": "manipulators",
"label": "manipulators"
"label": "Manipulators"
},
{
"type": "boolean",
"key": "motionTrails",
"label": "motionTrails"
"label": "Motion Trails"
},
{
"type": "boolean",
@ -499,50 +468,65 @@
"key": "nRigids",
"label": "nRigids"
},
{
"type": "boolean",
"key": "controlVertices",
"label": "NURBS CVs"
},
{
"type": "boolean",
"key": "nurbsCurves",
"label": "nurbsCurves"
"label": "NURBS Curves"
},
{
"type": "boolean",
"key": "hulls",
"label": "NURBS Hulls"
},
{
"type": "boolean",
"key": "nurbsSurfaces",
"label": "nurbsSurfaces"
"label": "NURBS Surfaces"
},
{
"type": "boolean",
"key": "particleInstancers",
"label": "particleInstancers"
"label": "Particle Instancers"
},
{
"type": "boolean",
"key": "pivots",
"label": "pivots"
"label": "Pivots"
},
{
"type": "boolean",
"key": "planes",
"label": "planes"
"label": "Planes"
},
{
"type": "boolean",
"key": "pluginShapes",
"label": "pluginShapes"
"label": "Plugin Shapes"
},
{
"type": "boolean",
"key": "polymeshes",
"label": "polymeshes"
"label": "Polygons"
},
{
"type": "boolean",
"key": "strokes",
"label": "strokes"
"label": "Strokes"
},
{
"type": "boolean",
"key": "subdivSurfaces",
"label": "subdivSurfaces"
"label": "Subdiv Surfaces"
},
{
"type": "boolean",
"key": "textures",
"label": "Texture Placements"
}
]
},
@ -555,47 +539,47 @@
{
"type": "boolean",
"key": "displayGateMask",
"label": "displayGateMask"
"label": "Display Gate Mask"
},
{
"type": "boolean",
"key": "displayResolution",
"label": "displayResolution"
"label": "Display Resolution"
},
{
"type": "boolean",
"key": "displayFilmGate",
"label": "displayFilmGate"
"label": "Display Film Gate"
},
{
"type": "boolean",
"key": "displayFieldChart",
"label": "displayFieldChart"
"label": "Display Field Chart"
},
{
"type": "boolean",
"key": "displaySafeAction",
"label": "displaySafeAction"
"label": "Display Safe Action"
},
{
"type": "boolean",
"key": "displaySafeTitle",
"label": "displaySafeTitle"
"label": "Display Safe Title"
},
{
"type": "boolean",
"key": "displayFilmPivot",
"label": "displayFilmPivot"
"label": "Display Film Pivot"
},
{
"type": "boolean",
"key": "displayFilmOrigin",
"label": "displayFilmOrigin"
"label": "Display Film Origin"
},
{
"type": "number",
"key": "overscan",
"label": "overscan",
"label": "Overscan",
"decimal": 1,
"minimum": 0,
"maximum": 10