Expression for rendertime?

   2177   3   0
User Avatar
Member
169 posts
Joined: April 2014
Offline
Hello -

I'm trying to setup a switch that changes 2 pieces of geometry (1 with low poly, one with very high poly) at render time.

What is the expression that evaluates if H is rendering and can be used in the switch?

Thank you!
Winter is coming!
User Avatar
Member
1906 posts
Joined: Nov. 2006
Offline
Unfortunately there isn't a function for this. You'll have to use either display/render flags or render with takes.

It's possible to write your own using the HDK, but that's not necessarily ideal.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
8539 posts
Joined: July 2007
Offline
you can as well use pre/post render scripts and set an variable
like

pre: setenv RENDER=1
post: setenv RENDER=0

then just use $RENDER variable in your switches
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
169 posts
Joined: April 2014
Offline
tamte
you can as well use pre/post render scripts and set an variable
like

pre: setenv RENDER=1
post: setenv RENDER=0

then just use $RENDER variable in your switches

Wow - so simple and elegant.

Thank you Tamte

Winter is coming!
  • Quick Links