To get an overview of the class members, check out the diagram.
Note
File dialogs are stored in c4d.storage.
//Dialogs
//Useful stuff
// Interactions
Display a message dialog with the string as the message:
from c4d import gui
gui.MessageDialog("Why do you take baths in milk?'\n'I can't find a cow tall enough for a shower.")

| Parameters: |
|
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | int |
||||||||||||||
| Returns: | Result of the messagebox, stored in c4d.gui.
|
Opens a standard question dialog with a question mark icon and Yes/No buttons. The text is specified as a string:
from c4d import gui
rvalue = gui.QuestionDialog("Do you think I am a dialog?")

| Parameter: | text (str) – The string to show. |
|---|---|
| Return type: | bool |
| Returns: | True if the user answered Yes, otherwise False. |
Opens a dialog to rename a string:
from c4d import gui
#name = op.GetName() #return the name of an object
rvalue = gui.RenameDialog(name) #pass it
#rvalue contains the name False if the user abort the dialog

| Parameter: | text (str) – The string |
|---|---|
| Return type: | str or False |
| Returns: | Returns the changed string or False on abort. |
Open an input dialog which returns the input string.
| Returns text: | The label string |
|---|---|
| Returns preset: | The default value which will be written on popup |
| Return type: | str |
| Returns: | The input as string |
Open a color chooser dialog for the user to select a color. The look of this dialog depends on the operating system.

| Return type: | Vector or None |
|---|---|
| Returns: | Returns a c4d.Vector on success, otherwise None |
Open a font chooser dialog for the user to select a font. The look of this dialog depends on the operating system.

| Return type: | BaseContainer or None |
|---|---|
| Returns: | Returns a c4d.BaseContainer with the font settings, otherwise None |
Shows a popup menu with of the given object tuple and lets the user choose an object at the position of the mouse.
| Parameters: |
|
|---|---|
| Return type: | int |
| Returns: | The user choice or NOTOK if nothing was selected. |
Displays a popup menu:
import c4d
from c4d import gui
entries = c4d.BaseContainer()
entries.SetString(0, "Title&d&") #title, just append '&d&'
entries.SetString(2, "Hello")
entries.SetString(3, "World!")
result = gui.ShowPopupDialog(bc=entries, x=70, y=90)
print result

| Parameters: |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | int |
||||||||||||||||||
| Returns: | The ID of the selected item, or 0 if nothing was selected. |
Set the type of mouse pointer.
| Parameter: | l (int) – Values for the mouse pointer image, stored in c4d.gui:
|
|---|