THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/07/2011 at 08:47, xxxxxxxx wrote:
Cinema 4D Version:
Language(s) : C++ ; PYTHON ;
How are the COFFEE Scripts created with the Script Manager implemented ?
I mean, when creating a script, it appears in the Plugins - Menu under "User Scripts", and I'm trying to achive such a dynamic submenu like this in some way.
On 29/07/2011 at 15:09, xxxxxxxx wrote:
Hi, you can take a look at CommandData::GetSubContainer. Cheers, Sebastian
On 13/12/2011 at 14:04, xxxxxxxx wrote:
I'm having problems with c4d.plugins.CommandData.GetSubContainer() in Release 12, although I haven't tried R13 yet. It seems like the method isn't called. What am I doing wrong ?
class Command(c4d.plugins.CommandData) :
def register(self) :
c4d.plugins.RegisterCommandPlugin( id = 100100,
str = "Submenu Test",
info = c4d.PLUGINFLAG_COMMAND_HOTKEY,
icon = None,
help = "Submenu Test",
dat = self )
def GetSubContainer(self, doc, submenu) :
print "Command.GetSubContainer(", doc, ",", submenu, ")"
def ExecuteSubID(self, doc, subid) :
print "Command.ExecuteSubID(", doc, ",", subid, ")"
On 14/12/2011 at 06:19, xxxxxxxx wrote:
This example works in R13, but not in R12. Very unfortunate.. Will there be an update to fix some of those bugs ? (e.g. the FindCTrack bug should be fixed in R12 as well!)