标签:
import c4d #Welcome to the world of Python def main(): op = c4d.BaseObject(c4d.Ocube) doc.InsertObject(op)
创建一个cube,插入到objects面板内.
import c4d #Welcome to the world of Python def main(): obj = op.GetObject() userData = obj[c4d.ID_USERDATA, 1] print(userData)
取UserData下标从1开始,这里第一个值是bool型,15%,打印值是0.15
标签:
原文地址:http://www.cnblogs.com/hont/p/4677411.html