@e.pouls wrote:
Hi all,
I want to delete hidden objects via the objecttable using Rhino, python, rhinoscript, and combinations of those.
def RunCommand(): #all non-light objects that are selected object_enumerator_settings = ObjectEnumeratorSettings() object_enumerator_settings.NormalObjects = False object_enumerator_settings.LockedObjects = True object_enumerator_settings.HiddenObjects = True selected_objects = doc.Objects.GetObjectList(object_enumerator_settings) #Loop through hidden (?) objects? for select_object in selected_objects: #Delete them select_object.Attributes.Visible = True doc.Objects.Delete(select_object) select_object.CommitChanges() doc.Views.Redraw() return Result.Success if __name__ == '__main__': RunCommand()
This Deletes the objects that i can see in Rhino however if i run the command show the hidden object is still there, can i reverse this? Or am i doing it completely wrong?
Tnx, Eefje
Posts: 5
Participants: 2