Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

I get this error when i click a material: " # Error: line 1: TypeError: file C:\solidangle\mtoadeploy\2017\scripts\mtoa\ui\ae\aiSwatchDisplay.py line 45: bad operand type for unary -: 'unicode' "

3 ANTWORTEN 3
Antworten
Nachricht 1 von 4
kieart
2169 Aufrufe, 3 Antworten

I get this error when i click a material: " # Error: line 1: TypeError: file C:\solidangle\mtoadeploy\2017\scripts\mtoa\ui\ae\aiSwatchDisplay.py line 45: bad operand type for unary -: 'unicode' "

 
3 ANTWORTEN 3
Nachricht 2 von 4
Stephen.Blair
als Antwort auf: kieart

Strange, because I've never seen any other reports of this.

What happens in you run this Python in the script editor?

gTextColumnWidthIndex = mel.eval("$tempVar=$gTextColumnWidthIndex;") 

print -gTextColumnWidthIndex

Do you get the same error?

I suppose you could change line 45 like this:

                    aof=[('swatchLabel', "right", -int(gTextColumnWidthIndex))],

but the question is why does this happen on this one system?



// Stephen Blair
// Arnold Renderer Support
Nachricht 3 von 4
kieart
als Antwort auf: Stephen.Blair

:leicht_lächelndes_Gesicht: I have fixed this error, i delete maya folder in Document Folder -> It oke :leicht_lächelndes_Gesicht: Thanks bro :grinsendes_Gesicht_mit_lächelnden_Augen:

Nachricht 4 von 4
kirstieGW8NJ
als Antwort auf: kieart

In response to the Python code I get this '# Error: TypeError: file <maya console> line 3: bad operand type for unary -: 'unicode' # ' instead of line 45 as it was in the above example. I'm using Maya 2019.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report