Re: [Maya-Python] Split code into main and ui files individually

2016-10-15 Thread Justin Israel
On Sun, Oct 16, 2016 at 12:39 PM likage wrote: > I have done all my codings, ui creation etc into a single file and I would > like to separate between my main functions (manager_main.py) and the ui > (manager_ui.py) into 2 files > Just so you know, I created my widgets

[Maya-Python] Split code into main and ui files individually

2016-10-15 Thread likage
I have done all my codings, ui creation etc into a single file and I would like to separate between my main functions (manager_main.py) and the ui (manager_ui.py) into 2 files Just so you know, I created my widgets 'manually' instead of using Qt designer.. class manager_ui(QtGui.QDialog):

Re: [Maya-Python] Getting the original shader assignment

2016-10-15 Thread likage
After some trial and error around, I managed to come up with a 'hacky' way of renaming it by splitting the keys in the dict then creating a new dict which store the current connections (with the new naming) while comparing the last 2 elements in the scene to replace them. While I understand