Error: Problem with the API object returned by __apiobject__ method

Hello,
I’m using the Sets command in my script to select vertices via the operations union, subtract, and intersect. Every time I run the script, it selects the correct vertices, but throws this error:

Error: Problem with the API object returned by __apiobject__ method

I wasn’t able to find any more information about the error. Does anyone have a guess what might be happening and how I might fix it?

Thank you! :):

Hi, can you share the exact code you’re using in your script? Thanks

Thank you for the response!

I solved the issue…I’m not sure which thing it was, but I switched from cmd.select to pm.select. I also switched to using the “get____” operation methods for Selection Sets rather than using the Set Commands.

Thanks again.

Thank you blast frame yes it worked