msg if new material selected?
-
On 05/08/2017 at 03:42, xxxxxxxx wrote:
hi there,
does anybody know if it is possible to get a message
if a material was selected in the material manager?if possible i'd like to catch it in Command(self, id, msg)
in a CommandData pluginbut i m open to any ideas on how get this "event"
best! -
On 07/08/2017 at 02:33, xxxxxxxx wrote:
Hi,
depending on your CommandData implementation you have two options.
a) If it's a simple CommandData with no dialogs attached, you don't need any event or message at all. You can simply use GetActiveMaterial(), store it's return value somewhere and compare it on the next execution of the command.
b) A CommandData with an asynchronous dialog. Here you can override CoreMessage() in your GeDialog and listen to EVMSG_MATERIALSELECTION.
-
On 08/08/2017 at 22:50, xxxxxxxx wrote:
Originally posted by xxxxxxxx
b) A CommandData with an asynchronous dialog. Here you can override CoreMessage() in your GeDialog and listen to EVMSG_MATERIALSELECTION.
thanks for hinting me to the right place! works!