Old 11-06-2021, 06:24 AM   #1
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default @param cool tricks

Hi

I just discovered by accident that there is an undocumented alternative syntax for "@param" line in presets. The alternate syntax is
Code:
//@param ParameterVariableName "ParamShownName" default_value minimum_val maximum_val medium_value step_size
for example instead of:
Code:
//@param1:alpha 'alpha' 1 0 1 .5 .01
//@param2:zoom 'zoom' 1 0.01 4 1 0.01
//@param3:offX 'offset x' 0 -1 1 0 0.001
//@param4:offY 'offset y' 0 -1 1 0 0.001
you can write:
Code:
//@param alpha 'alpha' 1 0 1 .5 .01
//@param zoom 'zoom' 1 0.01 4 1 0.01
//@param offX 'offset x' 0 -1 1 0 0.001
//@param offY 'offset y' 0 -1 1 0 0.001
so you may reorder parameters or insert new ones without renumbering

BTW did you know you can increase the precision of the "rotate" angle of the "Track opacity/zoom/pan - video processor" just by changing
Code:
//@param5:rotate 'rotate' 0 -360 360 0 1
with
Code:
//@param5:rotate 'rotate' 0 -360 360 0 0.1
papagirafe is offline   Reply With Quote
Old 11-06-2021, 07:07 AM   #2
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,032
Default

//@param rotate 'rotate' 0 -360 360 0 0.1

Thanks for the sharing of these insights, my friend.
TonE is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.