Hello.
I’m creating simple script for my friend to have some favorite materials always on top.
Now it’s working well, for each material I use qPushButton with context menu on right click (left click assigning material to selection).
And my question to you guys is it is possible to instead of buttons use “swatchDisplayPort” or something like that?
I have no idea how to attach it to my QT UI. Even popup menu is on left click
now I’m just attaching material qPushbutton to qGridLayout, but it will be quite nice to have swatches like in hypershade.
My code is pretty rought right now, now I’m adding some new functions like import/export libraries. And mostly rewriting all trying to optimize.
But with no programming background, I’ll appreciate all tips
Best regards
Krzym