Page 1 of 1

Posted: 10 Aug 2011, 17:46
by senso
After few requests here is a small patch to show how to change dynamically the layout colors of a XY pad
It's a draft but can be adapted easily to all controls
Use NO CPU!! and no script!!!

http://www.sensomusic.com/forums/upload ... 0Color.pat

Posted: 10 Aug 2011, 18:17
by nay-seven
Whaoo, cool one !

Posted: 10 Aug 2011, 18:22
by Floego
Smart solution! :)

Posted: 10 Aug 2011, 19:33
by GDLive
Thanks a lot !
:)

Posted: 10 Aug 2011, 19:44
by joffo78
sorry but in what consist your example ?
i open the patch and nothing happend.
what it's the function ?

Posted: 10 Aug 2011, 19:51
by GDLive
Normally, you can change the caption color with the sub patch "set color" (no caption in the example => switch to prm to the ball for ex.)

nb : The patch has to be active on usine's engine on

Posted: 10 Aug 2011, 19:53
by woodslanding
Awesome--this is such a great method!!! Easy, fast and flexible.

Is there a list of IML commands that can be applied to controls somewhere? Specifically, I'm wondering about loading bmps....

I'll look in the WiKi

Posted: 10 Aug 2011, 20:16
by woodslanding
I checked, and it looks like I may be able to load BMPs this way, but I have another question:

Will it be possible to use this technique in a poly patch? I have a patch that uses identical controls, but I'd like different BMPs for some switches.

Is there a way to rename the controls for each voice? Right now it seems like they would all have the same name, and therefore all receive the same IML.

Posted: 10 Aug 2011, 23:54
by woodslanding
Okay, I've tried to change the BMP, but there are too many questions!

What is the file delimiter--I can't find that in the WIKI. And when I put the filename in single-quotes, the last one disappears. When I use double quotes they both disappear.... and the property is in double-quotes in the wiki but single quotes in the example. And the example adds a single-quote at the end--so I'm not clear what's being displayed, versus what's actually in the strings...

Plus I have a feeling it's not going to work anyway, because the text in the field doesn't display the whole file path?

Also, is there a default directory that usine looks for files in?

If it's possible to do this, it would be great.

thanks!

Posted: 11 Aug 2011, 12:42
by senso
All the layout numerical values can be set with this patch.
But unfortunately not strings (like bitmap file names, etc..)
Sorry but I'm not sure I'll have time to enable this possibility soon.

Posted: 11 Aug 2011, 18:41
by woodslanding
oh well. It would have solved my prob which required invisible controls.... the best solution, in fact ;)

but you have said someday you will have all controls' properties addressable from patching? I'll have to wait until then, I guess.

Posted: 11 Aug 2011, 20:13
by multiphone
Brillant !

Thanks Olivier !

H.