Unload/reload plugin not refreshing correctly

47 views
Skip to first unread message

fruit...@gmail.com

unread,
Aug 22, 2018, 6:06:48 PM8/22/18
to Python Programming for Autodesk Maya
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)

Michał Frątczak

unread,
Aug 22, 2018, 6:11:23 PM8/22/18
to python_in...@googlegroups.com

--
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_m...@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

unread,
Aug 22, 2018, 6:15:30 PM8/22/18
to python_in...@googlegroups.com
I tried to link to similar post of mine, search this group for 

maya does not update recompilled plugin under linux

fruit...@gmail.com

unread,
Aug 22, 2018, 6:16:34 PM8/22/18
to Python Programming for Autodesk Maya
hahaha I just found your thread via google, like 2 seconds ago ! Will have a look at it, thanks

fruit...@gmail.com

unread,
Aug 22, 2018, 6:27:30 PM8/22/18
to Python Programming for Autodesk Maya
So no working solution, really (based on your thread) ? How did you figure this out ?

Michał Frątczak

unread,
Aug 22, 2018, 6:30:22 PM8/22/18
to python_in...@googlegroups.com
I didn't find solution, sadly

fruit...@gmail.com

unread,
Aug 23, 2018, 9:54:53 AM8/23/18
to Python Programming for Autodesk Maya
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/
Reply all
Reply to author
Forward
0 new messages