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

IsObjectValid(object_id) returning error

$
0
0

Hi everyone, I’m getting an unusual behaviour when using IsObjectValid(object_id) to check a particular geometry.

Sometimes, it returns the message: “00000000-0000-0000-0000-000000000000 does not exist in ObjectTable”, which kills the script. I was expecting that in this case the method would return a False boolean. Is this working as intended?

I also found that with the boolean methods (BooleanDifference, BooleanUnion, etc), if the boolean fails, instead of returning False, the methods return “00000000-0000-0000-0000-000000000000”, despite documentation saying it should return False.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles