My code is this
def main():
scn = Scene.GetCurrent()
context = scn.getRenderingContext()
PREF_START_FRAME = Draw.Create(context.sFrame)
PREF_END_FRAME = Draw.Create(context.eFrame)
PREF_SCMD = Draw.String("StartCmd", 0, 0, 0, 60, 20, "", 399)
PREF_ECMD = Draw.String("EndCmd", 0, 0, 0, 60, 20, "", 399)
if not Draw.PupBlock('Add render commands', [\
('Start:', PREF_START_FRAME, 1, 300000, 'Frame from where to start rendering the animation'),\
('End:', PREF_END_FRAME, 1, 300000, 'Frame where to end rendering the animation and execute the command'),\
# ('Start command:', PREF_SCMD, 'Command to execute before starting the rendering process'),\
# ('End command:', PREF_ECMD, 'Command to execute when the rendering process ends'),\
]):
return
I tried making the last 2 ones draw.string, but it won’t work. How do I do it?