Maya/Python Duplicated Attribute Editor panel in a custom window

As in the topic - anyone know how to recreate the attribute editor panel in a newly created window?

I started to work on this a bit the other day. I got this far with it, before I had to drop it, and work on something else. No idea whether ultimately it will work or not.

@staticmethod
def getWidget(name=None):
	'''
	Get Qt widget/s
	args:
		name='string' - optional name of widget (widget.objectName)
	returns:
		if name: corresponding <widget object>
		else: return a dictionary of all widgets {widgetName:widget}
	'''
	widgets = {w.objectName():w for w in QtWidgets.QApplication.allWidgets()}
	if name:
		return widgets[name]
	else:
		return widgets

then I would add it to a pyside ui. Which in my case would be something like this:

self.stackedWidget.addWidget(self.getWidget(‘MainAttributeEditorLayout’))

But like I said, I haven’t had time to fully hash this out. The attribute editor was showing up in my window though.

I don’t know the answer, but this might help you work it out:
https://stackoverflow.com/questions/52509231/maya-python-open-another-instance-of-the-attribute-editor

also you should be able to find a lot of information on this type of topic here: Python Programming for Autodesk Maya

This topic was automatically closed after 87 days. New replies are no longer allowed.