Insert Button for Plugin into standard palette
Boony2000 last edited by
Is it possible to have a command plugin insert an icon/button into the standard palette on startup?
I am aware that changing layouts would be something I would have to deal with seperately, but is it generally possible to do what you would normally do via the 'customize commands' menu from within the plugin code?
zipit last edited by zipit
no, that is not possible. I do not think that this is even possible in C++ (but I might be wrong here). But you can modify the main menu via listening for
PluginMessage(). There you could add a sub menu that provides a custom new palette that the user can pop out. The problem is: You cannot even read out the current pallets, so you could really only provide a modified standard pallete.
 See Enhancing the Main Menu. In Plugin Structure. url: https://developers.maxon.net/docs/Cinema4DPythonSDK/html/misc/pluginstructure.html?highlight=pluginmessage#PluginMessage
m_adam last edited by
Another way to do it is to have a custom layout and load it with LoadFile. But it will load the whole palette.
Boony2000 last edited by Boony2000
Thanks for the input!
It's a shame you can't fiddle with the palettes. I think I'll just do it like x-particles and have a command that loads the palette and the user can dock it himself. Not the most elegant, but gets the job done.