Message 1 of 1
Maxscript and mentalray vector problem

Not applicable
03-31-2008
02:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!
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!