THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/03/2012 at 08:31, xxxxxxxx wrote:
please read the manual. you need to overwrite CreateLayout. however scripts are not meant to
use dialogs. c4ds native gui approach are descriptions, so create a command/object/tooldata plugin
and use descriptions or use a python generator/tag in cobination with the custom description
frontend userdatas.
your example for a scripting solution could be solved with something like this :
def main() :
myDialog = CustomDialog()
myDialog.Open(c4d.DLG_TYPE_MODAL_RESIZEABLE)
class CustomDialog(c4d.gui.GeDialog) :
def CreateLayout(self) :
self.AddEditSlider(30, c4d.BFH_CENTER, initw=-70, inith=0)
return True