On 26/05/2013 at 07:06, xxxxxxxx wrote:
Hi,
can anyone point me to the correct BFM_MESSAGE id to call a toggle BitmapButton click in a
GeDialog / toggle its state ? I have that code which does work in general (it does disable
the button, but i want to toggle it as described).
def Execute(self, doc) :
fhPolyTools.ID_ISFROZEN = not fhPolyTools.ID_ISFROZEN
tool = plugins.FindPlugin(doc.GetAction(), c4d.PLUGINTYPE_TOOL)
if isinstance(tool, plugins.BasePlugin) :
data = tool.GetNodeData()
if isinstance(data, fhBaseSelectToolData.fhBaseSelectToolData) :
if isinstance(data.Dialog, gui.GeDialog) :
print data.Dialog.SendMessage(id = fhPolyTools.IDC_BASE_FREEZE_BTN,
msg = c4d.BaseContainer(c4d.BFM_DISABLE))
return True
Thank you for your help and happy rendering,
Ferdinand