Quantcast
Channel: CGTalk - Autodesk Maya
Viewing all articles
Browse latest Browse all 2605

Unident error

$
0
0
Forum: Autodesk Maya
Posted By: majeh
Post Time: 06 June 2017 at 03:48 AM
Text:

I am writing a code for a new auto rigger but am stuck it says there is a unident error and i narrowed it down to self.UIElements on the first part of the script any help would be much appreciated i have checked and made sure its all spaces no tabs.
import maya.cmds as cmds

class Blueprint_UI:
*** def __init__(self):
*** # Store UI elements in a dictionary
*** self.UIElements = {}
** *** ** *
*** if cmds.window("blueprint_UI_window", exists=True):
****** cmds.deleteUI("blueprint_UI_window")
** *** *** ** *
*** windowWidth = 400
*** windowHeight = 598** *** *
** *** *** *
*** self.UIElements["window"] = cmds.window("blueprint_UI_window", width=windowWidth, height=windowHeight, title="Generate Module UI", sizeable=False)
** *** * *
*** #Display window
*** cmds.showWindow( self.UIElements["window"] )

Viewing all articles
Browse latest Browse all 2605

Latest Images

Trending Articles



Latest Images