nr.c4d.gui¶
Functions¶
-
nr.c4d.gui.handle_file_select(dialog, param, type=0, title='', flags=0, force_suffix='')[source]¶ Opens a file selection dialog for which the result will be filled into the parameter in the dialog identified with paramid. The Cinema 4D filename widget is a little buggy, and using this function is convenient if your dialog uses a string and button widget instead.
Parameters: - dialog –
c4d.gui.GeDialog - param –
int– The id of the string widget. - type –
int– Passed to c4d.storage.LoadDialog - title –
str– Seec4d.storage.LoadDialog() - flags –
int– Seec4d.storage.LoadDialog() - force_suffix –
str– Seec4d.storage.LoadDialog()
Returns: True if the file selection was handled and the parameter set, False if not.
- dialog –
Rect Objects¶
ExtendedUserArea Objects¶
IconView Objects¶
-
class
nr.c4d.gui.IconView(icon, alignh='center', alignv='center', width=None, height=None, bgcol=None, cursor=None)[source]¶ Bases:
nr.c4d.gui.ExtendedUserAreaSimple User Area to present an icon. If the icon is clicked, it will send a c4d.gui.GeDialog.Command() event with the ID of the user area.
-
AlignBottom= 'bottom'¶
-
AlignCenter= 'center'¶
-
AlignLeft= 'left'¶
-
AlignRight= 'right'¶
-
AlignTop= 'top'¶
-