On 06/04/2016 at 11:49, xxxxxxxx wrote:
I'm trying to make my plugin window respond to the existence the selected objects in the Object Manager. I use this method in Dialog class:
def CoreMessage(self, id, msg) :
if id == c4d.EVMSG_DOCUMENTRECALCULATED:
doc = c4d.documents.GetActiveDocument()
objs = (len(doc.GetActiveObjects(1))>0)
for x in (30,23,24,60) :
# return True
Maybe there is something better for such cases? Because in this case the events count is too much, and I need only select objects in the OM.
Звуковая функция ограничена 100 символами
Настройки : История : Справка : Обратная связьЗакрыть
On 07/04/2016 at 02:34, xxxxxxxx wrote:
I don't think there is any better solution. There is no special message that would be sent if just the object selection changes. So your solution is probably as good as it can get.