-2

尝试将我的一个脚本导入 Maya 的内存时,我的 python 代码出现错误。

这是代码:

import solar_system as ss
import pymel.core as pm
import random

我收到了这个错误:

# Error: unindent does not match any outer indentation level
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "C:/Users/Owner/Documents/maya/2012-x64/prefs/scripts\solar_system.py", line 66
#     '''
#          
# ^
# IndentationError: unindent does not match any outer indentation level # 

那么,出于某种原因,它甚至希望 import solar_system 作为 ss 缩进?我真的不明白它要我做什么。有什么帮助吗?请?

4

1 回答 1

1

在您的文件solar_system.py中,第 66 行似乎存在缩进错误。您可能需要确保没有混合制表符和空格进行缩进。如果您可以发布该文件的前 70 行,我们可以告诉您更多有关其他可能错误的信息。

于 2012-04-06T20:32:28.913 回答