Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想添加一个名为的参数initialPosx,我可以以这种方式使用它:
initialPosx
a = box a.initialPosx = n
有什么办法吗?
阅读脚本化自定义属性和脚本化插件条款主题。在你的情况下,一个简单的例子是:
a = Box() attr = attributes attr (parameters main (initialPosX type:#point3)) custAttributes.add a attr a.initialPosX = [5, 10, 0]