View Full Version : assigning custom attribute to expression driven bone?
redskin106 05-20-2009, 04:48 AM I'm trying to create a slider to control the amplitude of a sine expression
applied to a series of bones but i don't really know how to go on about
doing this. how do you get to control one value within the expression via CA?
i'm using 3dsmax btw.
|
|
First off use a script controller, add your CA to an object with keyable parameters and reference them in the script as nodes, controllers or objects.
redskin106
05-21-2009, 03:48 AM
thanks Eek,
must say i'm not that good with all this stuff.
not too sure how to reference the bones
as nodes following this expression which you
wrote in this section a while back.
(amplitude * sin ((F+offset) * frequency))
i would like to understand all this properly so
if you could point me to some tutorials or
something i would greatly appreciate it too.
Also i wanted to ask about some quadruped
setup you uploaded a while back, would it be
possible to have a look at it? the link you posted
seems to be dead :(
thanks Eek,
must say i'm not that good with all this stuff.
not too sure how to reference the bones
as nodes following this expression which you
wrote in this section a while back.
(amplitude * sin ((F+offset) * frequency))
i would like to understand all this properly so
if you could point me to some tutorials or
something i would greatly appreciate it too.
Also i wanted to ask about some quadruped
setup you uploaded a while back, would it be
possible to have a look at it? the link you posted
seems to be dead :(
hehe im like a bad penny! Anyway,
(amplitude * sin ((F+offset) * frequency))
This is basically standard harmonic oscillation, you have an amplitude (the height) multipled by the sin of F which is basically a period or time/ticks/etc + an offset which is important if you want to offset the value down the chain, multiplied by the frequence ie the frequency of the peaks of the wave.
So for example make a chain of bones, on the first bones y or z rotation give it a script controller with this script:
10.0 * sin((F) * 1.0)
now for each successive bone in the chain added the same script but with an offset added to f like so:
(F + 2)
(F + 4), etc,etc..
all were doing is offsetting the period of the wave when it takes place. :) Hmm.. my quadraped link maybe dead it made it like 5 years ago! - ive got a lot of new ideas since then :)
All your doing is oscillating between two peaks one in positive and one in negative there height governed by there amplitude, period over time and frequency of when the oscillation goes between each peak.
redskin106
05-22-2009, 07:19 PM
thanks so much Eek,
this clarifies a lot but i'm still stuck when it comes
to exposing a given value within a script with a
custom attribute. basically i would like to be able
to control the amplitude of the sine with a slider
but i don't know how to get access to just that
one value of the script through the reaction manager?
is it possible?
CGTalk Moderation
05-22-2009, 07:19 PM
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.