0

第一次使用 Houdini,所以我想看看如何使用 python 在其中编写代码。我使用了这个网站的代码:http: //www.deborahrfowler.com/PythonResources/PythonHoudiniExamplePhyllotaxis.html

当我尝试调用eval()网站上看到的函数时,我收到了错误AttributeError: 'NoneType' object has no attribute 'eval'

如果我删除该功能eval(),我会收到此错误:

Traceback (most recent call last):
  File "<stdin>", line 10, in <module>
TypeError: 'NoneType' object cannot be interpreted as an integer`  

我看过一些视频,因为我知道您可以在Edit Parameter界面中创建参数并使用侧面看到的 python 脚本引用它们。

但到目前为止我还没有成功。我已经按照网站上的步骤进行了操作,所以我不确定出了什么问题。

4

0 回答 0