renderpal submission integration
Helper last edited by
On 14/03/2014 at 06:16, xxxxxxxx wrote:
anyone working on a python plugin to integrate renderpal with C4D?
I have a basic framework started, but as I dont want to reinvent the wheel. maybe someone has already done some work on it, and wants to share.
the basic engine is working, but I am struggling with the gui part in C4D.
I dont seem to be able to publish text inputs or buttons on the canvas of my GeDialog() I opened.
I also tried the example script, but that doesnt display anything in the pop up window as well.
from c4d import gui
class exampleDlg(gui.GeDialog) :
def CreateLayout(self) :
#create the layout of the dialog
self.GroupBegin(GROUP_ID1, c4d.BFH_SCALEFIT, 3, 1)
self.AddButton(BUTTON1, c4d.BFH_SCALE, name="MessageDialog")
self.AddButton(BUTTON2, c4d.BFH_SCALE, name="Close")
def InitValues(self) : self.SetString(TEXTBOX, "Hello World") return True def Command(self, id, msg) : if id == BUTTON1: gui.MessageDialog(self.GetString(TEXTBOX)) elif id == BUTTON2: self.Close() return True
dlg = ExampleDlg()
dlg.Open(c4d.DLG_TYPE_MODAL, defaultw=300, defaulth=50)