# Maya/Python Duplicated Attribute Editor panel in a custom window

**URL:** https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266
**Category:** Maya
**Created:** [August 28, 2019, 1:27pm UTC](https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266 "2019-08-28T13:27:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![chris-john--2](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/c/76d3ee/32.png) [@chris-john--2](https://forum.highend3d.com/u/chris-john--2)
#### Post date: [August 28, 2019, 1:27pm UTC](https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266/1 "2019-08-28T13:27:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![m3trik](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@m3trik](https://forum.highend3d.com/u/m3trik)
#### Post date: [August 28, 2019, 3:31pm UTC](https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266/2 "2019-08-28T15:31:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![rjktlf](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@rjktlf](https://forum.highend3d.com/u/rjktlf)
#### Post date: [August 28, 2019, 3:39pm UTC](https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266/3 "2019-08-28T15:39:58Z")

</div>

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](https://stackoverflow.com/questions/52509231/maya-python-open-another-instance-of-the-attribute-editor)

---

<div class="post-metadata">

### Author: ![m3trik](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@m3trik](https://forum.highend3d.com/u/m3trik)
#### Post date: [August 28, 2019, 7:23pm UTC](https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266/4 "2019-08-28T19:23:12Z")

</div>

also you should be able to find a lot of information on this type of topic here: [Python Programming for Autodesk Maya](https://groups.google.com/forum/#!forum/python_inside_maya/join)

---

<div class="post-metadata">

### Author: ![apatrickschwalbe](https://forum.highend3d.com/user_avatar/forum.highend3d.com/apatrickschwalbe/32/59317_2.png) [@apatrickschwalbe](https://forum.highend3d.com/u/apatrickschwalbe)
#### Post date: [September 4, 2019, 7:10pm UTC](https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266/5 "2019-09-04T19:10:33Z")

</div>

> [@chris-john--2](#):
>
> d

![](https://forum.highend3d.com/uploads/default/original/3X/6/8/6838c37864a2562ff9792f9a458c8307fd0f2306.png)

---

<div class="post-metadata">

### Author: ![system](https://forum.highend3d.com/user_avatar/forum.highend3d.com/system/32/59311_2.png) [@system](https://forum.highend3d.com/u/system)
#### Post date: [November 24, 2019, 3:16am UTC](https://forum.highend3d.com/t/maya-python-duplicated-attribute-editor-panel-in-a-custom-window/161266/6 "2019-11-24T03:16:27Z")

</div>

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