I have a dialog button which hangs when I click it but it only hangs for a specific scene.
From looking at the printout in the python console window, it appears that when I click the 'Submit' button, it never reaches the call to Command()
TTR_PLUGIN_ID = 999121032
TTR_CANCEL_BUTTON = 12003
TTR_SUBMIT_BUTTON = 12004
def Command(self, id, msg):
print('TurnTableRenderDialog::Command()')
print('id = {}'.format(id))
print('TTR_SUBMIT_BUTTON = {}'.format(TTR_SUBMIT_BUTTON))
if (id == TTR_SUBMIT_BUTTON):
print('TTR_SUBMIT_BUTTON')
def CreateLayout(self):
'''
Frame Chunk size,
Render folder prefix
Frame range (start, end)
'''
self.SetTitle('Submit turn table to Tractor (PlutoWithDamage)')
self.GroupBegin(id=1013, flags=c4d.BFH_SCALEFIT, cols=1)
#
self.GroupBegin(id=1014, flags=c4d.BFH_SCALEFIT, cols=2)
self.AddStaticText(TTR_COMMENT_LABEL, c4d.BFV_MASK |
c4d.BFH_RIGHT, name="Comments")
self.AddEditText(TTR_COMMENT_EDIT, c4d.BFV_MASK |
c4d.BFH_LEFT, initw=400)
self.AddStaticText(TTR_FRAME_RANGE_LABEL, c4d.BFV_MASK |
c4d.BFH_RIGHT, name="Frame range (start,end,step)")
self.GroupBegin(id=1015, flags=c4d.BFH_SCALEFIT, cols=3)
self.AddEditNumberArrows(TTR_FRAME_RANGE_START, c4d.BFV_MASK, initw=100)
self.AddEditNumberArrows(TTR_FRAME_RANGE_END, c4d.BFV_MASK, initw=100)
self.AddEditNumberArrows(TTR_FRAME_RANGE_STEP, c4d.BFV_MASK, initw=100)
self.GroupEnd()
self.GroupEnd()
#
self.GroupBegin(id=1016, flags=c4d.BFV_MASK | c4d.BFH_RIGHT, cols=2)
self.AddButton(TTR_CANCEL_BUTTON, c4d.BFV_MASK |
c4d.BFH_RIGHT, initw=100, name="Cancel")
self.AddButton(TTR_SUBMIT_BUTTON, c4d.BFV_MASK |
c4d.BFH_RIGHT, initw=100, name="Submit")
self.GroupEnd()