Button event on ObjectPlugin
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/05/2012 at 13:05, xxxxxxxx wrote:
Cinema4d version: 13
Platform: Windows
Language: Python
-----------------
Hi everyone!
I have a simple question.
This is my "menu" of the plugin I'm writing (is an ObjectPlugin).I want to write some code when the button "Save" is pressed but in SDK documentations I can't find any function to do that!
Anyone know which is the code to get the button pressed event?
Thanks a lot!
(InputEvent() or InputState() of gui class doesn't work because this is a Object plugin and the button is not in a dialog form
) -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/05/2012 at 02:44, xxxxxxxx wrote:
Hi, in this case the c4d.MSG_DESCRIPTION_COMMAND message is triggered in "Message".
To get the ID of your button call:if type == c4d.MSG_DESCRIPTION_COMMAND: if data["id"][0].id == THE_BUTTON_ID: print "Hello World!" return True
Cheers, Sebastian
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/05/2012 at 03:19, xxxxxxxx wrote:
@s_rath: But renderking is right, there doesn't seem to be this kind of information in the SDK. I had
a hard time figuring that one out back then. Please add it to the SDK.-Niklas