Benjamin Markus
BenjaminMarkus
About Me
EXPERTISE
Generalist
INDUSTRY
Advertising / Motion Graphics
Connect
LOCATION
United States
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Make auto-save on default June 2, 2024, 12:37 a.m.
BenjaminMarkuspeteski
I think now (in python 3) you have to put the print in brackets. So print ("Blah") or something like that. You could probably just remove that line or comment it out too.
Yeah that was the first thing I tried, but I still seemed to error out. I'll try again, also with it commented out.
I guess I forgot to add parenthesis to all the print commands. No more errors, but it still doesn't look like the script is working and pruning the old autosave and/or backups.
Make auto-save on default June 1, 2024, 6:47 p.m.
peteski
I think now (in python 3) you have to put the print in brackets. So print ("Blah") or something like that. You could probably just remove that line or comment it out too.
Yeah that was the first thing I tried, but I still seemed to error out. I'll try again, also with it commented out.
Make auto-save on default June 1, 2024, 4:57 p.m.
Jonathan de Blok
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]
This script sounds useful, but I'm getting the following error, and don't know enough Python to troubleshoot:
" File \"C:/Users/User/Documents/houdini20.0/scripts/afterscenesave.py\", line 12
print \"WARNING, saving into a backup folder.. skipped pruning\"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(\"WARNING, saving into a backup folder.. skipped pruning\")?
"
I'm not sure if this means it's not pruning. I assume not as all previous backups and autosaves still exist. What do you mean by exact filename? The exact filename of the script?
Any insight would be great.
Thanks,