Re: [Maya-Python] Controlled Class instantiation with multiple constructors

2020-04-19 Thread HarshadB
. > > Finally, I feel that we can still get away in this case without using > __new__ still retaining the required behavior. Please find my code here > <https://pastebin.com/VWYVnys0>. This covers almost everything you need. > Let me know if this does not work. > > Cheer

[Maya-Python] Re: Controlled Class instantiation with multiple constructors

2020-04-15 Thread HarshadB
Here's an excerpt from the Pastebin code linked in the original post, this is the __new__ method from the class: [image: component_new.png] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group

Re: [Maya-Python] Controlled Class instantiation with multiple constructors

2020-04-15 Thread HarshadB
t; > # Default > foo = Foo('default bar', 'default baz') > # bar: default bar, baz: default baz > > # From bar > foo_bar = Foo.from_bar('from bar') > # bar: from bar, baz: None > > # From baz > foo_baz = Foo.from_baz('from baz') > # bar: None, baz: from baz >

[Maya-Python] Controlled Class instantiation with multiple constructors

2020-04-14 Thread HarshadB
Hoping for some help with this, I am trying to understand Class construction(instantiation before init). I have a component class which encapsulates a hierarchy of nodes in Maya. Instantiated using a mObject as input. BaseComponent(mObject) I want to automate the instance construction of this

[Maya-Python] Re: Robust tools for skin weight export/import

2019-06-24 Thread HarshadB
I got mGear in and working, thanks @HarshadB : I found the api docs > online, and the source, but is there any sort of overview on how the > skinning import\export works? > By default (at least via the ui), it seems to only import if the vert > count matches, which is pretty limiting. Ap

[Maya-Python] Re: Robust tools for skin weight export/import

2019-06-23 Thread HarshadB
I feel ngSkinTools is more of a painting weights toolset plugin than a full-fledged tool to handle import/export skin-weights at a production level. It's more of a user tool than a pipeline tool. Yes, it would be very convenient to have a function to select the joints in the exported file,

Re: [Maya-Python] Customized display of files/folders in a QTreeView that is using QFileSystemModel.

2019-06-16 Thread HarshadB
xLibQt/blob/master/src/itemmodels/GroupedItemsProxyModel.cpp > > https://sourceforge.net/p/qadvanceditemviews/code/ci/default/tree/qaivlib/qgroupingproxymodel.cpp > > Justin > > > On Fri, Jun 14, 2019 at 10:25 PM HarshadB > wrote: > >> Hi Justin, Thank you fo

Re: [Maya-Python] Customized display of files/folders in a QTreeView that is using QFileSystemModel.

2019-06-14 Thread HarshadB
gt; On Mon, Jun 10, 2019, 8:22 PM HarshadB > > wrote: > >> Need some help and direction in understanding QSortFilterProxyModel. I am >> creating a tool in Maya using PySide2 (Qt.py). >> >> *GOAL:* >> I have already built a filebrowser QTreeView with a QFileSy

[Maya-Python] Customized display of files/folders in a QTreeView that is using QFileSystemModel.

2019-06-10 Thread HarshadB
Need some help and direction in understanding QSortFilterProxyModel. I am creating a tool in Maya using PySide2 (Qt.py). *GOAL:* I have already built a filebrowser QTreeView with a QFileSystemModel. Folders and files are both displayed. I have a filter for files with a certain extension on the