Open a plugin only once
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/07/2012 at 09:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C.O.F.F.E.E ;---------
Is it possible for a menu plugin to detect if it was already opened (it has a dialog) and, if it is, simply show that dialog instead of opening a new clone?
Because when I choose a plugin that was already opened, I get a new dialog and shortly after, Cinema4D crashes. Since this only happens after that action, I assume that it is caused by the opening of more than one instance of the plugin.Rui Batista
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/07/2012 at 13:15, xxxxxxxx wrote:
class MyCommand : CommandData { private: var dlg; public: Execute(doc) { if (!dlg) { dlg = new(MyDialog); } dlg.Open(); return true; } }
Not sure if this is valid COFFEE, haven't used that language for a while.
-Nik
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/07/2012 at 16:19, xxxxxxxx wrote:
Worked great!!
Thank youRui Batista