[C4D/Python] 判断对象是否是为参数化物体
in 学术 with 0 comment

[C4D/Python] 判断对象是否是为参数化物体

in 学术 with 0 comment

反馈已选择对象的列表

doc.GetActiveObjects(0)

遍历已选择对象并逐个反馈是否被C掉

for obj in doc.GetActiveObjects(0):
    if type(obj) == c4d.PolygonObject:
        gui.MessageDialog('我被C掉啦!')
    else type(obj) == c4d.BaseObject:
        gui.MessageDialog('参数化物体!')
Comments are closed.