Forums > Jitter

Parent+Child Rotations

March 28, 2008 | 1:09 pm

Hi there
I’m trying to make parent-child control, while translate and rotate 2 objects in 3D space. I’ve got in trouble with Z
axiz rotations. It seems that X axis belongs to the object and Y and Z are global…
Here is a demo patch showing the problem.
I can not control Y and Z rotations of "child" object when "parent" rotates. And I would be happy to be able to…
Any idea or reference will be appriciated.
thanks
Alex


March 28, 2008 | 1:12 pm

Sorry, just forgot th attach the patch


March 28, 2008 | 1:13 pm

here is the same thing:
max v2;
#N vpatcher 473 42 1174 353;
#P origin 0 3;
#P window setfont "Sans Serif" 18.;
#P comment 312 211 117 9109522 COMMENTS;
#P window setfont "Sans Serif" 9.;
#N vpatcher 419 573 920 788;
#P window setfont "Sans Serif" 12.;
#P window linecount 2;
#P comment 3 101 463 9109516 Example 4: child rotation Az + parent rotations Ax Ay Az. /// child’ orientation changes , after parent rotates around X axis and Y axiz;
#P comment 3 138 463 9109516 Example 5: child rotation Az Ay + parent rotations Ax Ay Az. /// child’ orientation changes , after parent rotates around X axiz and Y axis;
#P comment 3 64 463 9109516 Example 3: child rotation Ay + parent rotations Ax Ay Az. /// child’ orientation changes , after parent rotates around Y axiz;
#P window linecount 1;
#P comment 3 44 441 9109516 Example 2: child rotation Ax + parent rotations Ax Ay Az. /// child stays orientated;
#P comment 3 24 344 9109516 Example 1: parent rotations Ax Ay Az. /// child stays orientated;
#P pop 1;
#P newobj 339 240 60 9109513 p comments;
#P window setfont "Sans Serif" 18.;
#P comment 372 171 104 9109522 EXAMPLES:;
#P comment 590 169 45 9109522 zero;
#P comment 559 171 17 9109522 5;
#P comment 540 171 17 9109522 4;
#P comment 520 171 17 9109522 3;
#P comment 499 171 17 9109522 2;
#P button 599 200 30 0;
#P button 559 199 15 0;
#P button 540 199 15 0;
#P button 521 199 15 0;
#P button 502 199 15 0;
#P button 483 199 15 0;
#P window setfont "Sans Serif" 9.;
#P message 173 52 16 9109513 -1;
#N vpatcher 654 370 1137 691;
#P window setfont "Sans Serif" 9.;
#P newex 195 236 54 9109513 delay 1000;
#P comment 383 22 29 9109513 zero;
#P inlet 289 41 15 0;
#P comment 271 23 54 9109513 exampe 5;
#P inlet 230 41 15 0;
#P comment 213 23 54 9109513 exampe 4;
#P inlet 167 41 15 0;
#P comment 150 23 54 9109513 exampe 3;
#P inlet 103 41 15 0;
#P comment 94 23 54 9109513 exampe 2;
#P message 346 81 55 9109513 0. , 60 2000;
#P newex 346 102 40 9109513 line 0.;
#P newex 300 80 41 9109513 r lineto0;
#P message 289 61 55 9109513 0. , 60 2000;
#P newex 289 106 40 9109513 line 0.;
#P newex 178 79 41 9109513 r lineto0;
#P message 167 61 61 9109513 0. , -90. 2000;
#P newex 167 105 40 9109513 line 0.;
#P message 405 68 14 9109513 0;
#P inlet 389 39 15 0;
#P button 425 68 15 0;
#P newex 405 91 43 9109513 s lineto0;
#P newex 115 79 41 9109513 r lineto0;
#P message 103 61 61 9109513 0. , -90. 2000;
#P newex 103 106 40 9109513 line 0.;
#P newex 241 80 41 9109513 r lineto0;
#P newex 15 198 41 9109513 r lineto0;
#P message 230 61 55 9109513 0. , 60 2000;
#P newex 230 106 40 9109513 line 0.;
#P inlet 15 23 15 0;
#P message 110 189 55 9109513 0. , 90 2000;
#P newex 110 210 40 9109513 line 0.;
#P message 61 166 60 9109513 0. , 120 2000;
#P newex 61 187 40 9109513 line 0.;
#P message 15 144 55 9109513 0. , 45 2000;
#P newex 15 165 40 9109513 line 0.;
#P comment 203 213 79 9109513 ROTATE CHILD;
#P comment 78 287 86 9109513 ROTATE PARENT;
#P newex 144 263 37 9109513 s P_Az;
#P newex 103 263 39 9109513 s P_Ay;
#P newex 61 263 38 9109513 s P_Ax;
#P newex 267 188 45 9109513 s CH_Az;
#P newex 219 188 47 9109513 s CH_Ay;
#P newex 172 188 46 9109513 s CH_Ax;
#P flonum 263 164 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 224 164 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 185 164 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 144 239 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 105 239 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 66 239 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 34 23 54 9109513 exampe 1;
#P fasten 39 1 16 0 381 141 20 141;
#P fasten 33 1 16 0 202 141 20 141;
#P fasten 26 1 16 0 138 141 20 141;
#P fasten 22 1 16 0 265 141 20 141;
#P connect 21 0 16 0;
#P connect 24 0 15 0;
#P connect 16 0 15 0;
#P connect 15 1 18 0;
#P connect 24 0 17 0;
#P connect 18 0 17 0;
#P connect 1 0 10 0;
#P connect 15 0 1 0;
#P connect 42 0 27 0;
#P connect 27 0 26 0;
#P connect 28 0 26 0;
#P connect 2 0 11 0;
#P connect 17 0 2 0;
#P connect 17 1 20 0;
#P connect 24 0 19 0;
#P connect 20 0 19 0;
#P connect 19 0 3 0;
#P connect 3 0 12 0;
#P connect 44 0 34 0;
#P connect 35 0 33 0;
#P connect 34 0 33 0;
#P connect 4 0 7 0;
#P connect 26 0 4 0;
#P connect 19 1 50 0;
#P connect 5 0 8 0;
#P connect 39 0 5 0;
#P connect 33 0 5 0;
#P connect 46 0 23 0;
#P connect 25 0 22 0;
#P connect 23 0 22 0;
#P connect 36 0 6 0;
#P connect 22 0 6 0;
#P connect 6 0 9 0;
#P connect 48 0 37 0;
#P connect 38 0 36 0;
#P connect 37 0 36 0;
#P connect 36 1 40 0;
#P connect 38 0 39 0;
#P connect 40 0 39 0;
#P connect 30 0 32 0;
#P connect 31 0 32 0;
#P connect 32 0 29 0;
#P fasten 50 0 30 0 200 261 455 261 455 55 430 55;
#P pop 1;
#P newobj 484 217 109 9109513 p illustration;
#P objectname illustration;
#N vpatcher 1022 436 1269 744;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 370 83 1255 359;
#P window setfont "Sans Serif" 18.;
#P window linecount 1;
#P comment 25 47 557 9109522 XYZ – coordinates , Ax Ay Az – angles of rotation around X Y Z axes;
#P comment 104 74 60 9109522 matrix;
#P comment 24 74 61 9109522 vector;
#P window linecount 3;
#P comment 790 101 57 9109522 XnewYnew Znew;
#P window linecount 1;
#P comment 741 119 42 9109522 >>>;
#P comment 575 119 21 9109522 *;
#P window linecount 6;
#P comment 601 101 131 9109522 CosAz -SinAz 0 ____________ SinAz CosAz 0 ____________ 0 0 1 ____________;
#P window linecount 3;
#P comment 537 101 34 9109522 X2 Y2 Z2;
#P window linecount 1;
#P comment 488 119 42 9109522 >>>;
#P comment 321 121 21 9109522 *;
#P window linecount 6;
#P comment 347 101 131 9109522 CosAy 0 SinAy ____________ 0 1 0 ____________-SinAy 0 CosAy ____________;
#P window linecount 3;
#P comment 283 101 34 9109522 X1 Y1 Z1;
#P window linecount 1;
#P comment 234 121 42 9109522 >>>;
#P comment 70 121 21 9109522 *;
#P window linecount 6;
#P comment 96 101 133 9109522 1 0 0 ____________ CosAx -SinAx 0 ____________ SinAx CosAx ____________;
#P window linecount 3;
#P comment 30 101 35 9109522 X0 Y0 Z0;
#P pop;
#P newobj 26 32 75 9109513 p EXPRESSION;
#P newex 108 31 45 9109513 loadbang;
#P window linecount 0;
#P newex 108 75 71 9109513 unpack 0. 0. 0.;
#P message 108 54 37 9109513 0.3 1 0;
#P flonum 106 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 65 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 23 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P outlet 135 225 15 0;
#P outlet 112 226 15 0;
#P outlet 89 226 15 0;
#N vpatcher 647 98 1105 284;
#P window setfont "Sans Serif" 9.;
#P newex 14 117 19 9109513 t b;
#P newex 185 116 19 9109513 t b;
#P outlet 386 117 15 0;
#P outlet 252 141 15 0;
#P outlet 81 142 15 0;
#P inlet 233 30 15 0;
#P inlet 204 30 15 0;
#P inlet 174 30 15 0;
#P newex 81 117 94 9109513 expr $f1*$f2-$f3*$f4;
#P newex 37 117 19 9109513 t b;
#P newex 59 117 19 9109513 t b;
#P comment 59 141 20 9109513 X3;
#P newex 68 40 44 9109513 r SIN_AZ;
#P newex 309 39 50 9109513 r COS_AZ;
#P newex 252 116 94 9109513 expr $f1*$f2+$f3*$f4;
#P newex 208 116 19 9109513 t b;
#P newex 230 116 19 9109513 t b;
#P comment 230 140 20 9109513 Y3;
#P comment 361 117 20 9109513 Z3;
#P connect 12 0 18 0;
#P connect 5 0 9 0;
#P connect 6 0 8 0;
#P connect 11 0 10 0;
#P connect 18 0 10 0;
#P connect 9 0 10 0;
#P connect 8 0 10 0;
#P connect 10 0 14 0;
#P connect 5 0 10 1;
#P connect 12 0 10 2;
#P connect 6 0 10 3;
#P connect 5 0 17 0;
#P connect 12 0 3 0;
#P connect 6 0 2 0;
#P connect 11 0 4 0;
#P connect 17 0 4 0;
#P connect 3 0 4 0;
#P connect 2 0 4 0;
#P connect 4 0 15 0;
#P connect 6 0 4 1;
#P connect 12 0 4 2;
#P connect 5 0 4 3;
#P connect 13 0 16 0;
#P pop;
#P newobj 89 196 62 9109513 p AFTER_AZ;
#N vpatcher 731 74 1179 265;
#P window setfont "Sans Serif" 9.;
#P newex 7 110 19 9109513 t b;
#P newex 254 112 19 9109513 t b;
#P outlet 321 140 15 0;
#P outlet 198 119 15 0;
#P outlet 74 134 15 0;
#P inlet 226 37 15 0;
#P inlet 197 37 15 0;
#P inlet 167 37 15 0;
#P newex 74 110 94 9109513 expr $f1*$f2+$f3*$f4;
#P newex 30 110 19 9109513 t b;
#P newex 52 110 19 9109513 t b;
#P comment 52 134 20 9109513 X2;
#P newex 61 33 44 9109513 r SIN_AY;
#P newex 304 37 51 9109513 r COS_AY;
#P newex 321 112 100 9109513 expr -$f1*$f2+$f3*$f4;
#P newex 277 112 19 9109513 t b;
#P newex 299 112 19 9109513 t b;
#P comment 299 136 20 9109513 Z2;
#P comment 174 112 20 9109513 Y2;
#P connect 13 0 18 0;
#P connect 5 0 9 0;
#P connect 6 0 8 0;
#P connect 11 0 10 0;
#P connect 18 0 10 0;
#P connect 9 0 10 0;
#P connect 8 0 10 0;
#P connect 10 0 14 0;
#P connect 5 0 10 1;
#P connect 13 0 10 2;
#P connect 6 0 10 3;
#P connect 12 0 15 0;
#P connect 13 0 17 0;
#P connect 6 0 3 0;
#P connect 5 0 2 0;
#P connect 17 0 4 0;
#P connect 11 0 4 0;
#P connect 3 0 4 0;
#P connect 2 0 4 0;
#P connect 4 0 16 0;
#P connect 6 0 4 1;
#P connect 13 0 4 2;
#P connect 5 0 4 3;
#P pop;
#P newobj 89 168 63 9109513 p AFTER_AY;
#N vpatcher 806 52 1265 245;
#P window setfont "Sans Serif" 9.;
#P newex 269 117 19 9109513 t b;
#P newex 84 118 19 9109513 t b;
#P outlet 341 141 15 0;
#P outlet 153 146 15 0;
#P outlet 61 119 15 0;
#P inlet 240 43 15 0;
#P inlet 209 43 15 0;
#P inlet 183 43 15 0;
#P newex 75 42 49 9109513 r COS_AX;
#P newex 323 42 44 9109513 r SIN_AX;
#P comment 318 141 20 9109513 Z1;
#P newex 291 117 19 9109513 t b;
#P newex 315 117 19 9109513 t b;
#P newex 340 117 94 9109513 expr $f1*$f2+$f3*$f4;
#P comment 37 120 20 9109513 X1;
#P comment 129 142 20 9109513 Y1;
#P newex 129 118 19 9109513 t b;
#P newex 107 118 19 9109513 t b;
#P newex 151 118 94 9109513 expr $f1*$f2-$f3*$f4;
#P connect 11 0 14 0;
#P connect 13 0 17 0;
#P connect 10 0 1 0;
#P connect 9 0 2 0;
#P connect 12 0 0 0;
#P connect 17 0 0 0;
#P connect 1 0 0 0;
#P connect 2 0 0 0;
#P connect 0 0 15 0;
#P connect 10 0 0 1;
#P connect 13 0 0 2;
#P connect 9 0 0 3;
#P connect 13 0 18 0;
#P connect 10 0 7 0;
#P connect 9 0 6 0;
#P connect 18 0 5 0;
#P connect 12 0 5 0;
#P connect 7 0 5 0;
#P connect 6 0 5 0;
#P connect 5 0 16 0;
#P connect 9 0 5 1;
#P connect 13 0 5 2;
#P connect 10 0 5 3;
#P pop;
#P newobj 89 142 61 9109513 p AFTER_AX;
#P comment 14 250 204 9109513 NOTE! CENTER OF THE CYLINDER MOVED TO IT’S EDGE. LOOK IN CYLINDER’ SKETCH;
#P connect 11 0 7 0;
#P connect 11 1 8 0;
#P connect 11 0 1 0;
#P connect 7 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 11 2 9 0;
#P connect 12 0 10 0;
#P connect 10 0 11 0;
#P connect 3 1 5 0;
#P connect 11 1 1 1;
#P connect 8 0 1 1;
#P connect 1 1 2 1;
#P connect 2 1 3 1;
#P connect 3 2 6 0;
#P connect 11 2 1 2;
#P connect 9 0 1 2;
#P connect 1 2 2 2;
#P connect 2 2 3 2;
#P pop;
#P newobj 557 77 89 9109513 p JOINT_COORDS;
#P comment 247 171 36 9109513 CHILD;
#P newex 520 142 90 9109513 pak position 0. 0. 0.;
#N vpatcher 1181 529 1411 710;
#P inlet 76 61 15 0;
#P inlet 55 61 15 0;
#P inlet 36 61 15 0;
#P window setfont "Sans Serif" 9.;
#P comment 131 40 63 9109513 XYZ JOINT;
#P comment 24 40 74 9109513 XYZ PARENT;
#P outlet 108 135 15 0;
#P outlet 81 135 15 0;
#P outlet 53 135 15 0;
#P inlet 171 60 15 0;
#P inlet 150 60 15 0;
#P inlet 131 60 15 0;
#P newex 134 99 19 9109513 t b;
#P newex 156 99 27 9109513 + 0.;
#P newex 79 99 19 9109513 t b;
#P newex 101 99 27 9109513 + 0.;
#P newex 24 99 19 9109513 t b;
#P newex 46 99 27 9109513 + 0.;
#P connect 6 0 1 0;
#P connect 14 0 0 0;
#P connect 1 0 0 0;
#P connect 0 0 9 0;
#P connect 6 0 0 1;
#P connect 7 0 3 0;
#P connect 2 0 10 0;
#P connect 15 0 2 0;
#P connect 3 0 2 0;
#P connect 4 0 11 0;
#P connect 7 0 2 1;
#P connect 8 0 5 0;
#P connect 16 0 4 0;
#P connect 5 0 4 0;
#P connect 8 0 4 1;
#P pop;
#P newobj 520 118 108 9109513 p XYZ_PARENT+JOINT;
#N vpatcher 137 531 568 733;
#P window setfont "Sans Serif" 9.;
#P newex 89 42 35 9109513 r P_Az;
#P newex 48 42 37 9109513 r P_Ay;
#P newex 6 42 36 9109513 r P_Ax;
#P inlet 244 41 15 0;
#P inlet 226 41 15 0;
#P inlet 208 41 15 0;
#P newex 293 70 27 9109513 f;
#P newex 262 70 27 9109513 f;
#P newex 230 70 27 9109513 f;
#P newex 358 41 43 9109513 r CH_Az;
#P newex 310 41 45 9109513 r CH_Ay;
#P newex 263 41 44 9109513 r CH_Ax;
#P comment 56 23 103 9109513 ROTATIONS PARENT;
#P inlet 166 43 15 0;
#P inlet 148 43 15 0;
#P inlet 129 43 15 0;
#P newex 156 139 94 9109513 pak rotatexyz 0. 0. 0.;
#P outlet 156 164 15 0;
#P newex 245 109 19 9109513 t b;
#P newex 267 109 27 9109513 + 0.;
#P newex 190 109 19 9109513 t b;
#P newex 212 109 27 9109513 + 0.;
#P newex 135 109 19 9109513 t b;
#P newex 157 109 27 9109513 + 0.;
#P comment 231 23 79 9109513 ROTATE CHILD;
#P connect 16 0 2 0;
#P connect 8 0 7 0;
#P connect 22 0 1 0;
#P lcolor 7;
#P fasten 9 0 1 0 134 105 162 105;
#P lcolor 7;
#P connect 2 0 1 0;
#P connect 16 0 1 1;
#P connect 1 0 8 1;
#P connect 17 0 4 0;
#P connect 23 0 3 0;
#P lcolor 7;
#P fasten 10 0 3 0 153 100 217 100;
#P lcolor 7;
#P connect 4 0 3 0;
#P connect 3 0 8 2;
#P connect 17 0 3 1;
#P connect 13 0 16 0;
#P connect 19 0 16 0;
#P connect 5 0 8 3;
#P connect 18 0 6 0;
#P connect 20 0 17 0;
#P connect 14 0 17 0;
#P connect 24 0 5 0;
#P lcolor 7;
#P fasten 11 0 5 0 171 97 272 97;
#P lcolor 7;
#P connect 6 0 5 0;
#P connect 18 0 5 1;
#P connect 21 0 18 0;
#P connect 15 0 18 0;
#P pop 1;
#P newobj 354 127 103 9109513 p rot_PARENT+CHILD;
#P comment 150 171 44 9109513 PARENT;
#P newex 179 127 90 9109513 pak position 0. 0. 0.;
#N vpatcher 35 571 332 774;
#P window setfont "Sans Serif" 9.;
#P newex 100 30 35 9109513 r P_Az;
#P newex 59 30 37 9109513 r P_Ay;
#P newex 17 30 36 9109513 r P_Ax;
#P inlet 189 30 15 0;
#P inlet 167 30 15 0;
#P inlet 143 30 15 0;
#P newex 201 158 52 9109513 s COS_AZ;
#P newex 201 135 48 9109513 s SIN_AZ;
#P newex 142 158 53 9109513 s COS_AY;
#P newex 142 135 49 9109513 s SIN_AY;
#P newex 82 158 51 9109513 s COS_AX;
#P newex 82 135 44 9109513 s SIN_AX;
#P newex 225 105 23 9109513 cos;
#P newex 201 105 20 9109513 sin;
#P newex 166 105 23 9109513 cos;
#P newex 142 105 20 9109513 sin;
#P newex 106 105 23 9109513 cos;
#P newex 82 105 20 9109513 sin;
#N vpatcher 15 55 255 186;
#P outlet 146 85 15 0;
#P inlet 146 41 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 146 60 52 9109513 * 0.017453;
#P outlet 90 85 15 0;
#P inlet 90 41 15 0;
#P newex 90 60 52 9109513 * 0.017453;
#P outlet 33 85 15 0;
#P inlet 33 41 15 0;
#P newex 33 60 52 9109513 * 0.017453;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P connect 7 0 6 0;
#P connect 6 0 8 0;
#P pop;
#P newobj 130 71 54 9109513 p grad–rads;
#P outlet 29 102 15 0;
#P newex 29 71 94 9109513 pak rotatexyz 0. 0. 0.;
#P connect 0 0 1 0;
#P connect 15 0 0 1;
#P connect 18 0 0 1;
#P connect 2 0 3 0;
#P connect 3 0 9 0;
#P connect 4 0 10 0;
#P connect 16 0 0 2;
#P connect 19 0 0 2;
#P connect 2 0 4 0;
#P connect 17 0 0 3;
#P connect 20 0 0 3;
#P connect 18 0 2 0;
#P connect 15 0 2 0;
#P connect 2 1 5 0;
#P connect 5 0 11 0;
#P connect 6 0 12 0;
#P connect 19 0 2 1;
#P connect 16 0 2 1;
#P connect 2 1 6 0;
#P connect 20 0 2 2;
#P connect 17 0 2 2;
#P connect 2 2 7 0;
#P connect 7 0 13 0;
#P connect 8 0 14 0;
#P connect 2 2 8 0;
#P pop 1;
#P newobj 277 127 69 9109513 p rot_PARENT;
#P comment 144 24 107 9109513 TRANSLATE PARENT;
#P message 322 52 14 9109513 0;
#P message 306 52 14 9109513 0;
#P message 290 52 14 9109513 0;
#P message 361 52 14 9109513 0;
#P flonum 343 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 306 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 269 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 290 24 88 9109513 ROTATE PARENT;
#P message 455 52 14 9109513 0;
#P message 438 52 14 9109513 0;
#P message 421 52 14 9109513 0;
#P comment 414 24 76 9109513 ROTATE CHILD;
#P message 488 52 14 9109513 0;
#P flonum 476 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 438 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 401 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 240 52 14 9109513 0;
#P flonum 220 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 183 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 146 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 96 25 45 9109513 loadbang;
#P message 18 171 97 9109513 size 320 240 , pos 5 5;
#P message 26 190 97 9109513 size 640 480 , pos 5 5;
#P newex 18 211 110 9109513 jit.window end @border 0;
#P newex 130 211 91 9109513 bgcolor 255 150 100;
#N vpatcher 51 461 582 636;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P message 272 58 133 9109513 reset , moveto 0 0 0.8 , glcolor 1 0.4 0 , cylinder 0.2 0.2 0.8;
#P toggle 154 63 15 0;
#P window linecount 1;
#P message 171 63 40 9109513 axes $1;
#P window linecount 2;
#P newex 260 104 240 9109513 jit.gl.sketch end @depth_enable 1 @lighting_enable 1 @smooth_shading 1 @scale 1. 1. 1. @color 0.5 0.9 0.9;
#P window linecount 1;
#P message 55 60 76 9109513 cube 0.5 1.2 0.3;
#P window linecount 2;
#P newex 24 104 230 9109513 jit.gl.sketch end @depth_enable 1 @lighting_enable 1 @smooth_shading 1 @scale 1. 1. 1. @color 1. 0.9 0.;
#P inlet 260 26 15 0;
#P inlet 24 26 15 0;
#P window linecount 1;
#P newex 55 26 44 9109513 loadbang;
#P fasten 6 0 3 0 176 95 29 95;
#P connect 4 0 3 0;
#P connect 1 0 3 0;
#P connect 0 0 4 0;
#P fasten 0 0 7 0 60 52 159 52;
#P connect 7 0 6 0;
#P fasten 6 0 5 0 176 86 265 86;
#P connect 8 0 5 0;
#P connect 2 0 5 0;
#P fasten 0 0 8 0 60 52 277 52;
#P pop;
#P newobj 198 170 46 9109513 p objects;
#N vpatcher 1134 587 1409 780;
#P window setfont "Sans Serif" 9.;
#P comment 110 33 33 9109513 fromZ;
#P comment 63 33 33 9109513 fromY;
#P message 112 57 38 9109513 0. 0. 5.;
#P message 56 57 54 9109513 0.0001 3. 0.;
#P message 17 57 34 9109513 3. 0. 0.;
#P newex 158 31 44 9109513 loadbang;
#P newex 138 81 70 9109513 unpack 0. 0. 0.;
#P newex 16 81 70 9109513 unpack 0. 0. 0.;
#P flonum 215 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 177 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 138 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 93 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 55 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 16 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 120 123 83 9109513 pak lookat 0. 0. 0.;
#P newex 16 123 89 9109513 pak camera 0. 0. 0.;
#P outlet 78 151 15 0;
#P comment 17 33 33 9109513 fromX;
#P fasten 14 0 10 0 61 77 21 77;
#P fasten 13 0 10 0 22 77 21 77;
#P fasten 15 0 10 0 117 77 21 77;
#P connect 10 0 4 0;
#P connect 4 0 2 1;
#P connect 10 1 5 0;
#P connect 5 0 2 2;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P connect 10 2 6 0;
#P connect 6 0 2 3;
#P connect 12 0 15 0;
#P connect 12 0 11 0;
#P connect 11 0 7 0;
#P connect 7 0 3 1;
#P connect 8 0 3 2;
#P connect 11 1 8 0;
#P connect 9 0 3 3;
#P connect 11 2 9 0;
#P pop;
#P newobj 29 100 68 9109513 p render_setts;
#P newex 19 76 44 9109513 t b erase;
#P newex 19 123 71 9109513 jit.gl.render end;
#P toggle 19 32 15 0;
#P newex 19 52 44 9109513 metro 40;
#P window setfont "Sans Serif" 18.;
#P comment 478 171 17 9109522 1;
#P fasten 11 0 10 0 101 164 23 164;
#P connect 10 0 8 0;
#P connect 9 0 8 0;
#P connect 2 0 1 0;
#P connect 1 0 4 0;
#P connect 5 0 3 0;
#P fasten 4 1 3 0 58 97 24 97;
#P connect 4 0 3 0;
#P fasten 15 0 12 0 245 72 151 72;
#P fasten 11 0 42 0 101 48 178 48;
#P fasten 15 0 13 0 245 72 188 72;
#P connect 42 0 13 0;
#P fasten 34 0 6 0 184 159 203 159;
#P fasten 33 0 6 0 282 159 203 159;
#P connect 12 0 34 1;
#P fasten 15 0 14 0 245 72 225 72;
#P connect 13 0 34 2;
#P fasten 36 0 6 1 359 165 239 165;
#P fasten 38 0 6 1 525 165 239 165;
#P connect 14 0 34 3;
#P fasten 28 0 25 0 366 74 274 74;
#P connect 29 0 25 0;
#P connect 25 0 33 0;
#P fasten 28 0 26 0 366 74 311 74;
#P connect 30 0 26 0;
#P connect 26 0 33 1;
#P connect 27 0 33 2;
#P fasten 28 0 27 0 366 74 348 74;
#P connect 31 0 27 0;
#P connect 25 0 36 0;
#P fasten 11 0 28 0 101 48 366 48;
#P connect 26 0 36 1;
#P connect 27 0 36 2;
#P fasten 19 0 16 0 493 75 406 75;
#P connect 21 0 16 0;
#P connect 16 0 36 3;
#P connect 17 0 36 4;
#P fasten 19 0 17 0 493 75 443 75;
#P connect 22 0 17 0;
#P connect 18 0 36 5;
#P fasten 19 0 18 0 493 75 481 75;
#P connect 23 0 18 0;
#P connect 43 0 41 0;
#P fasten 11 0 19 0 101 48 493 48;
#P connect 44 0 41 1;
#P fasten 12 0 37 0 151 112 525 112;
#P lcolor 6;
#P connect 45 0 41 2;
#P fasten 13 0 37 1 188 109 544 109;
#P lcolor 6;
#P connect 46 0 41 3;
#P connect 37 0 38 1;
#P fasten 14 0 37 2 225 106 563 106;
#P lcolor 6;
#P connect 47 0 41 4;
#P connect 37 1 38 2;
#P connect 40 0 37 3;
#P connect 48 0 41 5;
#P connect 40 1 37 4;
#P connect 37 2 38 3;
#P connect 40 2 37 5;
#P pop;


