Get class outside of thread

On 05/03/2014 at 12:24, xxxxxxxx wrote:

I am trying to find a way to call a plugin gui command.

def Command(self, id, msg) :
          if id == 10008:
                    #do somthing

inside of the Command() I have another class that is threaded

class UserThread(C4DThread) :

When that gets called and values are correct I want to call 10008 of Command() from within UserThread()

using Command(self,10008) does not work.

Any help would be appreciated.

On 11/04/2014 at 07:37, xxxxxxxx wrote:

You must apply proper data synchronization and have a queue that will contain data which
is processed from the main thread which in turn invokes the Command() method.

GeDialog.Timer() is quite useful to make sure you process the data within a certain
time interval at least.

Best,
-Niklas