Hi, this is just an idea to make using PD more convenient. I like to place dark grey canvas with 3000x3000 px dimensions under all objects in my patch to effectively get dark background. I also like to use color coded toggles, sliders and bang objects. so I thought that it would be cool to replace the default empty file with a custom one. Is it possible?
Customize default "new file" with objects inside
@5tepan No. Well it might be possible with a plugin but........
You can of course create your custom patch and "open" it instead of using "new".
Then save it with the new name as you would do for "untitled-1.pd".
OK, I will maybe try to remap the cmd-n shortcut to open that file with a third party program.
@5tepan But you could make a pop-up menu for choosing coloured bangs sliders etc.
Here is an example........ pop-up.zip
I have included the 64-bit version of [sys-gui] for windows.
If you are on another os then you will need the hcs library.
You can add more menu items to the plugin (that must be in a path that Pd will search at start-up).
Here is the doc for the formatting for Pd when you want to dynamically "put" something into the patch.......... https://puredata.info/docs/developer/PdFileFormat
You will need that to help you set new menu items in the pop-up.
here's one that works - I couldn't figure out how to change the directory of an opened canvas so I just named it "Untitled" to trigger the "save as" menu.. but the dialog window path will start out in the plugin directory
so yeah, should work if you edit template.pd & put the folder in your pd path. Then there'll be a "New from template" File menu item (you can rename this by editing the .tcl file also)