Please, help with Bobo workflow

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

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
thanks in advance
Attached Images
File Type: png bobo.PNG (68.3 KB, 46 views)
  06 June 2013
Thumbs up

big thanks here!
  06 June 2013
You'd have to ask more clearly to get an answer, try to put together all the information we might need to answer without taking wild guesses. This is beneficial for both sides, you get the answer you wanted, not some random guesses (if any at all) and we know what your problem is and how to point you to a solution. To show you what I'm talking about, the guesses now would be:

1. Anything will do, use point and origin, a line, whatever suits your needs. If you mean how Bobo did it in the picture, most probably there are few cylinders, cones and spheres.

2. Well, I have no idea what you are asking about here. Any geometry will do and there are numerous ways how to constraint its motion depending on how you are going to use it.

3. I don't know what tutorial that is, if it's from some subscription training videos, the scripts might be included.
Scripts :: linkedin
  06 June 2013
ok,sorry!here is an image to try explain my problem
Attached Images
File Type: jpg vector.JPG (94.7 KB, 47 views)
  06 June 2013
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?
  06 June 2013
I think I know what you might want, although it has more of an educational aspect to it than practical application

	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.
  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
File Type: jpg 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
Thanks a lot!
  06 June 2013
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.
  07 July 2013
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
  07 July 2013
i replace the geosphere with a cone but i dont know how to cone follow the cylinder aligned.
thanks in advance
Attached Images
File Type: png fix.PNG (55.0 KB, 10 views)
  07 July 2013
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

  07 July 2013
thanks very much i will try it!
  07 July 2013
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
  07 July 2013
Thanks a lot! Swordslayer really apreciated!
Thread Closed share thread

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
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 01:02 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.