On 26/09/2017 at 15:08, xxxxxxxx wrote:
Is it possible to send a message to a object data plugin?
I am using this little script to trigger an object data plugin.
def main() :
plugin_2_obj = c4d.plugins.FindPlugin(plugin_id)
MY_CUSTOM_MSG_ID = 4
python_object_to_send = [1,2,3,4,4]
plugin_2_obj.Message(MY_CUSTOM_MSG_ID, python_object_to_send )
if __name__=='__main__':
main()
In the object data plugin I have following:
def Message(self, node, type, data) :
if (type == 4) : print "type: ", type
return True