|07 July 2013||#1|
Join Date: Apr 2011
Telescopic antenna help
I am wanting to create an antenna exactly like the one in this video: http://www.youtube.com/watch?v=twm3ql6k58A
where a larger tube only extends when a smaller tube is fully extended. Any ideas how I would go about doing this? So far I have tried set driven keys as well as parent constraints with different weights. But I haven't been able to get this effect. The video seems to be on expressions but I wasn't really able to learn anything as it is in Russian .
Any help is greatly appreciated.
|07 July 2013||#2|
Join Date: Dec 2008
You might want to look into making a setup where joint scaling drives geo scaling via some kind of math equation and joint parenting drives the locations of the geos.
Maybe an animator control can drive an overall length and that length is used to figure out how to scale each of the joints. Check out Jason Schleifer, Aaron Holly stretchy rigs …
Here is some rough math i did there probably are some mistakes but hope its helpful. There probably are builtin easier ways to get a number between two extremes that meets those extremes depending on another number (maybe remap value nodes, hermite, clamp …)
How to get a number x between scale 0 and 2 that depends on curveLength y between 0 and 10.
call lengths l1 = 0, l2 = 10. scales s1=0, s2 = 2,
x = s2 when y = l2
x = s1 when y = l1
equation for line
x = my + b
s2 = m*l2 + b
s1 = m*l1 + b
m*(l2-l1) = (s2-s1)
m = (s2-s1)/(l2-l1)
b = s2 - (s2-s1)*l2/(l2-l1)
plugin in the m and b from above
x = my + b ( l1 < y < l2 )
x = s2 ( y >= l2 )
x = s1 ( y <= l1 )
is one way to get a number x between 0 and 2 that depends on curveLength y between 0 and 10 (call lengths l1 = 0, l2 = 10. scales s1=0, s2 = 2)
Here is some Python code i wrote to do this
|07 July 2013||#4|
Join Date: Sep 2003
Thread automatically closed
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.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|