Usually you can find the rendered image from [your_project]\images\tmp - directory so what you'd do is pickup that and draw it to your own window.
Does this push any buttons ?
8)
/risto
I've taken viewports and embedded them into my own Qt app to provide independent scene navigation.
If the renderview is a Singleton instance, then it wouldn't work the same way that I have done it. My approach has been to create a new viewport to embed.
--
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 emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/8fe547dc-ebd2-4790-a041-73e8b3927eee%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Yeah, doing it once it's rendered and displaying the image will be the way I'll end up doing if I can't get it to work.
Hey Justin, I tried the example on your website to embed Maya windows in qt, but changing the modelpanel from persp/camera to renderview threw an error line 1 with no other info.
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/pTUd6aYeQCg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA38Ec7UjhWBh2dbHp4xXqK-8%3DWVrRSj6-seXJpi_8eeWQ%40mail.gmail.com.
I can give it a test later today and report back.
Hah, ya no worries. This wasn't the type of question I had posted about. It was based on my existing previous example, and more theoretical about how much could be done with the render view panel. I was interested in testing it.
Technically mostly everything in the Maya UI can be hijacked to some extent. The render view button calls a runtime command that you could probably swap out to launch yours. If you made your app a scripted plugin, then you could have it hijack that functionality on plugin load, and restore it on unload maybe.
--
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 emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CACfkVJc1bK3gtw-qi43-uG-fnhfT8Y5xhbe4eLLvyTv59wuU8A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/53005571.3090308%40gmail.com.
--To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/53005571.3090308%40gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/pTUd6aYeQCg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CACfkVJeifenCBy-sY6DUU8_e571SBUFBgu78N3tPnHXvraZgVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/53013486.2000502%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3HTLNhMaiiHgsm5scE1r%2B%3DH8QJb6jVbenm2XwwgoBSmA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/53013907.9090107%40gmail.com.
Hey Justin, I wanted to do pyside to begin with but couldn't find unwrapinstance from pyside. I figured more examples for pyqt and later I'll swap over if necessary.
Have seen some convert scripts to change it over.
Is it easy enough to change it over later?
Thanks guys
Pyside is pretty much the same to pyqt4 + sip api v2
The equivalent to sip wrap/unwrap instance is found within the shiboken module. Shiboken is to Pyside, what sip is to pyqt4
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAcxvvRSy1NrioWcwxD96cOsKYEWrGoMt46WRju0o5%3DqQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5301A80F.2090804%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODF1v4grTyR%2BcMubKQNeg4gD_%3D-5Pd3bMeB31VP1uLh2g%40mail.gmail.com.
You can find and extensive writeup and good links regarding QT and PyQt licensing here:https://groups.google.com/forum/#!searchin/python_inside_maya/pyqt$20license/python_inside_maya/J4AWPlFYhcQ/1tVM2KTxp8Y
--
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 emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ecdfc60d-7ea9-4fc9-abbf-3b5e3e0223ec%40googlegroups.com.
from PyQt4 import QtCore, QtGui
import resources
import globalsettingsdlg
reload(globalsettingsdlg)
from globalsettingsdlg import GlobalSettingsDlg
from ..utils import gui as GuiUtils
from creator import centralwidget as cw, bonestudiowidget as bs
reload(cw)
from jdCRT.bonestudio import nodes
reload(nodes)
class jdCRT_CentralWidget(QtGui.QWidget, cw.Ui_jdCRT_CentralWidget):
def __init__(self, parent=None):
super(jdCRT_CentralWidget, self).__init__(parent)
self.setupUi(self)
self.initBoneStudioBTN.clicked.connect(self.initSkeleton)
def initSkeleton(self, *args):
skel = nodes.Skeleton()
class MainWindow(QtGui.QMainWindow):
def __init__(self, parent=None):
if parent == None:
parent = GuiUtils.getMainWindow()
super(MainWindow, self).__init__(parent)
self.setWindowTitle("Character Rigging Tools")
self.mainWidget = jdCRT_CentralWidget()
self.mainWidget.tabWidget.setCurrentIndex(0)
self.setCentralWidget(self.mainWidget)
# Menu Bar
toolsMenu = self.menuBar().addMenu("&Tools")
settingsAction = QtGui.QAction(QtGui.QIcon(":icons/MainSettingsIcon.png"), "&Settings", self)
helpText = "jdCRT Settings"
settingsAction.setToolTip(helpText)
settingsAction.setStatusTip(helpText)
settingsAction.triggered.connect(self.SettingsWin)
toolsMenu.addActions((settingsAction,))
# Status Bar
self.statusLabel = QtGui.QLabel()
self.statusLabel.setFrameStyle(QtGui.QFrame.StyledPanel|QtGui.QFrame.Sunken)
status = self.statusBar()
status.setSizeGripEnabled(False)
status.addPermanentWidget(self.statusLabel)
status.showMessage("Ready", 5000)
self.show()
self.raise_()
def SettingsWin(self):
print "Calling Settings Window"
self.settingsWin = GlobalSettingsDlg(self)
#self.settingsWin.show()
settingsWin.exec_()
Both InitSkeleton (From a QPushButton) and SettingsWin (From a
Menu Action) are not actually being called. Does a really simple test where you show a generic button that prints something when clicked not work either?
Just wondering if its only related to your existing code, or PyQt not working in general.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/530A671D.6010607%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA08dDqJzfqNriUiQ0MatX0CC%3Di8mzL%2BFgr3SuuUHpzhtw%40mail.gmail.com.
| David Moulder Technical Animator / Artist squi...@gmail.com Professional Profile |
Mobile: +44 (0)7814033242 |
| See who we know in common | Want a signature like this? |
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABD4PkRYUN6BsZiFVr%2B_1W4nuMXvMMXbyEBf%3D8yo6Z3HaXqONw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da6y0rbXC2jCssA6pgi3weu6SyHq0W513bX0ROEx73tS%3DQ%40mail.gmail.com.
Hey,Just wanted to get a helpful push in the right direction if anyone knows. I want to be able to insert the maya renderview (just the rendering/rendered image) into my own qt layout to enhance it a bit with some tools, but before I go too far I just wanted to see if anyone knows if it is even possible to do such a thing? If not then it will only be a post rendered tool.My searching hasn't really shown me if it's entirely possible.Thanks,Mark
You could find the layout and add it?
--
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 emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/29945cb1-3a64-42d4-9444-9245b542ef32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA00z3xTDMmwGrgMad2Sm34zjU9uh5fDfut-a0sELLOiLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.