Rigging: Constrain object so that it only inherits motion in one direction

Become a member of the CGSociety

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

 
Thread Tools Display Modes
  4 Weeks Ago
Rigging: Constrain object so that it only inherits motion in one direction

Hello all,

There might be a simple solution to this, or maybe not, but I'd like to do something like this:
https://gyazo.com/104fa2ebf758ed3a2de57de4bf4f3665

The link shows a simple setup of a keyframed null pushing a ratchet along one axis.
For the sake of the above GIF, I keyframed both the driver null,as well as the ratchet's position, but would love to know a simple, relatively fool-proof way of generating the ratchet's animation through motion inheritance, rather than keyframe.

In this case, I'd want the ratchet to inherit cumulative position values from the driver-null only along the negative z-axis animation, but not the positive.
Can this be done with a regular ol' Constraint tag (or other tag that is not an Expresso tag?)
If Expresso is the only solution, would anyone be able to suggest a tutorial that covers this problem specifically?

Many thanks!!
NpF

Last edited by pfistar : 4 Weeks Ago at 12:21 AM.
 
  3 Weeks Ago
Here's an XPresso solution. The pawl is on a spline and when the looped align to spline position % is > 0, it triggers a monoflop timer that cranks the ratchet along by one unit.

https://www.dropbox.com/s/kf1iwdouk...atchet.c4d?dl=1
 
  3 Weeks Ago
Not a specific answer to your question - jed1949 looks like he has you covered, but here's another Xpressio approach that might help. In this example it's set up to change the object colour when a secondary object is moved in +Z, but not when moved in -Z. It switches output by comparing direction of movement.

compare direction switch
 
reply 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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 12:46 PM.


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