ScriptSpot

Forum topic · General Scripting

Vray Scripting Problem (MaxObject?)

By Smokin · 2009-01-15

Description

Im making a script here and trying to interact with Vray's setting via a script VS flipping through tabs. Ive hit a wall in one area here when I try to modifiy the filter type in max. According to the Vray Maxscript documentation, the filter type is in the classof Maxobject (not entirely sure if thats important)

renderers.current = V_Ray_DEMO_1_50_SP2()
vr=renderers.current

when I type in "vr.filter_kernel" that points to the A.A. filter currently active in Vray and returns something like Area:(null) , or Mitchell-Netravali:(null) depending on the active filter. I tried to modify the filter used via script without sucess. I tried:

vr.filter_kernel = Mitchell-Netravali:(null)
vr.filter_kernel = Mitchell-Netravali
vr.filter_kernel = (Mitchell-Netravali:(null))
vr.filter_kernel = Mitchell-Netravali[1]
etc etc etc and I keep getting the same error message "

-- Unable to convert: Area to type: MaxObject

Im starting to wonder if this is a "read only" type thing. Any help would be apreciated. How can I change the filter_kernel via script, OR how can I figure out if what Im looking at might be read only or not?

Thanks

Comments (2)

kimarotta · 2012-10-05

I have the same problem ... anyone have any tips ?

thanks