3__ Posted July 23, 2004 Share Posted July 23, 2004 I'm wondering if there's a way to set rendertime parameters for sops, namely subdivide divisions (Eg: current: 1, Render: 3). this is to avoid having to manually toggle bypass on various sibdivides in an object before rendering. -cpb Quote Link to comment Share on other sites More sharing options...
TheDunadan Posted July 23, 2004 Share Posted July 23, 2004 You can toggle "render poly as subd" in the render tab of your object. This way it'll be always rendered perfectly smooth (and it renders pretty fast really). Jens Quote Link to comment Share on other sites More sharing options...
3__ Posted July 23, 2004 Author Share Posted July 23, 2004 yep, but I need to override the divisions parameter within specific subdivide sops. breaking up sop networks into separate objects isn't an option in this case. -cpb Quote Link to comment Share on other sites More sharing options...
puma.snyder Posted July 23, 2004 Share Posted July 23, 2004 take a look at pre-render scripts in your output driver and the opparm command. Type "help opparm" in a textport. To get the necessary info for opparm you could do an opscript on your subdivide sop. Type "help opscript" in a textport. Hope this gets you started Achim Quote Link to comment Share on other sites More sharing options...
mark Posted July 23, 2004 Share Posted July 23, 2004 does this post from Jason help? I'd consider using a Houdini variable. $SUBDIV_LEVEL or something. You can easily also add aliases to increasing and decreasing this too.In the Textport: Director -> alias low set subdiv=0 Director -> alias med set subdiv=1 Director -> alias high set subdiv=2 Director -> med Director -> echo $subdiv 1 Director -> high Director -> echo $subdiv 2 Hope this helps, Jason Quote Link to comment Share on other sites More sharing options...
deecue Posted July 23, 2004 Share Posted July 23, 2004 or you could just do what jason says without the alias'.. just adjust your $SUBDIV value in the variable pane (Alt-A) right before rendering.. that will adjust all params that uses teh $SUBDIV variable... Quote Link to comment Share on other sites More sharing options...
3__ Posted July 24, 2004 Author Share Posted July 24, 2004 setting a variable and opparm commands are both working, but I want to have it apply only at render-time, preferably without creating any file/system dependencies that prevent moving the hipfile around. -cpb Quote Link to comment Share on other sites More sharing options...
edward Posted July 24, 2004 Share Posted July 24, 2004 Have special subdivide sops with only the render flag turned on them? Quote Link to comment Share on other sites More sharing options...
3__ Posted July 24, 2004 Author Share Posted July 24, 2004 special subdivide sops... ? Howabout something more generic: Script fields (not just script-file fields) for pre/post render scripts. A render option (drop-down list?) to switch to a take at rendertime. -cpb Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted July 24, 2004 Share Posted July 24, 2004 You can simply type the Hscript commands into the Pre/Post Script in your ROP. You don't always need the hscript files for it. If you need multiple lines, simply use semi-colon ( ; ) to separate the files. Quote Link to comment Share on other sites More sharing options...
deecue Posted July 24, 2004 Share Posted July 24, 2004 yea, you don't need to make an external file to script something this easy.. just put it right there in your rop... here, i made an example file for you.. i made a variable called SUBDIV in the alias/variable pane (Alt-A).. i set my subdiv param in my subdivide sop to $SUBDIV.. then go check out my rop and under the scripts tab.. for pre-render i have: set -g SUBDIV = 3; varchange for post-render i have: set -g SUBDIV = 0; varchange You don't need the -g unless you are dealing with variables made in the alias/variable pane. since mine was, i used the -g (meaning force global variable)... the varchange is there to recook my sops that use variables.. from the docs: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: When a variable value changes, the OPs which reference that variable are not automatically cooked. Running the varchange command causes all OPs which use a variable that has changed to be re-cooked. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: if i didn't recook them, you would never see your subdivide update during or after render. hth, dave http://studentpages.scad.edu/~dquiru20/ren...endersubdiv.hip Quote Link to comment Share on other sites More sharing options...
edward Posted July 25, 2004 Share Posted July 25, 2004 What I meant was you just have a different subdivide sop for rendering. Let's say you have two levels of detail, a level 1 subd for display purposes and then a level 3 for rendering. Then it's done trivially as: - One subdivide that is level 1. Set the display flag on this - Append to it, another subdivide. Set this to level 2. With the previous subdivide, the geometry is subdivided 3 levels. Set the render flag on this. Quote Link to comment Share on other sites More sharing options...
3__ Posted July 25, 2004 Author Share Posted July 25, 2004 excellent, thanks everyone. I had tried it without varchange but now it works. also it seems the variables have some odd case-sensitivity; setting them can be done in lowercase via textport but they must be in uppercase in the rop. a bug? -cpb Quote Link to comment Share on other sites More sharing options...
deecue Posted July 25, 2004 Share Posted July 25, 2004 lowercase should be fine in textport, variable pane, sop parameter, and rop.. you can even have two different case sensitive variables at the same time.. i.e. i can add 'subdiv' to my variables along with 'SUBDIV' and everything will recognize them as two seperate variables.. 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.