wmangle

Apr 5, 2008 at 3:18pm

wmangle

Hi,
I want to postion my VST plug-in in my screen (centre)
I’ve tried wmangle(Thomas Grill) but it don’t work.
Is there any other way to do it?

regards

Nicolas

#36748
Apr 5, 2008 at 3:35pm

i may be totally incorrect about this, but i think that’s kinda under the control of the host program. looking through the vstgui sdk, i can’t find any mention of a way to position the window.

#126321
Apr 5, 2008 at 4:54pm

I guess this does exactly what you want, only with vanilla objects.
(it could have been a nice encapsulated grab example though =)

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 347 79 30 196617 open;
#P newex 409 198 48 196617 route -9;
#P newex 320 261 42 196617 pack i i;
#P newex 320 282 68 196617 prepend open;
#P newex 347 114 30 196617 t b b;
#P newex 284 240 64 196617 unpack i i i i;
#P newex 284 219 135 196617 vexpr ($i1*0.5)-($i2*0.5);
#P newex 236 198 58 196617 screensize;
#P message 367 137 38 196617 get -9;
#P newex 367 157 66 196617 grab 4;
#P message 135 123 26 196617 plug;
#N vst~ loaduniqueid 0;
#P newobj 207 343 79 196617 vst~;
#P connect 11 0 7 0;
#P connect 8 0 0 0;
#P connect 9 0 8 0;
#P connect 6 2 9 0;
#P connect 6 3 9 1;
#P connect 5 0 6 0;
#P connect 10 0 5 1;
#P connect 2 3 10 0;
#P connect 4 1 5 0;
#P connect 7 0 4 0;
#P connect 7 1 3 0;
#P fasten 2 4 0 0 428 182 212 182;
#P connect 3 0 2 0;
#P connect 1 0 0 0;
#P window clipboard copycount 12;

Ciao.

#126322
Apr 5, 2008 at 5:14pm

… of course, you need to connect the left outlet of [screensize] to [vexpr] and not the right one as in my example (if you don’t use multiple monitors it will still work).

And Kasper, once again your message didn’t get to the forum…
Did you try to get rid of the first “Re:” prefix in your email subject when posting ? (just a thought)

Ciao.

#126323
Apr 6, 2008 at 6:06pm

Thanks

Many many Thanks

Nicolas

#126324

You must be logged in to reply to this topic.