Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Proper way to reload maya plugin (c++ and python)

Proper way to reload maya plugin (c++ and python)

Anonymous
Not applicable
2,395 Views
2 Replies
Message 1 of 3

Proper way to reload maya plugin (c++ and python)

Anonymous
Not applicable

My current method when reloading maya plugin is using python script to save the file(.ma /. mb) then store the maya file path, force maya to create a new scene,and then reload the saved maya file. the benefit of this method is i can restore all the connections amongst my plugin. the down side is it takes long time to reloading the scene.

 

is there any better way to do this?

 

if I don't create the new scene, i will have to delete the undo stack, delete the plugin, and all of those stuff.

 

Thanks 

0 Likes
Accepted solutions (1)
2,396 Views
2 Replies
Replies (2)
Message 2 of 3

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I am afraid there no other way to do that properly. We do same kind of work when we debugging plug-ins internally.

 

Yours,

Li

Message 3 of 3

Anonymous
Not applicable

That's what I thought recently, it's still taking time whenever we want to update the plug in. 

 

 

 

thank you 

0 Likes