Can't select object unless save and re-open. Object created by plugin

I’m unable to select an object unless I save the file and re-open it. I’m sure it has something to do with the way my plugin operates. But I can’t figure out what might be causing the issue.

Is there some way to refresh the session short of saving and re-opening?

1 Like

It’s hard to know how to help without knowing more about what you’re doing, trying to do. Can you shed some light to help us help you @samlochner ? :slight_smile:

I’m automating cage edit to deform geometry. After it’s through automating, the geometry is no longer selectable unless I save and reopen the file. Maybe there is some way to refresh the geometry without having to reload…

1 Like

Could you share a small code sample that lets us repeat this?

It is a very big complex stretch of code doing this. It will take quite a bit of effort to break it down to something I can share that will recreate the issue. I can do it, but I’ll need to carve out a chunk of time for that…

My hope was that someone here might have come across this issue before, where the geometry is somehow locked and only accessible after reloading the file. And I’m hoping there is a way to refresh without reloading the file…

1 Like

I can imagine, but it would be very much appreciated. I believe there is a fix, but we need to be able to reproduce it to fix it :slight_smile:

Okay, I’m going to have to circle back on this, as it’s going to be a bigger project diagnosing it that I thought…

Thank you

@samlochner I see you are mentioning code, are you by chance used to hitting F5 to start debugging? If you hit F5 in Rhino, it enables the Selection Filter. Which may be preventing you from making any selections, depending upon the filter settings.

Next time you observe the issue type SelectionFilterNone into the command prompt and press ENTER. If you can again select things, that is likely your issue.

SelectionFilterIssue

1 Like

That’s not it, but thanks for the suggestion though.

1 Like