THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/03/2012 at 15:21, xxxxxxxx wrote:
The documentation states:
"With these commands, existing C.O.F.F.E.E. or Python plugins, respectively, can be reloaded (from the corresponding directories). Hence, if you have made a modification to the plugin's source code, the plugin can be reloaded without having to restart CINEMA 4D."
Im testing this with this "starter" plugin from here. http://www.smart-page.net/blog/2012/02/22/smart-hn-options-cinema-4d-python-commanddata-plugin-template/
And what I'm doing to test it, is just changing a string to be printed to the console in maindialog.py's CreateLayout method.
def CreateLayout(self) :
print "foo"
to
def CreateLayout(self) :
print "bar"
I load the plugin and "foo" prints. Change the source code to "bar". Then I click the "Reload Python Plugins" command. And load the plugin again; "foo" prints instead of "bar".
This command doesn't seem to work, unless I'm missing something.
I tried hooking into PluginMessage's c4d.C4DPL_RELOADPYTHONPLUGINS event reload everything with this python module reloader from https://github.com/jparise/python-reloader. It runs fine when I reload the smarthnoptions module, but nothing changes in C4D.
Any thoughts on this?