Unkle Bunkle
04-13-2006, 09:56 AM
Not using renderman, I was wondering is there a way to choose certain objects and have them display
in the viewport at normal res then at render time have these objects automatically have a polysmooth of
a certain value of divisions applied to them, relative to the cameras distance from them.
I know of the ability to run pre-render mel scripts. So I guess you could apply a polySmooth to
all desired objects, and then disable their node state with HasNoEffect. The in the pre-render mel
you could get a list of all polySmooth nodes, and turn them on.
Then simply turn them off in the pos-render mel.
I know you can do it but have no mel experience, has anyone written something similar to this,
or could knock up a quick one?
I'm not too worried about the distance from the camera effecting the
smoothing, more that I can just have my selected objects switch to their smooth version automatically
when I test render.
Thanks in advance.
in the viewport at normal res then at render time have these objects automatically have a polysmooth of
a certain value of divisions applied to them, relative to the cameras distance from them.
I know of the ability to run pre-render mel scripts. So I guess you could apply a polySmooth to
all desired objects, and then disable their node state with HasNoEffect. The in the pre-render mel
you could get a list of all polySmooth nodes, and turn them on.
Then simply turn them off in the pos-render mel.
I know you can do it but have no mel experience, has anyone written something similar to this,
or could knock up a quick one?
I'm not too worried about the distance from the camera effecting the
smoothing, more that I can just have my selected objects switch to their smooth version automatically
when I test render.
Thanks in advance.
