Re: [Maya-Python] Re: Issues unloading plugin despite custom nodes being removed

2020-06-09 Thread Gerard Van Ommen Kloeke
Thanks everyone for the assistance. Djx won the day with his recommendation
to flush the undoQueue. (Cedric also).
This issue is resolved now

On Wed, 10 Jun 2020 at 06:51, Cedric Bazillou 
wrote:

> I think you might need as well toclear the undoStack and remove the custom
> data
> you can procedurally discover what a plugin expose with *pluginIn*fo
> 
>  ( *dependNode, data etc)*
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/vyew_9S7a00/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/87fe4056-99ae-4216-962b-b169858141cao%40googlegroups.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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAHronDMbfs3jzhbjxoEbRT7Ep%3DsSGuBeuQpN-FiW1FNUFVBOEw%40mail.gmail.com.


[Maya-Python] Re: Issues unloading plugin despite custom nodes being removed

2020-06-09 Thread Cedric Bazillou
I think you might need as well toclear the undoStack and remove the custom 
data
you can procedurally discover what a plugin expose with *pluginIn*fo 

 ( *dependNode, data etc)*

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/87fe4056-99ae-4216-962b-b169858141cao%40googlegroups.com.


[Maya-Python] Re: Issues unloading plugin despite custom nodes being removed

2020-06-09 Thread Cedric Bazillou


On Monday, 8 June 2020 20:28:26 UTC-7, ger...@flyingbark.com.au wrote:
>
>
> Hello.  I posted this on the ngSkinTools forum but wanted to widen the net 
> a little as I'm not sure if its a Maya issue or a problem with the 3rd 
> party tool. 
>
> I get this:
> // Error: file: C:/Program 
> Files/Autodesk/Maya2017/scripts/others/pluginWin.mel line 1429: Plug-in, 
> "ngSkinTools", cannot be unloaded because it defines a MPxData derived type 
> that is still in use. // 
>
> I'm using Maya 2017 v5 and NG 1.7.9 in production and we are hitting a 
> problem where the 'requires' line for NG in the maya ascii file header 
> still exists ( *requires -dataType "ngSkinLayerDataStorage" "ngSkinTools" 
> "1.7.9" )* despite the custom nodes being removed from the scene.
>
> This is causing problems with files failing to open as NG is not currently 
> permitted as part of our studio environment (they are weary of 3rd Party 
> tools - but a few of us absolutely love NG's workflow and can't go back to 
> Maya's paleolithic solution)
>
> Currently I have written something that saves out the file as ma then line 
> by line removes the requires lines but it has to rewrite the entire file 
> and they can be big, then the file needs to be reopened. I need another 
> solution. Note that when the header is removed, the file reopens fine so to 
> my mind it appears to be possibly an issue of something in memory. Also 
> when the file has its custom nodes removed and is saved (with header 
> intact), opening the file again and unplugging the tool is successful - 
> again making me think its something stuck in the mayas memory for that 
> session..?
>
>
> Any advice appreciated.
>
> Gerard.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c1bd8b76-7b1e-4540-bc26-6fbfed735ab5o%40googlegroups.com.