Make auto-save on default
10963 8 4-
- mzigaib
- Member
- 901 posts
- Joined: 4月 2008
- Offline
-
- Ondrej
- スタッフ
- 1069 posts
- Joined: 7月 2005
- Offline
-
- galagast
- Member
- 252 posts
- Joined:
- Offline
Hi, thanks for this.
I just wanted to make a note here just in-case I forget the method in the future.
Windows:
I just wanted to make a note here just in-case I forget the method in the future.
Windows:
- Go to your Documents/HoudiniX.X
- Create a “scripts” folder.
- Inside the scripts folder, create a 123.cmd (or also a 456.cmd) file - using notepad will do.
- Add “autosave on” for the files (without quotes).
So far, that is how it worked on my Win10, Houdini Indie 15
-
- Raphtillie
- Member
- 5 posts
- Joined: 9月 2014
- Offline
-
- peteski
- Member
- 517 posts
- Joined: 12月 2013
- Offline
-
- f4xc0rp
- Member
- 12 posts
- Joined: 10月 2019
- Offline
-
- mandrake0
- Member
- 616 posts
- Joined: 6月 2006
- Offline
It's in the doc's.
456.cmd or 456.py will be executed when the user loads a hip file.
https://www.sidefx.com/docs/houdini/hom/locations.html#startup [www.sidefx.com]
456.cmd or 456.py will be executed when the user loads a hip file.
https://www.sidefx.com/docs/houdini/hom/locations.html#startup [www.sidefx.com]
-
- SWest
- Member
- 308 posts
- Joined: 10月 2016
- Offline
While you're at it, add a line that creates a new folder (maybe today's date) and saves your file there because I don't think auto save will work unless you first do that.
Here's some Py for your shelf
Here's some Py for your shelf
# AUTOSAVE TOGGLE autoSave = hou.getPreference('autoSave') if autoSave == '1': hou.setPreference('autoSave','0') hou.ui.displayMessage('Autosave is now disabled') if autoSave == '0': hou.setPreference('autoSave','1') hou.ui.displayMessage('Autosave is now active')
Edited by SWest - 2023年8月9日 07:00:40
Interested in character concepts, modeling, rigging, and animation. Related tool dev with Py and VEX.
-
- Jonathan de Blok
- Member
- 194 posts
- Joined: 7月 2013
- Offline
If you place the afterSceneSave handler, linked below, in the same scripts folder it will do some housekeeping only keeping a certain number of backups, see source to set the number to keep. (make sure to keep the exact filename, houdini uses that to identify it's function)
https://www.dropbox.com/scl/fi/pv3v2rm1gnhovy6cj23hv/afterscenesave.py?rlkey=608r3wn14kx89zvs746najcet&dl=0 [www.dropbox.com]
https://www.dropbox.com/scl/fi/pv3v2rm1gnhovy6cj23hv/afterscenesave.py?rlkey=608r3wn14kx89zvs746najcet&dl=0 [www.dropbox.com]
-
- Quick Links