Notifications
Clear all
[Closed] callback to detect the change in renderer parameters?
Sep 14, 2014 8:11 am
I need to detect when users change renderer parameters(probably 3rd party).
Is it possible with Maxscript?
1 Reply
Sep 14, 2014 8:11 am
fn rendProps = (
for p in getpropnames renderers.current collect (getproperty renderers.current p)
)
fn compareProps = (
local i = 1
for p in getpropnames renderers.current do (
local prop = getproperty renderers.current p
if prop != props[i] then (
format "%: %
" (p as string) prop
return false
)
i = i + 1
)
)
props = rendProps()
when parameters renderers.current change id:#ppp2 do (
compareProps()
props = rendProps()
--deleteAllChangeHandlers id:#ppp2
)
wonder if theres any easier way of getting property and value that actually changed