Thread: IPlug - Youlean
View Single Post
Old 05-07-2017, 09:32 AM   #103
Anomaly
Human being with feelings
 
Anomaly's Avatar
 
Join Date: Sep 2007
Posts: 642
Default

Quote:
Originally Posted by Youlean View Post
Yes, it gives you pointer because in that way you can rearrange layers and still having correct control position number. This was implemented mainly because of GUI live edit but it can get handy if you want to rearrange control layers in your plugin...
Ok thanks, I guess that explains it. I have an issue with this, though:

GetGUI()->SetControlFromPlug(id, val);

SetControlFromPlug needs an integer variable id. But now I have a pointer. Is there a way to overcome this?
__________________
___________________________
Sonic Anomaly | free JSFX & VST Plugins
Anomaly is offline   Reply With Quote