Hi everyone,
I'm working on a plugin, and I'm having some issues with isolation mode.
What I'm trying to do is to edit some objects while preserving the isolation mode.
For example, if I have line A in isolation mode, but I want to edit line B, I want to leave isolation mode, edit line B and restore isolation mode for line A.
But the issue I'm having is that the functions don't seem to be working properly.
First I get what art is in isolated mode:
sAIIsolationMode->GetIsolatedArtAndParents(&handle, nullptr);
Then I leave isolation mode:
sAIIsolationMode->CancelIsolationMode();
This part works properly, but after I do my changes I try to restore the isolation mode:
if (sAIIsolationMode->GetArtToIsolate(handle))
{
if (sAIIsolationMode->CanIsolateArt(handle))
{
sAIIsolationMode->EnterIsolationMode(handle, true);
}
}
I also tried not to use GetArtToIsolate function, or use uuids instead of the art handle, but all of these seem to not work, the art just stays not-isolated...
Does anybody have any suggestions?
Thanks in advance, best regards,
Diogo