scale in one direction

Jun 9, 2008 at 3:40pm

scale in one direction

Hello,

I would like to increase the scale of a [jit.gl.gridshape @opencube] towards the front of the screen.

The problem is that “scale” message to the object increase it towards both the front and the bottom.

Is there a way to do deal with that?

max v2;
#N vpatcher 109 84 1150 770;
#P origin 0 21;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 328 101 48 196617 loadbang;
#P message 328 122 329 196617 rotate 25.985878 0.409519 -0.895855 -0.172455;
#P flonum 855 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 819 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 783 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 747 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 714 188 143 196617 pak rotate 0. 0. 0. 0.;
#P message 492 188 34 196617 reset;
#P newex 586 337 264 196617 jit.gl.gridshape decor @matrixoutput 1 @shape opencube;
#P newex 567 259 62 196617 prepend set;
#P newex 677 258 47 196617 gate 1 1;
#N vpatcher 460 63 588 255;
#P outlet 32 74 15 0;
#P inlet 36 41 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 714 233 13 196617 p;
#P window setfont “Sans Serif” 36.;
#P flonum 797 63 160 36 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#P newex 698 122 111 196617 pak scale 0.2 0.2 0.2;
#P toggle 473 209 15 0;
#P newex 473 229 29 196617 gate;
#P newex 492 206 91 196617 jit.gl.handle decor;
#P newex 473 410 177 196617 jit.gl.mesh decor @scale 0.2 0.2 0.2;
#P message 59 233 128 196617 name decor , size 320 240;
#P user jit.pwindow 58 259 322 242 0 1 0 0 1 0;
#X name decor;
#P newex 57 149 93 196617 jit.gl.render decor;
#P newex 57 87 50 196617 t b erase;
#P toggle 57 37 15 0;
#P newex 57 61 57 196617 qmetro 20;
#P message 567 279 329 196617 rotate 25.985878 0.409519 -0.895855 -0.172455;
#P connect 2 0 1 0;
#P connect 1 0 3 0;
#P connect 3 0 4 0;
#P fasten 3 1 4 0 102 108 62 108;
#P connect 6 0 5 0;
#P connect 24 0 23 0;
#P connect 10 0 9 0;
#P connect 23 0 7 0;
#P connect 9 0 7 0;
#P fasten 14 0 7 0 682 298 478 298;
#P connect 16 0 7 0;
#P connect 17 0 8 0;
#P connect 8 0 9 1;
#P fasten 9 0 15 0 478 252 572 252;
#P connect 15 0 0 0;
#P connect 18 0 13 0;
#P fasten 11 0 13 0 703 215 719 215;
#P connect 13 0 14 1;
#P connect 19 0 18 1;
#P connect 20 0 18 2;
#P fasten 12 0 11 3 802 116 802 116;
#P connect 21 0 18 3;
#P connect 22 0 18 4;
#P pop;

#38308
Jun 9, 2008 at 11:17pm

Is this what you mean?

Zachary

max v2;
#N vpatcher 10 59 688 636;
#P origin 0 21;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 333 202 261 196617 jit.gl.mesh decor @scale 0.2 0.2 0.2 @lighting_enable 1;
#P message 375 176 84 196617 position 0. 0. $1;
#P newex 375 153 33 196617 – 0.2;
#P newex 333 131 264 196617 jit.gl.gridshape decor @shape opencube @matrixoutput 1;
#P window setfont “Sans Serif” 36.;
#P flonum 359 43 160 36 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#P newex 266 105 105 196617 pak scale 0.2 0.2 0.2;
#P message 66 249 128 196617 name decor , size 320 240;
#P user jit.pwindow 65 275 322 242 0 1 0 0 1 0;
#X name decor;
#P newex 64 135 93 196617 jit.gl.render decor;
#P newex 64 103 50 196617 t b erase;
#P toggle 64 53 15 0;
#P newex 64 77 57 196617 qmetro 20;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P fasten 2 1 3 0 109 124 69 124;
#P connect 2 0 3 0;
#P connect 5 0 4 0;
#P connect 8 0 11 0;
#P connect 6 0 11 0;
#P connect 10 0 11 0;
#P connect 7 0 6 3;
#P connect 7 0 9 0;
#P connect 9 0 10 0;
#P pop;

#133328
Jun 10, 2008 at 5:34pm

Oh! thank you !

I’m surprised ! So simple …
I forgot to use my head.

In fact I was looking for a complicated way to do that with [jit.gl.sketch] …

Thank you again.

#133329

You must be logged in to reply to this topic.