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

If rs.ObjectType ==4096 #error Object does not exist in Object Table

$
0
0

Hello everyone,

I have a problem with a Rhino Python script which should explode all blocks and delete the blocks.
In Rhino 7 this script part worked very reliably.

    all_objects = rs.AllObjects()
    for obj_id in all_objects:
        if rs.ObjectType(obj_id) == 4096:  #this line throws the error
            rs.Command('_-ExplodeBlock "{}" _Delete'.format(obj_id))

In Rhino 8 there is always an error “Object does not exist in Object Table”, for details see attached picture.

Many thanks to all of you!

best regards max

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4174

Latest Images

Trending Articles



Latest Images