Inverted meters in RackAFX 7.0.3.5 GUI Designer | Using the RackAFX GUI Designer | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Inverted meters in RackAFX 7.0.3.5 GUI Designer
Avatar
Member
Members
June 5, 2022 - 8:32 pm
Member Since: August 9, 2021
Forum Posts: 9
sp_UserOfflineSmall Offline

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.

Avatar
Admin
June 6, 2022 - 9:59 am
Member Since: January 29, 2017
Forum Posts: 690
sp_UserOfflineSmall Offline

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). 

aImage Enlarger

 

Change this to InvertedMeterView to enable that custom view:

bImage Enlarger

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 

Avatar
Member
Members
June 7, 2022 - 12:25 am
Member Since: August 9, 2021
Forum Posts: 9
sp_UserOfflineSmall Offline

Thanks for the detailed response! Entering the correct custom view has solved my issue. The additional docs you've provided are also very helpful.

 

Russ

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
2 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: 1

Members: 775

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 846

Posts: 3353

Moderators: W Pirkle: 690