THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/08/2012 at 07:29, xxxxxxxx wrote:
Cinema 4D Version: 12,13,14
Language(s) : C++ ; PYTHON ;
I'm trying to do operations on data that was filled in a NodeData's BaseContainer from the User in it's Init() method.
When creating a new tag, there is no user-specific information in it, of course. But when the Tag is loaded from a file when opening a scene, the Init() method is called, too, and I am not able to get the information that was filled in from the user.
I'm creating a tag that requires some Input information as String which is internally compiled to some virtual data-structure that is used for Execution in the tag. This compilation is done when the user presses a button.
In Init(), I fill in a default-value that is also compileable. I want that the user does not have to press the compile-button after creating the tag or loading the scene. But compiling in Init() will use the default-value always.
The only solution that I can think of, is to create an attribute that tells me whether the data has already been compiled or not and then compiling it in the Execute() method. But that does not sound like a good solution..
Any Idea of a better approach?
Thanks in advance,