[Closed] Detecting when the Include/Exclude Dialog is opened
The Include/Exclude dialog is used in a few places in max, but there’s no callback for this dialog opening.
Does anyone know any good hocks to pick it up? I’d like to be able to effectively replace it. Which in an ideal world would mean also know what called the dialog, but I know that’s highly unlikely to be possible, other than a small bit of logic, i.e if the selected object is a light…
But there are lots of places with VRay that it is used.
–light include/exclude
--vrayProperties
--reflection exclude
--refraction exclude
--render Settings
--vrayMaterialOverride
--render mask
--render element include/excludes
--vrayExtraTex
--vraylightSelect
--VrayVelocity
--MME
--vraytextures
--vrayDirtMap
--vraydistanceText (include only)
I think DialogMonitorOps is your only option, and that still doesn’t tell you who called it.
i’m absolutely sure that there is no chance to know how called the dialog in general case.
also i don’t believe that you can replace it with your own. if dialog was called by sdk (c++) plugin or tool it returns ‘inclusion/exclusion’ list internally. you cannot replace the list with yours.
it would better to give an option to use use your ‘dialog’ instead of built-in. i remember that in some situations i liked to have it not modal. and i wrote a tool – “Include/Exclude Manager” – to work with multiple lights (containers) at the same time.