THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/09/2005 at 14:18, xxxxxxxx wrote:
Cinema 4D Version: 8.503
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
I want to make a demo of my plugin. It's an object generator making a virtual polygonobject from splines.
I want to make the data unsavable, so I'm looking for a kind of message that will be received when the user saves the document. Since I didn't found such a message type by now, I'm thinking about the MSG_MULTI_DOCUMENTIMPORTED message. I could make the pluginobject invalid, if this message will be received. The disadvantage is, that this message will be also received, when the user reloads the document (revert to saved).
Any ideas? Left to say: I don't want to use the 9.1 message MSG_DOCUMENTINFO, 'cause I want to stay compatible with C4D 8.5.
Another aspect: Is it possible to prevent the user from making the object editable (convert to real polygon object)?
On 30/09/2005 at 19:27, xxxxxxxx wrote:
There is an easy way to do this. If the plugin is in 'demo mode', just don't let it work when read in from file. There are three methods: Read(), Write(), CopyTo() which all need to be implemented if any one of them is. Have you implemented these methods for the plugin object? Here you can do whatever you need to make the plugin invalid.
And forgot to add that the Write() method is a good indicator that the data is being written to file. You could track it very easily in this method.