Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4175

Bug in object attributesin RhinoCommon

$
0
0

When I use the script it Ungroups the grouped objects and deletes all Usertexts? Is this a bug?

def ChangeMaterial(matIndex, ObjectID):
    attr = Rhino.DocObjects.ObjectAttributes()
    attr.MaterialIndex = matIndex
    attr.MaterialSource = Rhino.DocObjects.ObjectMaterialSource.MaterialFromObject
    attrChange = scriptcontext.doc.Objects.ModifyAttributes(ObjectID, attr, True)
    scriptcontext.doc.Views.Redraw();

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4175

Latest Images

Trending Articles



Latest Images