Script Manager's Default Text



  • 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



  • 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.



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

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

    -ScottA


Log in to reply