Re: [Maya-Python] GUI issue with QTabBar

2018-12-21 Thread Justin Israel
On Sat, Dec 22, 2018, 1:58 PM kiteh wrote: > Instead of `class MyTabBar(QtGui.QTabBar)`, I created it as `class > MyTabBar(QtGui.QMainWindow)` and a new variable solely for `QTabBar` and it > works... > If you want a composable widget for use in other windows and dialogs then you probably want

Re: [Maya-Python] GUI issue with QTabBar

2018-12-21 Thread kiteh
Adding on (hit the "Post" button too fast), I am trying to create a 2 layers of tabs, this is the first level of tabs that I am trying to create, in which based on the creation, it will then populated a second sets of tabs (which will be using QTabWidget) Pardon the illustration, but

Re: [Maya-Python] GUI issue with QTabBar

2018-12-21 Thread kiteh
Instead of `class MyTabBar(QtGui.QTabBar)`, I created it as `class MyTabBar(QtGui.QMainWindow)` and a new variable solely for `QTabBar` and it works... Even so, (as I am not sure) , generally, to use `QTabBar`, does it always go along with the use of `QTabWidget`? -- You received this

Re: [Maya-Python] GUI issue with QTabBar

2018-12-21 Thread Justin Israel
On Sat, Dec 22, 2018, 1:37 PM kiteh wrote: > Hi Justin, > > Just tried it, in which the first item that was populated is behind the > 'add' button. > Which is why I am adding in a hboxlayout... in hope that the tabs will > appear right by the `add` button > You can't really cleanly change the

Re: [Maya-Python] GUI issue with QTabBar

2018-12-21 Thread kiteh
Hi Justin, Just tried it, in which the first item that was populated is behind the 'add' button. Which is why I am adding in a hboxlayout... in hope that the tabs will appear right by the `add` button -- You received this message because you are subscribed to the Google Groups "Python

Re: [Maya-Python] GUI issue with QTabBar

2018-12-21 Thread Justin Israel
On Sat, Dec 22, 2018, 1:16 PM kiteh wrote: > Hi Marcus, my bad on this. `hlay` actually refers to the `HBoxLayout()` > > I have updated the snippet - https://pastebin.com/raw/EYcMh5hq > This part from your snippet isn't correct, for multiple reasons: self.setTabButton( 0,

Re: [Maya-Python] GUI issue with QTabBar

2018-12-21 Thread kiteh
Hi Marcus, my bad on this. `hlay` actually refers to the `HBoxLayout()` I have updated the snippet - https://pastebin.com/raw/EYcMh5hq When trying out your method where: class MyTabBar(QtGui.QTabBar): def __init__(self, parent=None): super(MyTabBar, self).__init__(parent)

Re: [Maya-Python] Accessing attribute values from each frame in an animation

2018-12-21 Thread Justin Israel
On Sat, Dec 22, 2018 at 11:15 AM wrote: > On Friday, 21 December 2018 12:15:33 UTC-8, Justin Israel wrote: > > On Sat, Dec 22, 2018, 7:33 AM wrote: > > I have an animation that’s being generated in Maya. This animation cause > attributes under a node to change over time. I want to access the

Re: [Maya-Python] Accessing attribute values from each frame in an animation

2018-12-21 Thread unnikrishnan . anil
On Friday, 21 December 2018 12:15:33 UTC-8, Justin Israel wrote: > On Sat, Dec 22, 2018, 7:33 AM wrote: > I have an animation that’s being generated in Maya. This animation cause > attributes under a node to change over time. I want to access the attributes > (about 200 of them) for each

[Maya-Python] Re: collision deformer SOS pls..pls..pls help this child....

2018-12-21 Thread Fleming Lin
hi Michael! I just used the default MItGeometry that was provide in the deform method to set the final positions and everything works perfect now! My original intention was to used a different way set the final result, but I guess I was over complicated the code by doing this whole

Re: [Maya-Python] Accessing attribute values from each frame in an animation

2018-12-21 Thread Justin Israel
On Sat, Dec 22, 2018, 7:33 AM wrote: > I have an animation that’s being generated in Maya. This animation cause > attributes under a node to change over time. I want to access the > attributes (about 200 of them) for each frame and write that into a file. > I’m currently using the OpenMaya

[Maya-Python] Accessing attribute values from each frame in an animation

2018-12-21 Thread unnikrishnan . anil
I have an animation that’s being generated in Maya. This animation cause attributes under a node to change over time. I want to access the attributes (about 200 of them) for each frame and write that into a file. I’m currently using the OpenMaya MFnDependencyNode to find the required node and