Website Youtube GitHub

Synoptic error with custom buttons


#1

Hello! I’m really enjoying learning mGear, it’s a really great rigging system. I’m trying to make some custom buttons in Synoptic, and this is the error message I’m getting:

Loading synoptic tab of biped
# Traceback (most recent call last):
#   File "S:\Programs\mgear_3.1.1\scripts\mgear\synoptic\__init__.py", line 236, in updateTabs
#     synoptic_tab = getattr(module, "SynopticTab")()
#   File "S:\Programs\mgear_3.1.1\scripts\mgear\synoptic\tabs\HH_FoxBoy\__init__.py", line 31, in __init__
#     super(SynopticTab, self).__init__(self, parent)
#   File "S:\Programs\mgear_3.1.1\scripts\mgear\synoptic\tabs\__init__.py", line 48, in __init__
#     klass.setupUi(self)
#   File "S:\Programs\mgear_3.1.1\scripts\mgear\synoptic\tabs\HH_FoxBoy\widget.py", line 67, in setupUi
#     palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush)
# AttributeError: type object 'PySide2.QtGui.QPalette' has no attribute 'PlaceholderText'
// Error: Synoptic tab: %s Loading fail HH_FoxBoy
type object 'PySide2.QtGui.QPalette' has no attribute 'PlaceholderText' // 

Any idea what might be causing this? All I did was copy and paste the buttons, and change some of the control names, like in this tutorial.


#2

Hi @ericEDfilms Can you send me the synoptic files in a PM . I will check it

Cheers,
Miquel


#3

Hey @Miquel , I’m not sure how to PM on this forum, but here is an archive of the file.

Thanks!


#4

Hi @ericEDfilms I am sorry for taking so long to check this. But I don’t forget it :slight_smile:


#5

Hi. I’m having the same error after trying to delete some unneeded buttons
‘PySide2.QtGui.QPalette’ has no attribute ‘PlaceholderText’.
Here are my files: https://yadi.sk/d/NY7iS4aapn9LsA.


#6

Hi @ericEDfilms

Sorry for the super late reply.
looks like you set a configuration in the palette that was not compatible with synoptic. I can’t find how you did it. But just try to use your version without transparency set. And looks like fixes the issue

I did it again, and now have not the “PlaceholderText” entry.

cheers,
Mique;