Forums > MaxMSP

pictslider size?

June 6, 2007 | 4:48 pm

hi

would there be another way than scripting to define/change a pictslider size??
(scripting does erease and redo the object and its connections, right???)

many thanks

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

http://www.myspace.com/sleazeart


June 6, 2007 | 4:56 pm

With scripting –
If the object is named- you can replace it with a larger one- that way rather than deleting and making a new one- that will keep the connections in place too!


June 6, 2007 | 5:06 pm

>With scripting -

yeah well – since it outputs its size when you change it manually (on
the bottom of the patch window) i thought there would be a message,
something in the inspector, anything to have a precise size (when
building a patch – i don’t feel like patching by scripting !)

thanks

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

http://www.myspace.com/sleazeart


June 6, 2007 | 5:51 pm

On 6 juin 07, at 19:06, Kasper T Toeplitz wrote:

> yeah well – since it outputs its size when you change it manually
> (on the bottom of the patch window) i thought there would be a
> message, something in the inspector, anything to have a precise
> size (when building a patch – i don’t feel like patching by
> scripting !)

It’s not a big deal, you just need to send script size (it does not
recreate the object). bringtofront is here to force the object to be
redrawn.

ej

#P user pictslider 244 86 119 119 4 4 4 4 SliderDefaultKnob.pct 0
SliderDefaultBkgnd.pct 0 2163 0 8323072 127 1. 1.;
#P objectname toto;
#P window setfont "Sans Serif" 9.;
#P number 49 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P message 49 136 150 196617 script size toto $1 $1 , script
bringtofront toto;
#P number 244 48 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 353 48 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 244 226 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 353 226 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#N thispatcher;
#Q end;
#P newobj 49 175 61 196617 thispatcher;
#P connect 6 0 5 0;
#P connect 5 0 0 0;
#P connect 7 1 1 0;
#P connect 7 0 2 0;
#P connect 3 0 7 1;
#P connect 4 0 7 0;
#P window clipboard copycount 8;


June 7, 2007 | 10:04 am

wow, nice!!!

thanks

kasper

>
>>yeah well – since it outputs its size when you change it manually
>>(on the bottom of the patch window) i thought there would be a
>>message, something in the inspector, anything to have a precise
>>size (when building a patch – i don’t feel like patching by
>>scripting !)
>
>It’s not a big deal, you just need to send script size (it does not
>recreate the object). bringtofront is here to force the object to be
>redrawn.
>
>ej
>
>#P user pictslider 244 86 119 119 4 4 4 4 SliderDefaultKnob.pct 0
>SliderDefaultBkgnd.pct 0 2163 0 8323072 127 1. 1.;


June 7, 2007 | 10:46 am

>>
>>>yeah well – since it outputs its size when you change it manually
>>>(on the bottom of the patch window) i thought there would be a
>>>message, something in the inspector, anything to have a precise
>>>size (when building a patch – i don’t feel like patching by
>>>scripting !)
>>
>>It’s not a big deal, you just need to send script size (it does not
>>recreate the object). bringtofront is here to force the object to
>>be redrawn.

and since it works beautifully on hslider as well, and the 2 objects
(pictslider, hsilder) share the same basic default look, is it
possible to reduce the hslider margins??

thanks

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

http://www.myspace.com/sleazeart


June 7, 2007 | 10:58 am

On 7 juin 07, at 12:46, Kasper T Toeplitz wrote:

> and since it works beautifully on hslider as well, and the 2
> objects (pictslider, hsilder) share the same basic default look, is
> it possible to reduce the hslider margins??

It’s not, ‘cos pictslider display an image, and hslider have the
margin "hard coded".

ej


June 7, 2007 | 12:03 pm

>On 7 juin 07, at 12:46, Kasper T Toeplitz wrote:
>
>>and since it works beautifully on hslider as well, and the 2
>>objects (pictslider, hsilder) share the same basic default look, is
>>it possible to reduce the hslider margins??
>
>It’s not, ‘cos pictslider display an image, and hslider have the
>margin "hard coded".
>

ah, so deska………….

kasper


Viewing 8 posts - 1 through 8 (of 8 total)