Maxscript and mentalray vector problem

Maxscript and mentalray vector problem

Anonymous
Not applicable
225 Views
0 Replies
Message 1 of 1

Maxscript and mentalray vector problem

Anonymous
Not applicable
Hi all,
I'm trying to batch create ps vectors through mentalray, but i'm getting stuck.
Through Maxscript I've been able to automatically turn on Contours under Camera effects:

renderers.current = mental_ray_renderer()
renderers.current.EnableContours = true

But then I want to change 'contour output' from 'contour composite' to 'contour PS':

x =(renderers.current.Contour_Output_Shader)
--Map #175:Contour Composite (contour)

classof x
--Contour_Composite__contour

Therefore this should make the output a Contour PS shader:

(renderers.current.Contour_Output_Shader) = Contour_PS__contour
-- Unable to convert: Contour_PS__contour to type: TextureMap

but it is a texturemap, see!

classof Contour_PS__contour
--textureMap

Can anyone help, lock me up in a padded cell, or point me in the direction of some mentalray via maxscript help files?

Many thanks!
0 Likes
226 Views
0 Replies
Replies (0)