Discussion:
[Maya-Python] Unload/reload plugin not refreshing correctly
f***@gmail.com
2018-08-22 22:06:44 UTC
Permalink
Hi,

I'm compiling a plugin in a different environment from usually, and I'm experiencing some weird behaviors :
What I usually do when I modify my plugin is (in a scene where the plugin is loaded already) :
- delete any node from the plugin
- flush undo
- unload the plugin
- reload the plugin
- create my node

What happens here is my plugin won't be updated, even after recompiling / unloading-reloading it. If I restart maya, however, it will reload my plugin correctly.

I assume maya is keeping the .so in memory somehow (maybe creating an nfs copy ? but I couldn't find it), but I wonder how to clear it, and why it never happened to me before...

Any idea ?
Thanks

(I tried with maya 2016, 2017, 2018, on linux)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0fe18624-3ffa-4c99-869e-1fd2e3b368f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michał Frątczak
2018-08-22 22:11:04 UTC
Permalink
https://groups.google.com/forum/m/#!searchin/python_inside_maya/Plugin/python_inside_maya/QP7twlg54C4
Post by f***@gmail.com
Hi,
I'm compiling a plugin in a different environment from usually, and I'm
What I usually do when I modify my plugin is (in a scene where the plugin
- delete any node from the plugin
- flush undo
- unload the plugin
- reload the plugin
- create my node
What happens here is my plugin won't be updated, even after recompiling /
unloading-reloading it. If I restart maya, however, it will reload my
plugin correctly.
I assume maya is keeping the .so in memory somehow (maybe creating an nfs
copy ? but I couldn't find it), but I wonder how to clear it, and why it
never happened to me before...
Any idea ?
Thanks
(I tried with maya 2016, 2017, 2018, on linux)
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/0fe18624-3ffa-4c99-869e-1fd2e3b368f8%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAN52XyJBq3RU0Uz6vN527XqH8K%2BUuqBm98S4bDyyitJbPT-F4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Michał Frątczak
2018-08-22 22:15:13 UTC
Permalink
I tried to link to similar post of mine, search this group for

maya does not update recompilled plugin under linux
Post by Michał Frątczak
https://groups.google.com/forum/m/#!searchin/python_inside_maya/Plugin/python_inside_maya/QP7twlg54C4
Post by f***@gmail.com
Hi,
I'm compiling a plugin in a different environment from usually, and I'm
What I usually do when I modify my plugin is (in a scene where the plugin
- delete any node from the plugin
- flush undo
- unload the plugin
- reload the plugin
- create my node
What happens here is my plugin won't be updated, even after recompiling /
unloading-reloading it. If I restart maya, however, it will reload my
plugin correctly.
I assume maya is keeping the .so in memory somehow (maybe creating an nfs
copy ? but I couldn't find it), but I wonder how to clear it, and why it
never happened to me before...
Any idea ?
Thanks
(I tried with maya 2016, 2017, 2018, on linux)
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/0fe18624-3ffa-4c99-869e-1fd2e3b368f8%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAN52XyJ-L3041PJOqtQmJo4h4j33dWm5GJahisAcCCQMkNd%2BLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
f***@gmail.com
2018-08-22 22:16:30 UTC
Permalink
hahaha I just found your thread via google, like 2 seconds ago ! Will have a look at it, thanks
I tried to link to similar post of mine, search this group for 
maya does not update recompilled plugin under linux
https://groups.google.com/forum/m/#!searchin/python_inside_maya/Plugin/python_inside_maya/QP7twlg54C4
Hi,
- delete any node from the plugin
- flush undo
- unload the plugin
- reload the plugin
- create my node
What happens here is my plugin won't be updated, even after recompiling / unloading-reloading it. If I restart maya, however, it will reload my plugin correctly.
I assume maya is keeping the .so in memory somehow (maybe creating an nfs copy ? but I couldn't find it), but I wonder how to clear it, and why it never happened to me before...
Any idea ?
Thanks
(I tried with maya 2016, 2017, 2018, on linux)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0fe18624-3ffa-4c99-869e-1fd2e3b368f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/febfc99c-2529-400a-a61c-3c44d11c8bcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
f***@gmail.com
2018-08-22 22:27:26 UTC
Permalink
So no working solution, really (based on your thread) ? How did you figure this out ?
Post by f***@gmail.com
hahaha I just found your thread via google, like 2 seconds ago ! Will have a look at it, thanks
I tried to link to similar post of mine, search this group for 
maya does not update recompilled plugin under linux
https://groups.google.com/forum/m/#!searchin/python_inside_maya/Plugin/python_inside_maya/QP7twlg54C4
Hi,
- delete any node from the plugin
- flush undo
- unload the plugin
- reload the plugin
- create my node
What happens here is my plugin won't be updated, even after recompiling / unloading-reloading it. If I restart maya, however, it will reload my plugin correctly.
I assume maya is keeping the .so in memory somehow (maybe creating an nfs copy ? but I couldn't find it), but I wonder how to clear it, and why it never happened to me before...
Any idea ?
Thanks
(I tried with maya 2016, 2017, 2018, on linux)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0fe18624-3ffa-4c99-869e-1fd2e3b368f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/150bf27a-eed1-47c3-aa2c-81bd5ab253a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michał Frątczak
2018-08-22 22:30:07 UTC
Permalink
I didn't find solution, sadly
Post by f***@gmail.com
So no working solution, really (based on your thread) ? How did you figure this out ?
Post by f***@gmail.com
hahaha I just found your thread via google, like 2 seconds ago ! Will
have a look at it, thanks
Post by f***@gmail.com
Post by Michał Frątczak
I tried to link to similar post of mine, search this group for
maya does not update recompilled plugin under linux
https://groups.google.com/forum/m/#!searchin/python_inside_maya/Plugin/python_inside_maya/QP7twlg54C4
Post by f***@gmail.com
Post by Michał Frątczak
Hi,
I'm compiling a plugin in a different environment from usually, and
What I usually do when I modify my plugin is (in a scene where the
- delete any node from the plugin
- flush undo
- unload the plugin
- reload the plugin
- create my node
What happens here is my plugin won't be updated, even after
recompiling / unloading-reloading it. If I restart maya, however, it will
reload my plugin correctly.
Post by f***@gmail.com
Post by Michał Frątczak
I assume maya is keeping the .so in memory somehow (maybe creating an
nfs copy ? but I couldn't find it), but I wonder how to clear it, and why
it never happened to me before...
Post by f***@gmail.com
Post by Michał Frątczak
Any idea ?
Thanks
(I tried with maya 2016, 2017, 2018, on linux)
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
Post by f***@gmail.com
Post by Michał Frątczak
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/0fe18624-3ffa-4c99-869e-1fd2e3b368f8%40googlegroups.com
.
Post by f***@gmail.com
Post by Michał Frątczak
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/150bf27a-eed1-47c3-aa2c-81bd5ab253a0%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAN52XyJpcO4vPCPu%3D%2BguMPh8yq7fj21K-8cpN5ySGxiqqNDNxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
f***@gmail.com
2018-08-23 13:54:50 UTC
Permalink
Post by Michał Frątczak
I didn't find solution, sadly
So no working solution, really (based on your thread) ? How did you figure this out ?
Post by f***@gmail.com
hahaha I just found your thread via google, like 2 seconds ago ! Will have a look at it, thanks
I tried to link to similar post of mine, search this group for 
maya does not update recompilled plugin under linux
https://groups.google.com/forum/m/#!searchin/python_inside_maya/Plugin/python_inside_maya/QP7twlg54C4
Hi,
- delete any node from the plugin
- flush undo
- unload the plugin
- reload the plugin
- create my node
What happens here is my plugin won't be updated, even after recompiling / unloading-reloading it. If I restart maya, however, it will reload my plugin correctly.
I assume maya is keeping the .so in memory somehow (maybe creating an nfs copy ? but I couldn't find it), but I wonder how to clear it, and why it never happened to me before...
Any idea ?
Thanks
(I tried with maya 2016, 2017, 2018, on linux)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0fe18624-3ffa-4c99-869e-1fd2e3b368f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/150bf27a-eed1-47c3-aa2c-81bd5ab253a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So apparently it has to do with my environment when I compile. I may have found a solution (or at least I wanna try it, as it looks really like magic to me !)
http://www.sonictk.com/runtime-compiled-c-in-maya/
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3e9c8f59-88bf-4835-84f5-0569ea40668d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...