Houdini Python

103 views
Skip to first unread message

Soal GIVORD

unread,
Oct 29, 2020, 11:29:12 AM10/29/20
to Royal Render Knights Tavern
Hello, hi would like to run a script in some HIP files via RR.
But i encounter an error early in the job process (see joined .txt):
C:\Program Files\Side Effects Software\Houdini 18.0.348\bin\hython.exe: can't find '__main__' module in ''

Here is how i launch the job :
        # BUILD JOB COMMAND
        sCommand = ""
        options=""
        flags=""
        flags += ' -Software Houdini'
        flags += ' -Version 18.0.348'
        flags += ' -NoAutoSceneRead'            
        flags += ' -Renderer Python'        
        flags += ' -CustomScriptFile '+customScriptPath
        flags += ' -CustomFlagA '+";".join([lastScene,seq,sh,desc,str(row),str(col)])+" " 
        # flags += ' "CustomScriptFile=1~'+customScriptPath+'" '
        flags += ' -customScriptArguments '+";".join([lastScene,seq,sh,desc,str(row),str(col)])+" " 
        flags += ' -ImageDir '+houdiniLogPath
        flags += ' -SeqStart  101'
        flags += ' -SeqEnd   101'

        options += ' "Priority=1~99" '
        options += ' "Color=1~1" '
        options += ' "MaxClientsAtATime=1~3" '
        options += ' "IgnoreCrashes=0~0" '
        options += ' "MaxCrashes=0~1" '

        sCommand += submitterPath +" "+lastScene + flags + options
        print(sCommand)

        # launch job
        subprocess.call(sCommand, shell=True)

Can you please help?

Thanks

Best regards
rr_log_hython.txt

RR, Schoenberger

unread,
Oct 29, 2020, 3:03:37 PM10/29/20
to rrKn...@googlegroups.com

Hi

 

The python script to be executed is missing in the commandline.

I remember there was an issue with older help files.

Regarding the latest version
http://www.royalrender.de/help8/index.html?Houdini.html
it has to be

flags += ' -CustomScript '+customScriptPath



PS:

I would recommend not to use the scene name in “FlagA”.
As you already have it as “scene” commandline flag.
But it should not be a problem either.

 

 

regards,
Holger Schönberger

 

Please use the rrKnights Tavern
or our support system for new questions.

Soal GIVORD

unread,
Nov 5, 2020, 8:46:34 AM11/5/20
to Royal Render Knights Tavern

Thanks a lot it worked well!
Reply all
Reply to author
Forward
0 new messages