Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
On 31/08/2018 at 07:42, xxxxxxxx wrote:
I can't seem to figure out how to get MSG_DOCUMENTINFO_TYPE_SAVE_BEFORE to trigger.
I would like to save some info to an Annotation tag, but only right before the user saves the document.
Tried to put it in Message() but couldn't figure out if Message can stand by itself or if it has to be in a NodeData class?
class SampleClass(plugins.NodeData) : def Message(self, node, type, data) : if type == c4d.MSG_DOCUMENTINFO: if data['type'] == c4d.MSG_DOCUMENTINFO_TYPE_SAVE_BEFORE: print "Document is about to save" return True return True
Thanks