Jump to content

rendertime_params


3__

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...