Threading Commands or UI



Is it possible to kick off either commands or UI in a thread?

I have a plugin that runs some fairly CPU intensive stuff. I would like to have a UI panel get displayed before things start executing, but because everything happens on one thread everything just locks up for the duration and then the UI appears when all is done.

Right now, I’m creating and displaying a panel, running some script commands, executing some web based C# code, then updating the UI again. All this is inside my plugins’ RunCommand call.


Nevermind. I’ve got it handled.

Added a BackgroundWorker to take care of all of the non UI commands.