

Hello Will,
I'm trying to include an inverted meter in a GUI for a plugin I've made with RackAFX 7.0.3.5, but I'm having trouble getting it to work.
I found this thread that seems to relate to a similar problem with RackAFX 6; the GUI designer seems to have changed a bit from version 6 to version 7, but I tried as many of the suggestions given there as possible. The metering variable being fed to the GUI is inverted in the RackAFX prototyping pane. I've tried both horizontal and vertical layout meters, and both operate in the default direction (bottom to top for vertical and left to right for horizontal.)
Thanks in advance for your help.
Inverted meters require a CustomView in VSTGUI4. The custom views are built in.
In older versions of RackAFX, when you set the meter as Inverted in the Prototyping panel, the GUI designer would automatically check and apply the custom view. The problem was that some users had their own custom view objects for meters/inverted meters (there's a lot you can customize with meters). RackAFX would overwrite their custom view with the built-in custom view when it did it's verification before writing the XML file.
I removed this over-write code quite a while ago to stop that problem, and also to make the meters conform to the other controls, as far as setting custom views manually in the GUI designer goes - it's easy you just type in the name.
There are four built-in CustomViews for meters:
MeterView
InvertedMeterView
AnalogMeterView
InvertedAnalogMeterView
When you drag a VU meter into the GUI designer, the CustomView will be set to MeterView by default (then, the GUI designer will never touch it again).
Change this to InvertedMeterView to enable that custom view:
The same applies for analog meters - they have their own custom views.
The trackpad (aka XY Pad) has a special custom view naming system (see ASPiK documentation link below).
In plugingui.cpp, find the createView( ) function and you can see all of the built-in custom view strings - there are quite a few, and some were added specifically for ASPiK. These include more versions of the kick button, custom labels, etc...
The following example project is based on the XYPads and Meters project that I put in the Support -> Advanced Tutorials -> XYPad and VU Meters here:
https://www.willpirkle.com/support/advanced-tutorials/xypad-and-vu-meter-tutorial/
The new project just adds inverted versions of the LED meters. This one is just for RackAFX (though you can always export as ASPiK).
http://www.willpirkle.com/Down.....rs.2.0.zip
CustomViews and SubControllers are probably the two most powerful extensions to VSTGUI4 that lets you truly do anything you want, when combined with their numerous library components. You can find the help for the meter views (and several others) in the ASPiK docs:
http://aspikplugins.com/sdkdoc....._u_i6.html
Will
Most Users Ever Online: 294
Currently Online:
7 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chaes: 56
Skyler: 48
StevieD: 46
Derek: 46
Frodson: 45
Peter: 43
TheSmile: 43
Nickolai: 43
clau_ste: 39
jeanlecode: 37
Member Stats:
Guest Posters: 2
Members: 795
Moderators: 1
Admins: 6
Forum Stats:
Groups: 13
Forums: 42
Topics: 862
Posts: 3400
Newest Members:
AP, Liv, Wojciech Jakóbczyk, markb, marcTark, Jon_1, John Thursday, JK, kyrandian, F_MarchalModerators: W Pirkle: 706