March 28, 2008 | 3:14 pm

do you know 3dmatrix object

by jash?

in jash objects collection

sorry if it is banal hint

cheers

On Mar 28, 2008, at 1:13 PM, Alex wrote:

>
> here is the same thing:
> max v2;
> #N vpatcher 473 42 1174 353;
> #P origin 0 3;
> #P window setfont "Sans Serif" 18.;
> #P comment 312 211 117 9109522 COMMENTS;
> #P window setfont "Sans Serif" 9.;
> #N vpatcher 419 573 920 788;
> #P window setfont "Sans Serif" 12.;
> #P window linecount 2;
> #P comment 3 101 463 9109516 Example 4: child rotation Az + parent
> rotations Ax Ay Az. /// child’ orientation changes , after parent
> rotates around X axis and Y axiz;
> #P comment 3 138 463 9109516 Example 5: child rotation Az Ay +
> parent rotations Ax Ay Az. /// child’ orientation changes , after
> parent rotates around X axiz and Y axis;
> #P comment 3 64 463 9109516 Example 3: child rotation Ay + parent
> rotations Ax Ay Az. /// child’ orientation changes , after parent
> rotates around Y axiz;
> #P window linecount 1;
> #P comment 3 44 441 9109516 Example 2: child rotation Ax + parent
> rotations Ax Ay Az. /// child stays orientated;
> #P comment 3 24 344 9109516 Example 1: parent rotations Ax Ay
> Az. /// child stays orientated;
> #P pop 1;
> #P newobj 339 240 60 9109513 p comments;
> #P window setfont "Sans Serif" 18.;
> #P comment 372 171 104 9109522 EXAMPLES:;
> #P comment 590 169 45 9109522 zero;
> #P comment 559 171 17 9109522 5;
> #P comment 540 171 17 9109522 4;
> #P comment 520 171 17 9109522 3;
> #P comment 499 171 17 9109522 2;
> #P button 599 200 30 0;
> #P button 559 199 15 0;
> #P button 540 199 15 0;
> #P button 521 199 15 0;
> #P button 502 199 15 0;
> #P button 483 199 15 0;
> #P window setfont "Sans Serif" 9.;
> #P message 173 52 16 9109513 -1;
> #N vpatcher 654 370 1137 691;
> #P window setfont "Sans Serif" 9.;
> #P newex 195 236 54 9109513 delay 1000;
> #P comment 383 22 29 9109513 zero;
> #P inlet 289 41 15 0;
> #P comment 271 23 54 9109513 exampe 5;
> #P inlet 230 41 15 0;
> #P comment 213 23 54 9109513 exampe 4;
> #P inlet 167 41 15 0;
> #P comment 150 23 54 9109513 exampe 3;
> #P inlet 103 41 15 0;
> #P comment 94 23 54 9109513 exampe 2;
> #P message 346 81 55 9109513 0. , 60 2000;
> #P newex 346 102 40 9109513 line 0.;
> #P newex 300 80 41 9109513 r lineto0;
> #P message 289 61 55 9109513 0. , 60 2000;
> #P newex 289 106 40 9109513 line 0.;
> #P newex 178 79 41 9109513 r lineto0;
> #P message 167 61 61 9109513 0. , -90. 2000;
> #P newex 167 105 40 9109513 line 0.;
> #P message 405 68 14 9109513 0;
> #P inlet 389 39 15 0;
> #P button 425 68 15 0;
> #P newex 405 91 43 9109513 s lineto0;
> #P newex 115 79 41 9109513 r lineto0;
> #P message 103 61 61 9109513 0. , -90. 2000;
> #P newex 103 106 40 9109513 line 0.;
> #P newex 241 80 41 9109513 r lineto0;
> #P newex 15 198 41 9109513 r lineto0;
> #P message 230 61 55 9109513 0. , 60 2000;
> #P newex 230 106 40 9109513 line 0.;
> #P inlet 15 23 15 0;
> #P message 110 189 55 9109513 0. , 90 2000;
> #P newex 110 210 40 9109513 line 0.;
> #P message 61 166 60 9109513 0. , 120 2000;
> #P newex 61 187 40 9109513 line 0.;
> #P message 15 144 55 9109513 0. , 45 2000;
> #P newex 15 165 40 9109513 line 0.;
> #P comment 203 213 79 9109513 ROTATE CHILD;
> #P comment 78 287 86 9109513 ROTATE PARENT;
> #P newex 144 263 37 9109513 s P_Az;
> #P newex 103 263 39 9109513 s P_Ay;
> #P newex 61 263 38 9109513 s P_Ax;
> #P newex 267 188 45 9109513 s CH_Az;
> #P newex 219 188 47 9109513 s CH_Ay;
> #P newex 172 188 46 9109513 s CH_Ax;
> #P flonum 263 164 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 224 164 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 185 164 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 144 239 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 105 239 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 66 239 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P comment 34 23 54 9109513 exampe 1;
> #P fasten 39 1 16 0 381 141 20 141;
> #P fasten 33 1 16 0 202 141 20 141;
> #P fasten 26 1 16 0 138 141 20 141;
> #P fasten 22 1 16 0 265 141 20 141;
> #P connect 21 0 16 0;
> #P connect 24 0 15 0;
> #P connect 16 0 15 0;
> #P connect 15 1 18 0;
> #P connect 24 0 17 0;
> #P connect 18 0 17 0;
> #P connect 1 0 10 0;
> #P connect 15 0 1 0;
> #P connect 42 0 27 0;
> #P connect 27 0 26 0;
> #P connect 28 0 26 0;
> #P connect 2 0 11 0;
> #P connect 17 0 2 0;
> #P connect 17 1 20 0;
> #P connect 24 0 19 0;
> #P connect 20 0 19 0;
> #P connect 19 0 3 0;
> #P connect 3 0 12 0;
> #P connect 44 0 34 0;
> #P connect 35 0 33 0;
> #P connect 34 0 33 0;
> #P connect 4 0 7 0;
> #P connect 26 0 4 0;
> #P connect 19 1 50 0;
> #P connect 5 0 8 0;
> #P connect 39 0 5 0;
> #P connect 33 0 5 0;
> #P connect 46 0 23 0;
> #P connect 25 0 22 0;
> #P connect 23 0 22 0;
> #P connect 36 0 6 0;
> #P connect 22 0 6 0;
> #P connect 6 0 9 0;
> #P connect 48 0 37 0;
> #P connect 38 0 36 0;
> #P connect 37 0 36 0;
> #P connect 36 1 40 0;
> #P connect 38 0 39 0;
> #P connect 40 0 39 0;
> #P connect 30 0 32 0;
> #P connect 31 0 32 0;
> #P connect 32 0 29 0;
> #P fasten 50 0 30 0 200 261 455 261 455 55 430 55;
> #P pop 1;
> #P newobj 484 217 109 9109513 p illustration;
> #P objectname illustration;
> #N vpatcher 1022 436 1269 744;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #N vpatcher 370 83 1255 359;
> #P window setfont "Sans Serif" 18.;
> #P window linecount 1;
> #P comment 25 47 557 9109522 XYZ – coordinates , Ax Ay Az – angles
> of rotation around X Y Z axes;
> #P comment 104 74 60 9109522 matrix;
> #P comment 24 74 61 9109522 vector;
> #P window linecount 3;
> #P comment 790 101 57 9109522 XnewYnew Znew;
> #P window linecount 1;
> #P comment 741 119 42 9109522 >>>;
> #P comment 575 119 21 9109522 *;
> #P window linecount 6;
> #P comment 601 101 131 9109522 CosAz -SinAz 0 ____________ SinAz
> CosAz 0 ____________ 0 0 1 ____________;
> #P window linecount 3;
> #P comment 537 101 34 9109522 X2 Y2 Z2;
> #P window linecount 1;
> #P comment 488 119 42 9109522 >>>;
> #P comment 321 121 21 9109522 *;
> #P window linecount 6;
> #P comment 347 101 131 9109522 CosAy 0 SinAy ____________ 0 1 0
> ____________-SinAy 0 CosAy ____________;
> #P window linecount 3;
> #P comment 283 101 34 9109522 X1 Y1 Z1;
> #P window linecount 1;
> #P comment 234 121 42 9109522 >>>;
> #P comment 70 121 21 9109522 *;
> #P window linecount 6;
> #P comment 96 101 133 9109522 1 0 0 ____________ CosAx -SinAx 0
> ____________ SinAx CosAx ____________;
> #P window linecount 3;
> #P comment 30 101 35 9109522 X0 Y0 Z0;
> #P pop;
> #P newobj 26 32 75 9109513 p EXPRESSION;
> #P newex 108 31 45 9109513 loadbang;
> #P window linecount 0;
> #P newex 108 75 71 9109513 unpack 0. 0. 0.;
> #P message 108 54 37 9109513 0.3 1 0;
> #P flonum 106 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 65 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 23 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P outlet 135 225 15 0;
> #P outlet 112 226 15 0;
> #P outlet 89 226 15 0;
> #N vpatcher 647 98 1105 284;
> #P window setfont "Sans Serif" 9.;
> #P newex 14 117 19 9109513 t b;
> #P newex 185 116 19 9109513 t b;
> #P outlet 386 117 15 0;
> #P outlet 252 141 15 0;
> #P outlet 81 142 15 0;
> #P inlet 233 30 15 0;
> #P inlet 204 30 15 0;
> #P inlet 174 30 15 0;
> #P newex 81 117 94 9109513 expr $f1*$f2-$f3*$f4;
> #P newex 37 117 19 9109513 t b;
> #P newex 59 117 19 9109513 t b;
> #P comment 59 141 20 9109513 X3;
> #P newex 68 40 44 9109513 r SIN_AZ;
> #P newex 309 39 50 9109513 r COS_AZ;
> #P newex 252 116 94 9109513 expr $f1*$f2+$f3*$f4;
> #P newex 208 116 19 9109513 t b;
> #P newex 230 116 19 9109513 t b;
> #P comment 230 140 20 9109513 Y3;
> #P comment 361 117 20 9109513 Z3;
> #P connect 12 0 18 0;
> #P connect 5 0 9 0;
> #P connect 6 0 8 0;
> #P connect 11 0 10 0;
> #P connect 18 0 10 0;
> #P connect 9 0 10 0;
> #P connect 8 0 10 0;
> #P connect 10 0 14 0;
> #P connect 5 0 10 1;
> #P connect 12 0 10 2;
> #P connect 6 0 10 3;
> #P connect 5 0 17 0;
> #P connect 12 0 3 0;
> #P connect 6 0 2 0;
> #P connect 11 0 4 0;
> #P connect 17 0 4 0;
> #P connect 3 0 4 0;
> #P connect 2 0 4 0;
> #P connect 4 0 15 0;
> #P connect 6 0 4 1;
> #P connect 12 0 4 2;
> #P connect 5 0 4 3;
> #P connect 13 0 16 0;
> #P pop;
> #P newobj 89 196 62 9109513 p AFTER_AZ;
> #N vpatcher 731 74 1179 265;
> #P window setfont "Sans Serif" 9.;
> #P newex 7 110 19 9109513 t b;
> #P newex 254 112 19 9109513 t b;
> #P outlet 321 140 15 0;
> #P outlet 198 119 15 0;
> #P outlet 74 134 15 0;
> #P inlet 226 37 15 0;
> #P inlet 197 37 15 0;
> #P inlet 167 37 15 0;
> #P newex 74 110 94 9109513 expr $f1*$f2+$f3*$f4;
> #P newex 30 110 19 9109513 t b;
> #P newex 52 110 19 9109513 t b;
> #P comment 52 134 20 9109513 X2;
> #P newex 61 33 44 9109513 r SIN_AY;
> #P newex 304 37 51 9109513 r COS_AY;
> #P newex 321 112 100 9109513 expr -$f1*$f2+$f3*$f4;
> #P newex 277 112 19 9109513 t b;
> #P newex 299 112 19 9109513 t b;
> #P comment 299 136 20 9109513 Z2;
> #P comment 174 112 20 9109513 Y2;
> #P connect 13 0 18 0;
> #P connect 5 0 9 0;
> #P connect 6 0 8 0;
> #P connect 11 0 10 0;
> #P connect 18 0 10 0;
> #P connect 9 0 10 0;
> #P connect 8 0 10 0;
> #P connect 10 0 14 0;
> #P connect 5 0 10 1;
> #P connect 13 0 10 2;
> #P connect 6 0 10 3;
> #P connect 12 0 15 0;
> #P connect 13 0 17 0;
> #P connect 6 0 3 0;
> #P connect 5 0 2 0;
> #P connect 17 0 4 0;
> #P connect 11 0 4 0;
> #P connect 3 0 4 0;
> #P connect 2 0 4 0;
> #P connect 4 0 16 0;
> #P connect 6 0 4 1;
> #P connect 13 0 4 2;
> #P connect 5 0 4 3;
> #P pop;
> #P newobj 89 168 63 9109513 p AFTER_AY;
> #N vpatcher 806 52 1265 245;
> #P window setfont "Sans Serif" 9.;
> #P newex 269 117 19 9109513 t b;
> #P newex 84 118 19 9109513 t b;
> #P outlet 341 141 15 0;
> #P outlet 153 146 15 0;
> #P outlet 61 119 15 0;
> #P inlet 240 43 15 0;
> #P inlet 209 43 15 0;
> #P inlet 183 43 15 0;
> #P newex 75 42 49 9109513 r COS_AX;
> #P newex 323 42 44 9109513 r SIN_AX;
> #P comment 318 141 20 9109513 Z1;
> #P newex 291 117 19 9109513 t b;
> #P newex 315 117 19 9109513 t b;
> #P newex 340 117 94 9109513 expr $f1*$f2+$f3*$f4;
> #P comment 37 120 20 9109513 X1;
> #P comment 129 142 20 9109513 Y1;
> #P newex 129 118 19 9109513 t b;
> #P newex 107 118 19 9109513 t b;
> #P newex 151 118 94 9109513 expr $f1*$f2-$f3*$f4;
> #P connect 11 0 14 0;
> #P connect 13 0 17 0;
> #P connect 10 0 1 0;
> #P connect 9 0 2 0;
> #P connect 12 0 0 0;
> #P connect 17 0 0 0;
> #P connect 1 0 0 0;
> #P connect 2 0 0 0;
> #P connect 0 0 15 0;
> #P connect 10 0 0 1;
> #P connect 13 0 0 2;
> #P connect 9 0 0 3;
> #P connect 13 0 18 0;
> #P connect 10 0 7 0;
> #P connect 9 0 6 0;
> #P connect 18 0 5 0;
> #P connect 12 0 5 0;
> #P connect 7 0 5 0;
> #P connect 6 0 5 0;
> #P connect 5 0 16 0;
> #P connect 9 0 5 1;
> #P connect 13 0 5 2;
> #P connect 10 0 5 3;
> #P pop;
> #P newobj 89 142 61 9109513 p AFTER_AX;
> #P comment 14 250 204 9109513 NOTE! CENTER OF THE CYLINDER MOVED TO
> IT’S EDGE. LOOK IN CYLINDER’ SKETCH;
> #P connect 11 0 7 0;
> #P connect 11 1 8 0;
> #P connect 11 0 1 0;
> #P connect 7 0 1 0;
> #P connect 1 0 2 0;
> #P connect 2 0 3 0;
> #P connect 3 0 4 0;
> #P connect 11 2 9 0;
> #P connect 12 0 10 0;
> #P connect 10 0 11 0;
> #P connect 3 1 5 0;
> #P connect 11 1 1 1;
> #P connect 8 0 1 1;
> #P connect 1 1 2 1;
> #P connect 2 1 3 1;
> #P connect 3 2 6 0;
> #P connect 11 2 1 2;
> #P connect 9 0 1 2;
> #P connect 1 2 2 2;
> #P connect 2 2 3 2;
> #P pop;
> #P newobj 557 77 89 9109513 p JOINT_COORDS;
> #P comment 247 171 36 9109513 CHILD;
> #P newex 520 142 90 9109513 pak position 0. 0. 0.;
> #N vpatcher 1181 529 1411 710;
> #P inlet 76 61 15 0;
> #P inlet 55 61 15 0;
> #P inlet 36 61 15 0;
> #P window setfont "Sans Serif" 9.;
> #P comment 131 40 63 9109513 XYZ JOINT;
> #P comment 24 40 74 9109513 XYZ PARENT;
> #P outlet 108 135 15 0;
> #P outlet 81 135 15 0;
> #P outlet 53 135 15 0;
> #P inlet 171 60 15 0;
> #P inlet 150 60 15 0;
> #P inlet 131 60 15 0;
> #P newex 134 99 19 9109513 t b;
> #P newex 156 99 27 9109513 + 0.;
> #P newex 79 99 19 9109513 t b;
> #P newex 101 99 27 9109513 + 0.;
> #P newex 24 99 19 9109513 t b;
> #P newex 46 99 27 9109513 + 0.;
> #P connect 6 0 1 0;
> #P connect 14 0 0 0;
> #P connect 1 0 0 0;
> #P connect 0 0 9 0;
> #P connect 6 0 0 1;
> #P connect 7 0 3 0;
> #P connect 2 0 10 0;
> #P connect 15 0 2 0;
> #P connect 3 0 2 0;
> #P connect 4 0 11 0;
> #P connect 7 0 2 1;
> #P connect 8 0 5 0;
> #P connect 16 0 4 0;
> #P connect 5 0 4 0;
> #P connect 8 0 4 1;
> #P pop;
> #P newobj 520 118 108 9109513 p XYZ_PARENT+JOINT;
> #N vpatcher 137 531 568 733;
> #P window setfont "Sans Serif" 9.;
> #P newex 89 42 35 9109513 r P_Az;
> #P newex 48 42 37 9109513 r P_Ay;
> #P newex 6 42 36 9109513 r P_Ax;
> #P inlet 244 41 15 0;
> #P inlet 226 41 15 0;
> #P inlet 208 41 15 0;
> #P newex 293 70 27 9109513 f;
> #P newex 262 70 27 9109513 f;
> #P newex 230 70 27 9109513 f;
> #P newex 358 41 43 9109513 r CH_Az;
> #P newex 310 41 45 9109513 r CH_Ay;
> #P newex 263 41 44 9109513 r CH_Ax;
> #P comment 56 23 103 9109513 ROTATIONS PARENT;
> #P inlet 166 43 15 0;
> #P inlet 148 43 15 0;
> #P inlet 129 43 15 0;
> #P newex 156 139 94 9109513 pak rotatexyz 0. 0. 0.;
> #P outlet 156 164 15 0;
> #P newex 245 109 19 9109513 t b;
> #P newex 267 109 27 9109513 + 0.;
> #P newex 190 109 19 9109513 t b;
> #P newex 212 109 27 9109513 + 0.;
> #P newex 135 109 19 9109513 t b;
> #P newex 157 109 27 9109513 + 0.;
> #P comment 231 23 79 9109513 ROTATE CHILD;
> #P connect 16 0 2 0;
> #P connect 8 0 7 0;
> #P connect 22 0 1 0;
> #P lcolor 7;
> #P fasten 9 0 1 0 134 105 162 105;
> #P lcolor 7;
> #P connect 2 0 1 0;
> #P connect 16 0 1 1;
> #P connect 1 0 8 1;
> #P connect 17 0 4 0;
> #P connect 23 0 3 0;
> #P lcolor 7;
> #P fasten 10 0 3 0 153 100 217 100;
> #P lcolor 7;
> #P connect 4 0 3 0;
> #P connect 3 0 8 2;
> #P connect 17 0 3 1;
> #P connect 13 0 16 0;
> #P connect 19 0 16 0;
> #P connect 5 0 8 3;
> #P connect 18 0 6 0;
> #P connect 20 0 17 0;
> #P connect 14 0 17 0;
> #P connect 24 0 5 0;
> #P lcolor 7;
> #P fasten 11 0 5 0 171 97 272 97;
> #P lcolor 7;
> #P connect 6 0 5 0;
> #P connect 18 0 5 1;
> #P connect 21 0 18 0;
> #P connect 15 0 18 0;
> #P pop 1;
> #P newobj 354 127 103 9109513 p rot_PARENT+CHILD;
> #P comment 150 171 44 9109513 PARENT;
> #P newex 179 127 90 9109513 pak position 0. 0. 0.;
> #N vpatcher 35 571 332 774;
> #P window setfont "Sans Serif" 9.;
> #P newex 100 30 35 9109513 r P_Az;
> #P newex 59 30 37 9109513 r P_Ay;
> #P newex 17 30 36 9109513 r P_Ax;
> #P inlet 189 30 15 0;
> #P inlet 167 30 15 0;
> #P inlet 143 30 15 0;
> #P newex 201 158 52 9109513 s COS_AZ;
> #P newex 201 135 48 9109513 s SIN_AZ;
> #P newex 142 158 53 9109513 s COS_AY;
> #P newex 142 135 49 9109513 s SIN_AY;
> #P newex 82 158 51 9109513 s COS_AX;
> #P newex 82 135 44 9109513 s SIN_AX;
> #P newex 225 105 23 9109513 cos;
> #P newex 201 105 20 9109513 sin;
> #P newex 166 105 23 9109513 cos;
> #P newex 142 105 20 9109513 sin;
> #P newex 106 105 23 9109513 cos;
> #P newex 82 105 20 9109513 sin;
> #N vpatcher 15 55 255 186;
> #P outlet 146 85 15 0;
> #P inlet 146 41 15 0;
> #P window setfont "Sans Serif" 9.;
> #P newex 146 60 52 9109513 * 0.017453;
> #P outlet 90 85 15 0;
> #P inlet 90 41 15 0;
> #P newex 90 60 52 9109513 * 0.017453;
> #P outlet 33 85 15 0;
> #P inlet 33 41 15 0;
> #P newex 33 60 52 9109513 * 0.017453;
> #P connect 1 0 0 0;
> #P connect 0 0 2 0;
> #P connect 4 0 3 0;
> #P connect 3 0 5 0;
> #P connect 7 0 6 0;
> #P connect 6 0 8 0;
> #P pop;
> #P newobj 130 71 54 9109513 p grad–rads;
> #P outlet 29 102 15 0;
> #P newex 29 71 94 9109513 pak rotatexyz 0. 0. 0.;
> #P connect 0 0 1 0;
> #P connect 15 0 0 1;
> #P connect 18 0 0 1;
> #P connect 2 0 3 0;
> #P connect 3 0 9 0;
> #P connect 4 0 10 0;
> #P connect 16 0 0 2;
> #P connect 19 0 0 2;
> #P connect 2 0 4 0;
> #P connect 17 0 0 3;
> #P connect 20 0 0 3;
> #P connect 18 0 2 0;
> #P connect 15 0 2 0;
> #P connect 2 1 5 0;
> #P connect 5 0 11 0;
> #P connect 6 0 12 0;
> #P connect 19 0 2 1;
> #P connect 16 0 2 1;
> #P connect 2 1 6 0;
> #P connect 20 0 2 2;
> #P connect 17 0 2 2;
> #P connect 2 2 7 0;
> #P connect 7 0 13 0;
> #P connect 8 0 14 0;
> #P connect 2 2 8 0;
> #P pop 1;
> #P newobj 277 127 69 9109513 p rot_PARENT;
> #P comment 144 24 107 9109513 TRANSLATE PARENT;
> #P message 322 52 14 9109513 0;
> #P message 306 52 14 9109513 0;
> #P message 290 52 14 9109513 0;
> #P message 361 52 14 9109513 0;
> #P flonum 343 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 306 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 269 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P comment 290 24 88 9109513 ROTATE PARENT;
> #P message 455 52 14 9109513 0;
> #P message 438 52 14 9109513 0;
> #P message 421 52 14 9109513 0;
> #P comment 414 24 76 9109513 ROTATE CHILD;
> #P message 488 52 14 9109513 0;
> #P flonum 476 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 438 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 401 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 240 52 14 9109513 0;
> #P flonum 220 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 183 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 146 79 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 96 25 45 9109513 loadbang;
> #P message 18 171 97 9109513 size 320 240 , pos 5 5;
> #P message 26 190 97 9109513 size 640 480 , pos 5 5;
> #P newex 18 211 110 9109513 jit.window end @border 0;
> #P newex 130 211 91 9109513 bgcolor 255 150 100;
> #N vpatcher 51 461 582 636;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 2;
> #P message 272 58 133 9109513 reset , moveto 0 0 0.8 , glcolor 1
> 0.4 0 , cylinder 0.2 0.2 0.8;
> #P toggle 154 63 15 0;
> #P window linecount 1;
> #P message 171 63 40 9109513 axes $1;
> #P window linecount 2;
> #P newex 260 104 240 9109513 jit.gl.sketch end @depth_enable 1
> @lighting_enable 1 @smooth_shading 1 @scale 1. 1. 1. @color 0.5 0.9
> 0.9;
> #P window linecount 1;
> #P message 55 60 76 9109513 cube 0.5 1.2 0.3;
> #P window linecount 2;
> #P newex 24 104 230 9109513 jit.gl.sketch end @depth_enable 1
> @lighting_enable 1 @smooth_shading 1 @scale 1. 1. 1. @color 1. 0.9 0.;
> #P inlet 260 26 15 0;
> #P inlet 24 26 15 0;
> #P window linecount 1;
> #P newex 55 26 44 9109513 loadbang;
> #P fasten 6 0 3 0 176 95 29 95;
> #P connect 4 0 3 0;
> #P connect 1 0 3 0;
> #P connect 0 0 4 0;
> #P fasten 0 0 7 0 60 52 159 52;
> #P connect 7 0 6 0;
> #P fasten 6 0 5 0 176 86 265 86;
> #P connect 8 0 5 0;
> #P connect 2 0 5 0;
> #P fasten 0 0 8 0 60 52 277 52;
> #P pop;
> #P newobj 198 170 46 9109513 p objects;
> #N vpatcher 1134 587 1409 780;
> #P window setfont "Sans Serif" 9.;
> #P comment 110 33 33 9109513 fromZ;
> #P comment 63 33 33 9109513 fromY;
> #P message 112 57 38 9109513 0. 0. 5.;
> #P message 56 57 54 9109513 0.0001 3. 0.;
> #P message 17 57 34 9109513 3. 0. 0.;
> #P newex 158 31 44 9109513 loadbang;
> #P newex 138 81 70 9109513 unpack 0. 0. 0.;
> #P newex 16 81 70 9109513 unpack 0. 0. 0.;
> #P flonum 215 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 177 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 138 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 93 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 55 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 16 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 120 123 83 9109513 pak lookat 0. 0. 0.;
> #P newex 16 123 89 9109513 pak camera 0. 0. 0.;
> #P outlet 78 151 15 0;
> #P comment 17 33 33 9109513 fromX;
> #P fasten 14 0 10 0 61 77 21 77;
> #P fasten 13 0 10 0 22 77 21 77;
> #P fasten 15 0 10 0 117 77 21 77;
> #P connect 10 0 4 0;
> #P connect 4 0 2 1;
> #P connect 10 1 5 0;
> #P connect 5 0 2 2;
> #P connect 3 0 1 0;
> #P connect 2 0 1 0;
> #P connect 10 2 6 0;
> #P connect 6 0 2 3;
> #P connect 12 0 15 0;
> #P connect 12 0 11 0;
> #P connect 11 0 7 0;
> #P connect 7 0 3 1;
> #P connect 8 0 3 2;
> #P connect 11 1 8 0;
> #P connect 9 0 3 3;
> #P connect 11 2 9 0;
> #P pop;
> #P newobj 29 100 68 9109513 p render_setts;
> #P newex 19 76 44 9109513 t b erase;
> #P newex 19 123 71 9109513 jit.gl.render end;
> #P toggle 19 32 15 0;
> #P newex 19 52 44 9109513 metro 40;
> #P window setfont "Sans Serif" 18.;
> #P comment 478 171 17 9109522 1;
> #P fasten 11 0 10 0 101 164 23 164;
> #P connect 10 0 8 0;
> #P connect 9 0 8 0;
> #P connect 2 0 1 0;
> #P connect 1 0 4 0;
> #P connect 5 0 3 0;
> #P fasten 4 1 3 0 58 97 24 97;
> #P connect 4 0 3 0;
> #P fasten 15 0 12 0 245 72 151 72;
> #P fasten 11 0 42 0 101 48 178 48;
> #P fasten 15 0 13 0 245 72 188 72;
> #P connect 42 0 13 0;
> #P fasten 34 0 6 0 184 159 203 159;
> #P fasten 33 0 6 0 282 159 203 159;
> #P connect 12 0 34 1;
> #P fasten 15 0 14 0 245 72 225 72;
> #P connect 13 0 34 2;
> #P fasten 36 0 6 1 359 165 239 165;
> #P fasten 38 0 6 1 525 165 239 165;
> #P connect 14 0 34 3;
> #P fasten 28 0 25 0 366 74 274 74;
> #P connect 29 0 25 0;
> #P connect 25 0 33 0;
> #P fasten 28 0 26 0 366 74 311 74;
> #P connect 30 0 26 0;
> #P connect 26 0 33 1;
> #P connect 27 0 33 2;
> #P fasten 28 0 27 0 366 74 348 74;
> #P connect 31 0 27 0;
> #P connect 25 0 36 0;
> #P fasten 11 0 28 0 101 48 366 48;
> #P connect 26 0 36 1;
> #P connect 27 0 36 2;
> #P fasten 19 0 16 0 493 75 406 75;
> #P connect 21 0 16 0;
> #P connect 16 0 36 3;
> #P connect 17 0 36 4;
> #P fasten 19 0 17 0 493 75 443 75;
> #P connect 22 0 17 0;
> #P connect 18 0 36 5;
> #P fasten 19 0 18 0 493 75 481 75;
> #P connect 23 0 18 0;
> #P connect 43 0 41 0;
> #P fasten 11 0 19 0 101 48 493 48;
> #P connect 44 0 41 1;
> #P fasten 12 0 37 0 151 112 525 112;
> #P lcolor 6;
> #P connect 45 0 41 2;
> #P fasten 13 0 37 1 188 109 544 109;
> #P lcolor 6;
> #P connect 46 0 41 3;
> #P connect 37 0 38 1;
> #P fasten 14 0 37 2 225 106 563 106;
> #P lcolor 6;
> #P connect 47 0 41 4;
> #P connect 37 1 38 2;
> #P connect 40 0 37 3;
> #P connect 48 0 41 5;
> #P connect 40 1 37 4;
> #P connect 37 2 38 3;
> #P connect 40 2 37 5;
> #P pop;
>
> –
> soma!=sema


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