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

    Script Manager's Default Text

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 286 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

      On 10/11/2016 at 08:10, xxxxxxxx wrote:

      Hi,
      This has annoyed me for years.
      When we select File->New in the script manager. We get this default text:

      import c4d  
      from c4d import gui  
      #Welcome to the world of Python  
        
      def main() :  
        gui.MessageDialog('Hello World!')  
        
      if __name__=='__main__':  
        main()
      

      That helps people new to Python. But it quickly becomes very annoying having to delete things like "Welcome to the world of Python" and "gui.MessageDialog('Hello World!')" every freakin' damned time you make a new script.😠
      Same thing goes for the text in the pytag.
      I would reeaaallllyyy like to replace that default text with my own default text. This should be an option in the preferences.

      I tried to see if could find where this text was hidden in the program files. But I couldn't find it.
      Does anyone know where this text is in the files? Or is it hard coded and out of our reach?

      -ScottA

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

        On 11/11/2016 at 09:55, xxxxxxxx wrote:

        Hi Scott,

        unfortunately the default scripts are hard coded. I'm sorry. I'll post an idea to make these configurable.

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

          On 11/11/2016 at 10:45, xxxxxxxx wrote:

          I was afraid of that.
          Thanks for checking though Andreas.

          -ScottA

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