Old 09-28-2021, 05:08 AM   #1
mawi
Human being with feelings
 
Join Date: Apr 2011
Location: Germany
Posts: 1,185
Default Theme Adjuster Question

I want my myparam1 to go from 0.5 to 1, in 0.01 increments. Default value is 0.66. How do I do this? I would like to use this parameter in the edge attachment.

Last edited by mawi; 09-28-2021 at 05:14 AM.
mawi is offline   Reply With Quote
Old 09-28-2021, 11:10 AM   #2
PhelixK
Human being with feelings
 
PhelixK's Avatar
 
Join Date: Mar 2019
Posts: 876
Default

Quote:
Originally Posted by mawi View Post
I want my myparam1 to go from 0.5 to 1, in 0.01 increments. Default value is 0.66. How do I do this? I would like to use this parameter in the edge attachment.
Hi,
not sure what you're about to do but, for the default TA I would try this:

In rt:
define_parameter P_myparam1 'my slider parameter name' 666 500 1000

When inserted, reduce the P value into something useful:
P_myparam1 * scale 0.001


– just an idea!
PhelixK is offline   Reply With Quote
Old 09-28-2021, 11:59 AM   #3
mawi
Human being with feelings
 
Join Date: Apr 2011
Location: Germany
Posts: 1,185
Default

thanks, it doesn't seem to work the way i thought
mawi is offline   Reply With Quote
Old 09-28-2021, 12:12 PM   #4
PhelixK
Human being with feelings
 
PhelixK's Avatar
 
Join Date: Mar 2019
Posts: 876
Default

Quote:
Originally Posted by mawi View Post
thanks, it doesn't seem to work the way i thought
oh, what is the problem then?
When I wrote 'reduce to something useful' for the values, it depends on resolution and other things.

I just did a quick example using this method, works ok I think:


PhelixK is offline   Reply With Quote
Old 09-28-2021, 01:25 PM   #5
mawi
Human being with feelings
 
Join Date: Apr 2011
Location: Germany
Posts: 1,185
Default

Code:
define_parameter Echolot_1.8 'Echolot 1.8' 1
define_parameter myparam1 'MCP2 hight' 666 500 1000

set param1 myparam1 * 0.001

set mcp.extmixer.position [6 20 92 310 0 0 0 param1]
This code does not work. Where is the error?
mawi is offline   Reply With Quote
Old 09-28-2021, 01:31 PM   #6
mawi
Human being with feelings
 
Join Date: Apr 2011
Location: Germany
Posts: 1,185
Default

Found the error. Now it seems to work.
Code:
set param1 * myparam1 0.001
Thanks PhelixK!
mawi is offline   Reply With Quote
Old 09-28-2021, 10:12 PM   #7
PhelixK
Human being with feelings
 
PhelixK's Avatar
 
Join Date: Mar 2019
Posts: 876
Default

yes, you got it, good!
PhelixK is offline   Reply With Quote
Old 10-03-2021, 08:09 AM   #8
DVDouglas
Banned
 
Join Date: Dec 2019
Posts: 55
Default

Excellent, thanks for share this code
DVDouglas 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 04:05 PM.


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