Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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:
User Information: Cinema 4D Version: Platform: Language(s) : C++ ; PYTHON ;
--------- Hi,
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.
Thanks ! Niklas
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:
Hello Sebastian,
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 ?
import c4d 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, ")" return False def ExecuteSubID(self, doc, subid) : print "Command.ExecuteSubID(", doc, ",", subid, ")" Command().register()
Thank you, Niklas
On 14/12/2011 at 06:19, xxxxxxxx wrote:
Hello,
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!)
Thanks, Niklas