Trying to get this python script I came across to work in H17.
# Ask about turning on Autosave # but only if running interactive Houdini session! set fullver = `run(“version -n”)` set app = `arg($fullver,0)` if(`strcmp($app,“hscript”)` < 0 && `strcmp($app,“rscript”)` < 0 && `strcmp($app,“hbatch”)` < 0) set turnOn = `run(“message -b Yes,No -d 0 Turn on Autosave?”)` if($turnOn == 0) autosave on endif endif
Console is giving me a syntax error on startup.
Error running Python code:
SyntaxError: ('invalid syntax', ('DUsers/Chris Angelius/Documents/houdini17.0/scripts/456.py', 4, 11, ‘set fullver = `run(\x93version -n\x94)`\n’))