nux95

Py4D Tutorials Pt. 2.1 - 04

Sep 5th, 2011
207
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import c4d
  2. name = c4d.GetObjectName(c4d.Osphere)
  3. text = "The name of a sphere object in your language is: " + name
  4. text = text + "\nIs this right ?"
  5. result = c4d.gui.MessageDialog(text, c4d.GEMB_YESNO)
  6.  
  7. if result == c4d.GEMB_R_YES:
  8.     c4d.gui.MessageDialog("Test successful.")
  9. else:
  10.     c4d.gui.MessageDialog("You should report this to Maxon !")
RAW Paste Data