Home Page › forums › Autodesk/Discreet › Flame and Smoke › align function help…
- This topic has 8 replies, 5 voices, and was last updated 13 years, 1 month ago by Anonymous.
-
AuthorPosts
-
April 23, 2007 at 10:17 am #201598jjwattsParticipant
am trying to workout an expression to align the z rotation with the direction of an objects movement. i’m assuming the align expression is the one to use. something along the lines of align(axis.position, (0,0,1), frame….). any ideas? ta
April 23, 2007 at 5:34 pm #215524ppccParticipantjjwatts wrote:am trying to workout an expression to align the z rotation with the direction of an objects movement. i’m assuming the align expression is the one to use. something along the lines of align(axis.position, (0,0,1), frame….). any ideas? taWell, I think you almost have it, try to put this expression on the “rotation” parameter (not on x, y or z, but really “rotation”) : align(axis.position,(0,0,1)) and the the +z axis of the axis will follow the motion of the axis.
If you want, take a look at the “expressions_text” setup in the example folder (/usr/discreet//examples/action/) to have an idea how to use it in conjunction with the eval function.
Hope this helps.ventrap
April 23, 2007 at 5:41 pm #215529AnonymousInactivethanks, have tried that, however the result is just the object jumping 180º, north then south, rather than rotating smoothly…
April 23, 2007 at 5:49 pm #215525ppccParticipanthumm, strange, I tried it here and it seems to work, the only way I achieve not so good result is using motion path to move my axis. Do you use Motion path or explicit x/y/z motion?
April 23, 2007 at 6:01 pm #215530AnonymousInactiveexplicit translation as well. would you do me a favour and send me an action setup? i’m using 9.5.13….. i’ve had problems with a few expressions not working on my flame before, however the exact same expression worked on my flint…. hmmm… this current problem i’m trying on both machines, but with no joy… argh!!!
April 23, 2007 at 6:47 pm #215526ppccParticipantJason,
you should receive the setup soon, check your mailbox.
😉ventrap
April 24, 2007 at 11:22 am #215531AnonymousInactiveok solution, courtesy of ventrap, thanks
align(axis1.position,(1,0,0)) expressed onto the the whole of the rotation parameter
of that axis gives, a 2d cutout/object, z rotation data based on the trajectory of the translation data.hope that makes sense…
jason
September 6, 2007 at 7:16 pm #215528Victor MakaliParticipantIs there a way to use Motion Path? I really want to use it to make nice smoth animations.
September 9, 2007 at 11:22 pm #215527RamazanParticipantuse motion path, then create a copy and link it to the original with a slip expression so the copy is always one frame ahead. Then use a lookat expression for the Z rotation channel to lookat the copy. Not tried it but it sounds cool to me !
lookat expression from fxguide tips, by jake parker:
http://www.fxguide.com/modules.php?name=fxtips&file=print&id=323
example of a slip expression (by Alan Fairlie):
http://www.fxguide.com/modules.php?name=fxtips&rop=showcontent&id=285
let us know if it works!
cheers
paul
ps…possibly another way is to have a particle generator on the motion path which generates the object as a particle with a lifetime of 1 frame, at a rate of 1 per frame…though you have to live with particle issues like the texturing etc
-
AuthorPosts
- You must be logged in to reply to this topic.
