Hi all,
I'm trying to set the name of a preset in preset manager using internal messages, but I can't get it to work.
I use SET_STRING_VALUE, but I can't set a value on terminals "0, 1, 2..." .
It actualy works if I set the value to a text field and link the text field to the preset terminal, but I wonder if it's possible to set it directly.
Guillaume
Setting preset name with IML
Guillaume Thibert
www.cemproduction.com
www.cemproduction.com
It should work. I've just tested it and it's ok....
If the name of your preset manager is "pm", the message will be for example:
SET_STRING_VALUE pm 4 "yo!"
If the name of your preset manager is "pm", the message will be for example:
SET_STRING_VALUE pm 4 "yo!"
Seb.Dub
I'm trying thru a script, and it does'nt work.
SendInternalMsg('SET_STRING_VALUE', 'pm', '4', 'yo!');
SendInternalMsg('SET_STRING_VALUE', 'pm', '4', 'yo!');
Guillaume Thibert
www.cemproduction.com
www.cemproduction.com
hi gthibert.
strange ive tested and it works here, did you made something to trig the code? set the patch as active patch? module is same renamed to PM?
here with a button i can rename correctly when clic on it, look like this:
strange ive tested and it works here, did you made something to trig the code? set the patch as active patch? module is same renamed to PM?
here with a button i can rename correctly when clic on it, look like this:
Code: Select all
/////////////////////////
// parameters declaration
var go: Tparameter;
////////////////////////
procedure init;
begin
go:= CreateParam('go',PtButton); SetisOutput(go,false);
end;
////////////////////////////
Procedure Callback(N:integer);
begin
if ((n=go) and (getvalue(go)=1)) then begin
SendInternalMsg('SET_TARGET_PATCH','SENDER_PATCH');
SendInternalMsg('SET_STRING_VALUE', 'PM', '4', 'yo!');
end;
end;
/////////////////////////Thanks,
It works,
The line SendInternalMsg('SET_TARGET_PATCH','SENDER_PATCH'); was missing in my code.
It works,
The line SendInternalMsg('SET_TARGET_PATCH','SENDER_PATCH'); was missing in my code.
Guillaume Thibert
www.cemproduction.com
www.cemproduction.com
Who is online
Users browsing this forum: No registered users and 20 guests
