# Please, help with Bobo workflow

 Thread Tools Search this Thread Display Modes
06 June 2013
Please, help with Bobo workflow

1.How to draw a vector
2.wich geometry i have to use taht can follow x,y or z axis
3.the script he uses for this tutorial
Attached Images
 bobo.PNG (68.3 KB, 46 views)

 06 June 2013 Andreseloy Expert portfolio Mario Blanco MD Vargas Medical School Caracas, Venezuela big thanks here! share quote
06 June 2013
ok,sorry!here is an image to try explain my problem
Attached Images
 vector.JPG (94.7 KB, 47 views)

 06 June 2013 denisT MAX Doctor   portfolio Denis Trofimov CA, USA Originally Posted by Andreseloy: ok,sorry!here is an image to try explain my problem i'm absolutely sure that your question is very simple but i can't understand it either. do you want to rotate some matrix (coordinate system, node's transform) and keep an axis direction where it is? share quote
 06 June 2013 Swordslayer isKindOf Artist   portfolio Vojtech Cada 3D generalist Czech Republic I think I know what you might want, although it has more of an educational aspect to it than practical application ``````( --objects local cylX = Cylinder radius:5 dir:x_axis wirecolor:red local cylY = Cylinder radius:5 dir:y_axis wirecolor:green local cylZ = Cylinder radius:5 dir:z_axis wirecolor:blue local arrX = Cone name:"X" dir:x_axis pos:(x_axis * 100) wirecolor:red local arrY = Cone name:"Y" dir:y_axis pos:(y_axis * 100) wirecolor:green local arrZ = Cone name:"Z" dir:z_axis pos:(z_axis * 100) wirecolor:blue local spot = Point name:"SpotHelper" size:10 isHidden:true local cylSpot = Cylinder radius:5 target:spot in spot local arrSpot = Cone name:"Spot" --lock flags local POS_X = 1, POS_Y = 2, POS_Z = 3 setTransformLockFlags #(arrX, arrY, arrZ) #{POS_X, POS_Y} --height controllers cylX.height.controller = arrX[#transform][#position][#x_position].controller cylY.height.controller = arrY[#transform][#position][#y_position].controller cylZ.height.controller = arrZ[#transform][#position][#z_position].controller local cylSpotHeight = float_script() cylSpotHeight.addTarget #pos spot[#transform][#position] cylSpotHeight.setExpression "-length pos" cylSpot.height.controller = cylSpotHeight --spot position controller local spotPos = position_script() spotPos.addTarget #x_pos arrX[#transform][#position] spotPos.addTarget #y_pos arrY[#transform][#position] spotPos.addTarget #z_pos arrZ[#transform][#position] spotPos.setExpression "x_pos + y_pos + z_pos" spot.position.controller = spotPos --spot arrow orientation local spotDir = LookAt_Constraint target_axis:2 target_axisFlip:true spotDir.appendTarget cylSpot 100 arrSpot.rotation.controller = spotDir )`````` Rather than macroscripts, you should look at (scripted) controllers, parameter wiring and all that stuff. After executing the piece of code above, move the cones and.. just dissect the script, consult MAXScript reference and try to make something cool __________________ Scripts :: linkedin Last edited by Swordslayer : 07 July 2013 at 07:05 AM. share quote
06 June 2013
hope this image help me to explain...apologize about my english
pd:yes!! your are totally right,i want it for educational purpose(i want ilustrated my kids about this fundamental concept!!!)thanks very much.
Attached Images
 from bobo the matrix tut.JPG (38.3 KB, 28 views)

Last edited by Andreseloy : 06 June 2013 at 06:02 PM.

 06 June 2013 Andreseloy Expert portfolio Mario Blanco MD Vargas Medical School Caracas, Venezuela Thanks a lot! worked! share quote
 06 June 2013 Andreseloy Expert portfolio Mario Blanco MD Vargas Medical School Caracas, Venezuela is there a way to made a rollout where i can input values and show the results? btw:many thanks is a huge help! a excuse for take your time. share quote
 07 July 2013 Andreseloy Expert portfolio Mario Blanco MD Vargas Medical School Caracas, Venezuela thanks Swordslayer . i am learning a lot from your scrip! can you suggest some link/books/guide to specific learn about controller? thanks very much share quote
07 July 2013
i replace the geosphere with a cone but i dont know how to cone follow the cylinder aligned.
Attached Images
 fix.PNG (55.0 KB, 10 views)

 07 July 2013 Mambo4 not a jedi yet   portfolio Logan Bender Game Technical Artist Greater Seattle, USA this is just a hack but: you could save the position of the cone to a temporary variable the set the cone's transform to match the cylinder (which would orient the cone the same as the cylinder.) then reset the cone position to the original position `````` tempPos=cone.pos cone.transform=cylinder.transform cone.pos=tempPos`````` share quote
 07 July 2013 Andreseloy Expert portfolio Mario Blanco MD Vargas Medical School Caracas, Venezuela thanks very much i will try it! share quote
 07 July 2013 Swordslayer isKindOf Artist   portfolio Vojtech Cada 3D generalist Czech Republic Well, in this context that hack could be also shortened to cone.dir = cylinder.dir, but you would need either scripted controller or when construct for it to be interactive. I've edited the post (added LookAt constraint) so that it's now a cone instead of a sphere and it points in the cylinder direction. __________________ Scripts :: linkedin share quote
 07 July 2013 Andreseloy Expert portfolio Mario Blanco MD Vargas Medical School Caracas, Venezuela Thanks a lot! Swordslayer really apreciated! share quote

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off CGSociety Society of Digital Artists www.cgsociety.org Powered by vBulletinCopyright ©2000 - 2006, Jelsoft Enterprises Ltd.