Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Python GUIs

    PYTHON Development
    0
    2
    477
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 21/02/2011 at 16:40, xxxxxxxx wrote:

      Hello,

      I have used Python in C4D before, but just to whip out quick scripts
      that wrote data to text files, with no user interaction(no save file dialog, no export options, etc.)

      I would like to write an exporter that fits nicely in C4D and I have a few questions:

      1. Is it possible to write an exporter that will show in the File > Export menu ?
      (If I write a plugin with Python, will it show under Python > My Plugin only,
      or it possible to make it accessible through the File > Export menu ?
      Is it possible to write a plugin that will show in the File > Export menu, how ?)

      2. How do I get started with making GUIs in Python ?
      I've noticed the gui.GeDialog class has the functionality I need, but I can't seem
      to understand where to start. How do I create a basic dialog ? Is there a sample
      somewhere ?

      Thank you for your time,
      George

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 21/02/2011 at 22:14, xxxxxxxx wrote:

        Hi,

        I can't answer your first question, but the 2nd one though.
        Yes, it is possible to use GUIs with Python. You can Code
        them by yourself or you can use ResEdit.
        I didn't use Dialogs in Python yet, but in Coffee. You have to create an own class
        for the dialog there and i think its the same in Python.

        How to start ?
        Take a look into the GeDialog (or you better use a ModalDialog for an exporter, so check GeModalDialog)
        and also have a look at GeRessource. Create a dialog, save ir to your Plugin Path, load the ressource into a variable, give this ressource your Ge(Modal)Dialog-Subclass, finished. But that's just the simple explanation. :lol:
        You could also take a look into the MemoryViewer example for example. It uses a dialog, too, even the examples don't work anymore 😕

        Hopefully this helps you a little bit.
        Cheers, nux

        1 Reply Last reply Reply Quote 0
        • First post
          Last post