MisterP Posted October 4, 2011 Share Posted October 4, 2011 Hello, I was wondering if it was possible to pass arguments to .cmd files The idea would be to use a single .cmd and vary start and end frames on the fly by passing different arguments to it. Any thought or suggestion much welcome Thanks! P Quote Link to comment Share on other sites More sharing options...
symek Posted October 4, 2011 Share Posted October 4, 2011 This: hscript somescript.cmd arg1 arg2 afaik won't work. Here is some info how to work with arguments (with source command): http://www.sidefx.com/docs/houdini11.1/commands/_guide#id297759 How about using hrender csh script that comes with Houdini? It works and is a good reference how to deal wit render scripts. Another way is to use hython, which accepts arguments like any python processes (sys.argv[n]) Quote Link to comment Share on other sites More sharing options...
MisterP Posted October 4, 2011 Author Share Posted October 4, 2011 Thanks SYmek, it seems it is possible to pass arguments indeed! (and similar to python too) I'm currently doing some tests on a windows platform; I suspect hrender csh may not be the most straightforward solution for me? In regards to hython I haven't got the chance to try it yet. I'm currently running a series of cascading .bat files to emulate a linux like enviroment on windows and to call houdini with a nice per-show per-user options, both locally and on the farm. The specific task at hand is to being able to pipe Houdini batch with a windows based farm management software, and specifically the ability to split commandprompt batch jobs into chunks by using a single .cmd and passing different frameranges everytime, much easier that building hundreds of temporary hardcoded cmd files each time. I'm almost done and thanks to your link to how to pass arguments I should be able to implement this in no time Thanks again P This: hscript somescript.cmd arg1 arg2 afaik won't work. Here is some info how to work with arguments (with source command): http://www.sidefx.com/docs/houdini11.1/commands/_guide#id297759 How about using hrender csh script that comes with Houdini? It works and is a good reference how to deal wit render scripts. Another way is to use hython, which accepts arguments like any python processes (sys.argv[n]) Quote Link to comment Share on other sites More sharing options...
symek Posted October 4, 2011 Share Posted October 4, 2011 Funny enough I'm currently wasting my time doing opposite thing, which is making Windows brew render manager Linux and Houdini friendly. Render scripts, shells, sudos, arguments, frames, and all that jazz. Good luck! Quote Link to comment Share on other sites More sharing options...
MisterP Posted October 6, 2011 Author Share Posted October 6, 2011 (edited) I hate windows.. anyway thanks for the advice L Edited October 6, 2011 by misterp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.