Notifications
Clear all

[Closed] Question about Callbacks?

Just a quick question about callback events. Is there any callback event that will allow me to track events from the “Environment and Effects” dialog?

In the past I have used  
callbacks.addScript #renderParamsChanged "Some_Function()" id:#testCallback 

to monitor user changes in the render dialog, but can’t seem to find any callback related to the environment dialog.

I need to be able to monitor when the user changes the environment map or background color in the scene, if there is no specific callback for this can anybody suggest a workaround to this?

Any help would be much appreciated.

D.
2 Replies

I thought maybe use Viewport Redrawn Callback, but that happens way too often.

But maybe something along that line? Store the BG Color/Bitmap in Globals, and on redraw or whatever, if they aren’t the same, trigger a function.

Thanks Kickflipkid687 for your suggestion, I had thought about that approach using the viewport draw callback but don’t think this would be the most efficient method for my purposes.

I think the route to go would be to use the dialogmonitorops and uiaccessors, a bit more fiddly to implement but hopefully will do the job.