Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Login

    Start script

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 621 Views
    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 Offline
      Helper
      last edited by

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

      On 26/10/2011 at 01:54, xxxxxxxx wrote:

      I would like to write a script, but I'm not able to start it. If I click on run nothing happen. Can anywhone tell me, how to start a script in C4D R13?

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

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

        On 26/10/2011 at 02:06, xxxxxxxx wrote:

        What do you mean by script exactly? Can you give an example?

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

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

          On 26/10/2011 at 05:07, xxxxxxxx wrote:

          I tried for example

          > import c4d
          > c4d.gui.messagebox("Hello World")
          >
          It's an example from http://www.total3d.de

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

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

            On 26/10/2011 at 05:29, xxxxxxxx wrote:

            The tutorial on Total3d is about the old API of Py4D before it was integrated in CINEMA 4D. With the integration in R12 the API was updated. The script now looks like this:

            import c4d
            from c4d import gui
            gui.MessageDialog("Hello World!")
            

            If you open the Console "Script->Console" you will also see an error message if you start your script.

            AttributeError: 'module' object has no attribute 'messagebox'
            

            I hope this helps. Cheers, Sebastian

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

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

              On 26/10/2011 at 06:20, xxxxxxxx wrote:

              I hope those may be a good introduction to you.

              http://forums.cgsociety.org/showthread.php?f=47&t=1005134

              Cheers, Niklas

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

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

                On 26/10/2011 at 06:50, xxxxxxxx wrote:

                OK, that solves my first problem. Now I have to set the texture of the objects (see the other thread).

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