mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
266 stars 94 forks source link

Shifter: Squash_01 add scale multipliers #339

Closed miquelcampos closed 10 months ago

miquelcampos commented 10 months ago
joji2468ng commented 10 months ago

Hi @miquelcampos,

It seems like we can't open the guide setting UI after merging.


#   File "C:\Users\georg\OneDrive\Documents\maya\GitHub\mgear4\release\scripts\mgear\shifter\guide_manager.py", line 104, in inspect_settings
#     wind = pyqt.showDialog(guide.componentSettings, dockable=True)
#   File "C:\Users\georg\OneDrive\Documents\maya\GitHub\mgear4\release\scripts\mgear\core\pyqt.py", line 167, in showDialog
#     windw = dialog()
#   File "C:/Users/georg/OneDrive/Documents/maya/GitHub/mgear4/release/scripts/mgear/shifter_classic_components\squash_01\guide.py", line 100, in __init__
#     self.populate_componentControls()
#   File "C:/Users/georg/OneDrive/Documents/maya/GitHub/mgear4/release/scripts/mgear/shifter_classic_components\squash_01\guide.py", line 129, in populate_componentControls
#     self.settingsTab.squashX_slider.setValue(int(self.root.attr("squashX").get() * 100))
# AttributeError: 'settingsTab' object has no attribute 'squashX_slider'```
miquelcampos commented 10 months ago

@joji2468ng the error is because the guide has not been updated. The Squash_01 has new attrs. Use update guide command form the menu or from the right click context menu. If the guide is serialized in .sgt format will automatically update at import time ;)