Package mrv :: Package maya :: Package ui :: Module editor
[hide private]
[frames] | no frames]

Source Code for Module mrv.maya.ui.editor

  1  # -*- coding: utf-8 -*- 
  2  """ 
  3  Contains implementations of maya editors 
  4  """ 
  5  __docformat__ = "restructuredtext" 
  6  import base as uibase 
  7  import util as uiutil 
  8   
  9   
10 -class EditorBase( uibase.NamedUI, uiutil.UIContainerBase ):
11 """ Structural base for all Layouts allowing general queries and name handling 12 Layouts may track their children """ 13 14 _properties_ = ( 15 "panel", "pnl", 16 "control", "ctl", 17 "mainListConnection", "mlc", 18 "forceMainConnection", "fmc", 19 "selectionConnection", "slc", 20 "highlightConnection", "hlc", 21 "filter", "f", 22 "lockMainConnection", "lck", 23 "stateString", "sts", 24 "unlockMainConnection", "ulk", 25 "updateMainConnection", "upd", 26 "docTag", "dtg" 27 )
28 29
30 -class ColorEditor( uibase.NamedUI ):
31 _properties_ = ( 32 "rgbValue", "rgb", 33 "hsvValue", "hsv", 34 "alpha", "a", 35 "result", "r" 36 )
37
38 -class BlendShapeEditor( EditorBase ):
39 _properties_ = ( 40 "verticalSliders", "vs", 41 "targetControlList", "tcl", 42 "targetList", "tl" 43 )
44
45 -class OutlinerEditor( EditorBase ):
46 _properties_ = ( 47 "showShapes", "shp", 48 "attrFilter", "af", 49 "showAttributes", "atr", 50 "showConnected", "con", 51 "showAnimCurvesOnly", "aco", 52 "showTextureNodesOnly", "tno", 53 "showDagOnly", "dag", 54 "ignoreDagHierarchy", "hir", 55 "autoExpand", "xpd", 56 "expandConnections", "xc", 57 "showUnitlessCurves", "su", 58 "showCompounds", "cmp", 59 "showLeafs", "laf", 60 "showNumericAttrsOnly", "num", 61 "editAttrName", "ean", 62 "showUVAttrsOnly", "uv", 63 "highlightActive", "ha", 64 "highlightSecondary", "hs", 65 "autoSelectNewObjects", "as", 66 "doNotSelectNewObjects", "dns", 67 "dropIsParent", "dip", 68 "transmitFilters", "tf", 69 "showSelected", "sc", 70 "setFilter", "sf", 71 "showSetMembers", "ssm", 72 "allowMultiSelection", "ams", 73 "alwaysToggleSelect", "ats", 74 "directSelect", "ds", 75 "object", "Obj", 76 "displayMode", "dm", 77 "expandObjects", "eo", 78 "setsIgnoreFilters", "sif", 79 "showAttrValues", "av", 80 "masterOutliner", "mst", 81 "isChildSelected", "ics", 82 "attrAlphaOrder", "aao", 83 "sortOrder", "so", 84 "longNames", "ln", 85 "niceNames", "nn", 86 "showNamespace", "sn" 87 ) 88 _events_ = ( "selectCommand", "sec" )
89
90 -class AnimEditorBase( EditorBase ):
91 _properties_ = ( 92 "displayKeys", "dk", 93 "displayTangents", "dtn", 94 "displayActiveKeys", "dak", 95 "displayActiveKeyTangents", "dat", 96 "displayInfinities", "di", 97 "autoFit", "af", 98 "lookAt", "la", 99 "snapTime", "st", 100 "snapValue", "sv" 101 )
102
103 -class AnimCurveEditor( AnimEditorBase ):
104 _properties_ = ( 105 "showResults", "sr", 106 "showBufferCurves", "sb", 107 "smoothness", "s", 108 "resultScreenSamples", "rss", 109 "resultUpdate", "ru", 110 "clipTime", "ct", 111 "curvesShown", "cs" 112 ) 113 _events_ = ( 114 "normalizeCurvesCommand", "ncc", 115 "denormalizeCurvesCommand", "dcc" 116 )
117 118
119 -class RenderEditorBase( EditorBase ):
120 _properties_ = ( 121 "scaleRed", "sr", 122 "scaleGreen", "sg", 123 "scaleBlue", "sb", 124 "singleBuffer", "sbf", 125 "doubleBuffer", "dbf", 126 "displayImage", "di", 127 "loadImage", "li", 128 "writeImage", "wi", 129 "displayStyle", "dst", 130 "removeImage", "ri", 131 "removeAllImages", "ra", 132 "saveImage", "si", 133 "nbImages", "nim" 134 )
135 136
137 -class RenderWindowEditor( RenderEditorBase ):
138 _properties_ = ( 139 "toggle", "tgl", 140 "marquee", "mq", 141 "resetRegion", "rr", 142 "autoResize", "ar", 143 "showRegion", "srg", 144 "snapshot", "snp", 145 "currentCamera", "crc", 146 "clear", "cl", 147 "frameImage", "fi", 148 "frameRegion", "fr", 149 "realSize", "rs", 150 "caption", "cap", 151 "pcaption", "pca", 152 "compDisplay", "cd", 153 "blendMode", "blm", 154 "compImageFile" 155 ) 156 _events_ = ( "changedCommand", "cc" )
157 158
159 -class GlRenderEditor( EditorBase ):
160 _properties_ = ( 161 "viewCameraName", "vcn", 162 "lookThru", "lt", 163 "modelViewName", 164 "glRenderViewName", "rvn" 165 )
166
167 -class ModelEditor( EditorBase ):
168 _properties_ = ( 169 "camera", "cam", 170 "cameraName", "cn", 171 "displayLights", "dl", 172 "bufferMode", "bm", 173 "activeOnly", "ao", 174 "interactive", "i", 175 "twoSidedLighting", "tsl", 176 "displayAppearance", "da", 177 "wireframeOnShaded", "wos", 178 "headsUpDisplay", "hud", 179 "selectionHiliteDisplay", "sel", 180 "useDefaultMaterial", "udm", 181 "useColorIndex", "uci", 182 "wireframeBackingStore", "wbs", 183 "useRGBImagePlane", "ip", 184 "updateColorMode", "ucm", 185 "colorMap", "cm", 186 "backfaceCulling", "bfc", 187 "xray", "xr", 188 "maxConstantTransparency", "mct", 189 "displayTextures", "dtx", 190 "smoothWireframe", "swf", 191 "textureMaxSize", "tms", 192 "textureMemoryUsed", "tmu", 193 "textureAnisotropic", "ta", 194 "textureSampling", "ts", 195 "textureDisplay", "td", 196 "textureHighlight", "th", 197 "fogging", "fg", 198 "fogSource", "fsc", 199 "fogMode", "fmd", 200 "fogDensity", "fdn", 201 "fogEnd", "fen", 202 "fogStart", "fst", 203 "fogColor", "fcl", 204 "shadows", "sdw", 205 "rendererName", "rnm", 206 "rendererList", "rls", 207 "rendererListUI", "rlu", 208 "colorResolution", "crz", 209 "bumpResolution", "brz", 210 "transparencyAlgorithm", "tal", 211 "transpInShadows", "tis", 212 "cullingOverride", "cov", 213 "lowQualityLighting", "lql", 214 "occlusionCulling", "ocl", 215 "useBaseRenderer", "ubr", 216 "nurbsCurves", "nc", 217 "nurbsSurfaces", "ns", 218 "polyMeshes", "pm", 219 "subdivSurfaces", "sds", 220 "planes", "pl", 221 "lights", "lt", 222 "cameras", "ca", 223 "controlVertices", "cv", 224 "grid", "gr", 225 "hulls", "hu", 226 "joints", "j", 227 "ikHandles", "ikh", 228 "deformers", "df", 229 "dynamics", "dy", 230 "fluids", "fl", 231 "hairSystems", "hs", 232 "follicles", "fo", 233 "nCloths", "ncl", 234 "nRigids", "nr", 235 "dynamicConstraints", "dc", 236 "locators", "lc", 237 "manipulators", "mlocators", 238 "dimensions", "dim", 239 "handles", "ha", 240 "pivots", "pv", 241 "textures", "tx", 242 "strokes", "str", 243 "allObjects", "alo", 244 "useInteractiveMode", "ui", 245 "activeView", "av", 246 "sortTransparent", "st", 247 "viewSelected", "vs", 248 "setSelected", "ss", 249 "addSelected", "as", 250 "addObjects", "aob", 251 "viewObjects", "vo", 252 "noUndo", "nud" 253 )
254 255
256 -class ClipEditor( AnimEditorBase ):
257 _properties_ = ( 258 "characterOutline", "co", 259 "highlightedBlend", "hb", 260 "highlightedClip", "hc", 261 "selectBlend", "sb", 262 "selectClip", "sc", 263 "deselectAll", "da", 264 "frameAll", "fa", 265 "listAllCharacters", "lac", 266 "listCurrentCharacters", "lc", 267 "menuContext", "mc", 268 "allTrackHeights", "th" 269 ) 270 271 _events_ = ( 272 "clipDropCmd", "cd", 273 "deleteCmd", "dc" 274 )
275
276 -class DeviceEditor( EditorBase ):
277 _properties_ = ( "takePath", "tp" )
278 279
280 -class DynPaintEditor( RenderEditorBase ):
281 _properties_ = ( 282 "clear", "cl", 283 "displayAppearance", "dsa", 284 "displayLights", "dsl", 285 "displayTextures", "dtx", 286 "menu", "mn", 287 "newImage", "ni", 288 "wrap", "wr", 289 "zoom", "zm", 290 "camera", "cam", 291 "paintAll", "pa", 292 "rollImage", "rig", 293 "tileSize", "ts", 294 "snapShot", "snp", 295 "undoCache", "uc", 296 "canvasUndo", "cu", 297 "canvasMode", "cm", 298 "redrawLast", "rl", 299 "refreshMode", "rmd", 300 "autoSave", "as", 301 "saveAlpha", "sa", 302 "drawContext", "drc", 303 "activeOnly", "ao", 304 "fileName", "fil", 305 "saveBumpmap", "sbm", 306 "iconGrab", "ig", 307 "displayFog", "dfg", 308 "currentCanvasSize", "ccs" 309 )
310 311
312 -class ComponentEditor( EditorBase ):
313 _properties_ = ( 314 "lockInput", "li", 315 "precision", "pre", 316 "setOperationLabel", "sol", 317 "operationLabels", "ol", 318 "operationCount", "oc", 319 "operationType", "ot", 320 "hideZeroColumns", "hzc", 321 "sortAlpha", "sa", 322 "showObjects", "so", 323 "showSelected", "ss", 324 "floatSlider", "fs", 325 "floatField", "ff", 326 "hidePathName", "hpn", 327 "newTab", "nt", 328 "removeTab", "rt", 329 "selected", "sl" 330 )
331 332
333 -class SelectionConnection( uibase.NamedUI ):
334 _properties_ = ( 335 "filter", "f", 336 "global", "g", 337 "object", "obj", 338 "connectionList", "lst", 339 "switch", "sw", 340 "editor", "ed", 341 "addTo", "add" 342 "remove", "rm", 343 "findObject", "fo", 344 "identify", "id", 345 "lock", "lck", 346 "clear", "clr", 347 "select", "s", 348 "deselect", "d" 349 ) 350 351 _events_ = ( 352 "addScript", "as", 353 "removeScript", "rs" 354 )
355 356
357 -class ItemFilterBase( uibase.BaseUI ):
358 _properties_ = ( 359 "byName", "bn", 360 "union", "un", 361 "intersect", "in", 362 "difference", "di", 363 "negate", "neg", 364 "text", "t", 365 "classification", "cls", 366 "listBuiltInFilters", "lbf", 367 "listUserFilters", "luf", 368 "listOtherFilters", "lof" 369 ) 370 371 _events_ = ( 372 "byScript", "bs", 373 "secondScript", "ss" 374 )
375 376
377 -class ItemFilter( ItemFilterBase ):
378 _properties_ = ( 379 "byType", "bt", 380 "clearByType", "cbt", 381 "byBin", "bk", 382 "clearByBin", "cbk", 383 "category", "cat", 384 "uniqueNodeNames", "unn" 385 )
386
387 -class ItemFilterAttr( ItemFilterBase ):
388 _properties_ = ( 389 "hidden", "h", 390 "writable", "w", 391 "readable", "r", 392 "keyable", "k", 393 "scaleRotateTranslate", "srt", 394 "hasExpression", "he", 395 "byNameString", "bns" 396 )
397
398 -class ItemFilterRender( ItemFilterBase ):
399 _properties_ = ( 400 "category", "cat", 401 "shaders", "s", 402 "anyTextures", "at", 403 "textures2d", "t2d", 404 "textures3d", "t3d", 405 "lights", "l", 406 "postProcess", "pp", 407 "renderUtilityNode", "run", 408 "exclusiveLights", "exl", 409 "linkedLights", "ls", 410 "lightSets", "ls", 411 "nonIlluminatingLights", "nil" 412 "nonExclusiveLights", "nxl", 413 "renderableObjectSets", "ros", 414 "texturesProcedural", "tp" 415 )
416