On 22/05/2014 at 11:36, xxxxxxxx wrote:
Is it possible to use a c4d.CallCommand() In A thread?
Here is a small snipet of my code:
import c4d,time
from c4d import gui
import socket
class RB_Client(c4d.threading.C4DThread) :
global Cthread
def Main(self) :
print "Before"
c4d.CallCommand(12099) # Render to Picture Viewer
print "After"
global Cthread
Cthread = RB_Client()
Cthread.Start()
This should send the current scene to render in the picture viewer, instead it is ignored/nothing happens. Any help on this would be great!