Re: [Maya-Python] Is it possible to add QPushButton to QFileDialog?

2018-11-15 Thread Tim Fowler
I think that is exactly what Maya's file dialog does. Derives from QFileDialog, grabs its main layout, then adds all the options UI to the end of the HBoxLayout. I'm not 100% sure, but I think just calling QWidget::layout (from the derived parent class of the dialog) gives you the hbox that

Re: [Maya-Python] Is it possible to add QPushButton to QFileDialog?

2018-11-15 Thread Adam Baker
I think adding it using the find child should work. I am not only trying to adding a QPushButton but also add a QTextEdit to show the user more information about the file. Thanks, - Adam On Thursday, 15 November 2018 00:35:19 UTC-5, Justin Israel wrote: > > QFileDialog is a composite widget,

[Maya-Python] BlendShape UV

2018-11-15 Thread Rémi Deletrain
Hi everyone, I try to buil a new node for create a BlendShape UV. The principle is very simple. But UV does not update. Are there special things to do to update them ? I join my file. I trying with MPxNode beaucause I have a same probleme with MPxDeformerNode. -- You received this message

Re: [Maya-Python] Is it possible to add QPushButton to QFileDialog?

2018-11-15 Thread Adam Baker
I tried looking for the child and I keep getting None so I can’t add that layout to another layout or add a button to its layout. I am not just trying to adding a QPushButton but also add a QTextEdit to show the user more information about the file. My idea to add all the UI elements I want was

[Maya-Python] smooth with api

2018-11-15 Thread miarmy
hi, how can i, smooth the input mesh with c++ api?? (what is generateSmoothMesh function?How do i use it?) please help... -- 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

[Maya-Python] attributeAffects and input output name?

2018-11-15 Thread miarmy
hi. how can i know Which of input attributes run compute function of my node???(in compute function ) example, i have: attributeAffects(inputA, ouputB); attributeAffects(inputB, ouputB); attributeAffects(inputC, ouputB); attributeAffects(inputD, ouputB); Which of inputs(inputA or

[Maya-Python] Re: Is it possible to add QPushButton to QFileDialog?

2018-11-15 Thread abaker
On Wednesday, November 14, 2018 at 10:58:03 PM UTC-5, Adam Baker wrote: > Hey all, > > > I am trying to add a QPushButton or any other QWidget to a QFileDialog. > > > Here is where I currently am: > > from PySide2 import QtWidgets, QtCore, QtGui > class fileOpen(QtWidgets.QFileDialog): >    

Re: [Maya-Python] Re: Is it possible to add QPushButton to QFileDialog?

2018-11-15 Thread Justin Israel
My only suggestion for that code is that you probably don't need a QMainWindow, since you aren't even setting the setCentralWidget. You could just make it a QWidget or QDialog that nests the QFileDialog. If you made it a QDialog, then it would be easy to wire up the QFileDialog signals to it. On

Re: [Maya-Python] Re: Is it possible to add QPushButton to QFileDialog?

2018-11-15 Thread Adam Baker
I was testing my code I posted in OSX and notices that its not behaving the same as on Linux. It will create two separate windows one for the FileDalog and another for the pushbutton. Would anyone have a clue why it would do this ? - Adam On Thursday, 15 November 2018 21:19:49 UTC-5, Justin