View Full Version : Some problems with reactions (MAX)
IkerCLoN 01-31-2006, 10:28 AM Hi, guys! I'm following Jason Osipa's book 'Stop Staring' to achieve a similar setup like the one he explains in his book. He builds up an interface with 'joystick' manipulators and sliders for driving some morph targets in a head. His setup is done in Maya, and I'm trying to do it with MAX, but I'm having some stupid problems with the 'driving'. I hope you can help me out on this...
As you see in the attached image, there's a joystick manipulator that drives upper lip movements ('up' and 'roll in'). That's four morph targets. OK, the 'problem' comes when Reaction Controller allow only one master per slave, but I need the targets affected by X and Y movements of the point, and that does not seem possible, at least with 'touch and click' method (I'm sure it can be done with script).
Can you give me some hints? If it's not clear, I can upload a mini-video with the movement I want to get...
Thanks!
|
|
If you can hold on Chris is just editing my DVD#4 on this very subject.
I use this joystick manipulator http://www.rgba.org/r3d/maxscripts/JoystickManip01.ms, it allows you to get both x and y values. It works great for me. I have also seen it done with a bezier position controller on the master, that will also allow u to get both x and y values.
You may need to pull in a fix shape for this, ive written a script that'll basically do Michael pose space deform. I.et you model the combination you like to achieve and it makes the fix shape. Plus this is the problem with reactions. Can you use a list_controller and drive the morphs values via an expression.
Ive got the SS book here, he seems to use expressions all over the place:
mel:
brows.translateY = ctrl.brows.translateY/15
Basically your saying, you need the shape to drive four inputs right? well id use the script controller or expression controller. Open up the graph editor and select the morph. Add a script controller. Make a new variable like "test" and assign it as a node to the shape control.
Then use:
e.g. test.pos.z/2
something like this anyway. You can even instance the controller, by:
a = $shape.modifier[#morph].weight1
you could even instance the controller by evaluting something like:
$morphshape.modifiers[1][1].controller = $controlshape.position.controller.z_position.controller
eek
IkerCLoN
02-07-2006, 05:02 PM
Thanks, eek, you're a life saver as always, dude ;) What I've finally done is control 4 targets with a controller ist: X is controlled by 'reaction controller', and Y by an expression. I was messing up my mind with expressions when accidentally I type wrong the line and... it worked! After that, I guessed what was wrong.
Thanks for script too: that's what I was looking for, but I didn't know how to write it (I started to read the whole MAXScript help some days ago).
Oh, by the way, d'you remember I was doing one reel? I got the job! In april I'm working in a spanish animation studio called 'Renderboy Studios'. And it's thanks to you and Mark, who helped me out with some technical stuff ;););)
MOSS, I was using a Joystick Manipulator already ;)
Paul, thanks for your answer.
Aearon
02-07-2006, 09:33 PM
hey guys,
i have a little technique to do this kind of stuff with param wiring.
not sure it works with joystick manipulators because you need your driving object to have a point3 position controller
you basically wire the position (not one of the subcontrols eg. x y and z but the position itself) to the morph target
you can then use the individual axis of the position to set up your formula in the wiring expression. for example something like this
if position.x > 0 then position.y else (1+position.x) * position.y
something like this would be the expression for the upper right corner of the control
makes setup fairly easy and it's more straight forward to script this than expression controllers (especially for anything prior to max 8 where you needed the exprctrlop plugin to script expression controllers
Aearon
02-07-2006, 09:53 PM
ikerclon i actually have a script that may help you out as well, i just made quick video tutorial on how to use it and posted it on my site (the script itself you can find a part of the soulpix script package further down on my site)
i only tested the scripts in 8 though
Thanks, eek, you're a life saver as always, dude ;) What I've finally done is control 4 targets with a controller ist: X is controlled by 'reaction controller', and Y by an expression. I was messing up my mind with expressions when accidentally I type wrong the line and... it worked! After that, I guessed what was wrong.
Thanks for script too: that's what I was looking for, but I didn't know how to write it (I started to read the whole MAXScript help some days ago).
Oh, by the way, d'you remember I was doing one reel? I got the job! In april I'm working in a spanish animation studio called 'Renderboy Studios'. And it's thanks to you and Mark, who helped me out with some technical stuff ;););)
MOSS, I was using a Joystick Manipulator already ;)
Paul, thanks for your answer.
Hey thats brilliant IkerClon,
Very well done!, do you know Luis at keytoon? Anyway glad to help - as always if your stuck just yell. The gang (you know who you are) are always around to lend a hand.
eek
marktsang
02-08-2006, 12:38 AM
Oh, by the way, d'you remember I was doing one reel? I got the job! In april I'm working in a spanish animation studio called 'Renderboy Studios'. And it's thanks to you and Mark, who helped me out with some technical stuff ;););)
no probs
glad to help,
congrats on the job !!
mark
CGTalk Moderation
02-08-2006, 12:38 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.