getddescription and init
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/09/2008 at 13:11, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C++ ;---------
hello all,
preaps i am confused, but i don't understand
in my object plugin i have a dynamic combobox in GetDdescription and in init i make a recursive action on my scene.
is very stange because when i update my dinamyc description , my plugin execute all code inside init, have anyone some experience of this?
Sorry preaps is a stupid question
Thanks
Franz -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/09/2008 at 14:56, xxxxxxxx wrote:
You shouldn't be doing anything in Init() that depends upon a completed scene. For instance, during document load, objects may not have been created yet that you might try to 'find' in Init(). Init() is best left for variable initialization and memory allocations. Use MSG_DESCRIPTION_DOCUMENTIMPORTED or other avenues (such as your own explicit InitMyPlugin() method called when appropriate) for these other things.
Init() is called whenever a new instance is created. C4D does this automatically at times (renders, redraws). Check this thread:
http://www.plugincafe.com/forum/display_topic_threads.asp?ForumID=4&TopicID;=1832&PagePosition;=127
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/09/2008 at 23:27, xxxxxxxx wrote:
hello robert,
thank you now is clear, i wold like to execute one my action on all abject in the scene only when myobject plugin is created, i'll try another way.
Best
Franz