I currently developping a light lister for multiple render engine. You can have an old preview here https://vimeo.com/207388639
For the moment I succefully support C4d / Redshift / Arnold and Corona and I would like to expend it to Octane.
Octane seem to use a lot of very litlle float and it have register it's own custom gui for displaying those wich is a good idea.
Sadly I don't succes to recreate them into a Gedialog. So I asking you if you can provide me an exemple for create such an UI directly into a Gedialog and if you could provide me a set/get method it will be nice too
Here is an attempt by copying data of the emp parameter. The ui is well created but I can't set/get value from it.
- Code: Select all
import c4d
OCTANE_FLOATSLIDER = 1030680
OCTANE_TAG = 1029526
def getbc():
tag = c4d.BaseTag(OCTANE_TAG)
description = tag.GetDescription(c4d.DESCFLAGS_DESC_0)
save_bc = c4d.BaseContainer()
for bc, paramid, groupid in description:
if paramid[0].id == c4d.LIGHTTAG_BB_TEMPERATURE:
save_bc = bc
for index, value in save_bc:
print "Index: %i, Value: %s" % (index, str(value))
print "--------"
return save_bc
class mainDialog(c4d.gui.GeDialog):
def CreateLayout(self):
bc = getbc()
if bc:
self.linkslot=self.AddCustomGui(9999, bc[21], "Shot Cam Slot", c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 0, 0, bc)
self.AddButton(1001, c4d.BFH_CENTER, 60, 15, "")
return True
def main():
main_dlg = mainDialog()
main_dlg.Open(dlgtype=c4d.DLG_TYPE_MODAL, defaultw=300, defaulth=150, xpos=-1, ypos=-1)
if __name__=='__main__':
main()
Thanks in advance and I hope I'm in the good place for post it