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
-
gthibert
- Member
- Posts: 46
- Location: Chicoutimi, Québec
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
-
23fx23
- Member
- Posts: 2548
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;
/////////////////////////-
gthibert
- Member
- Posts: 46
- Location: Chicoutimi, Québec
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
