Notifications
Clear all

[Closed] callback for renderer parameter change?

I need to know which renderer parameter user has changed.
Is there a callback for this?

2 Replies

That’s for the renderer settings.
But have no idea of how to check render elements settings change, anyone?



(
fn getRenderSettings props = (

   for p in props collect getProperty renderers.current p
   
)

renderPropNames = getPropNames renderers.current
lastRenderSettings = getRenderSettings renderPropNames

deleteAllChangeHandlers id:#rendSettings
global renderSettingsChangeHandler = when parameters renderers.current changes id:#rendSettings val do (
   
   props = getRenderSettings renderPropNames
   for i=1 to props.count where props[i] != lastRenderSettings[i] do (
      
      if isKindOf props[i] array do (
         
         if (props[i] as string) == (lastRenderSettings[i] as string) do continue -- and never compare arrays like I do
         
      )
      
      format "%: %
" renderPropNames[i] props[i]
      
   )
   lastRenderSettings = props
   
)

)


OH… node even callback!
THANKS!