You are not logged in.
I made some headway hopefully this opens the door to the other expressions in the thread and how to bring them all together.
Sin(Fc*5)
Sin for FrameCurrent multiply by 5. Which is saying starting on the current frame multiply the Sin by 5 (the peaks).
Offline
Hi SuperLynx;
That should increase the frequency of the sin curve.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
That is what that does, but how to I put other expressions within that expression ? As in controlling the min or max.
Offline
Hi SuperLynx;
Have you tried using the Cond statement yet. That is the key.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
noise(this.kine.local.posx,(Fc*5),this.kine.local.posz)
That expression works as well for applying noise
this refers to "itself" kine means the kinematics.local is local position (can also be global) and posX means Position X or Position Z
If that expression works and Sin(Fc*5) works how can I apply noise to a Sine curve ?
Offline
Hi SuperLynx;
Doesn't Sin(Fc) work?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Yes that works.
Offline
Hi SuperLynx;
Does just Fc work?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Did You Find the Answer?
Expressions are much deeper that is just the tip Sarah
Offline
Hi SuperLynx;
Yes, but what happened when you used just Fc?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
It made not a sin motion but rather a slope.
Offline
Hi SuperLynx;
That is fine. We are now in positon to try the cond statement. Try this:
cond(Fc>1 ,Sin(Fc),Fc)
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Bobbym that conditional statement, worked. Here is a picture of the graph of what that expression created.
Offline
Hi SuperLynx;
Does this work?
cond(Rnd(0)>.5 ,Sin(Fc),Fc)
Last edited by bobbym (2009-11-25 22:44:35)
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Nope that didn't work, here is the error begins.
>.5 ,Sin(Fc),Fc)
I've read if you, know some pre-calculus it helps in understanding these types of expressions If you know pre-calc Bobbym pull that info out of your memory bank
Last edited by SuperLynx (2009-11-26 04:03:06)
Offline
Hi SuperLynx;
How does the Rnd() command work on that program. I need more info about it and can't find it.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I did make some progress to create a sin curve with noise:
Sin(Fc*5*rand_0_1(23))
Condition work like this:
cond(<name of object you want to apply condition> >= (greater then or equal too)3,<condition if true>,<condition if false>)
Put into a expression would be like this:
cond(sphere.kine.local.posy >= 3, cube.kine.local.posx, cube_two.kine.local.posz)
Explained what the expression means in English, if the condition of the sphere is great then or equal to 3 units on the X then then snap it to the cube X position if it's not greater then or 3 units on the X then snap it to cube_two Z position
There is no Rnd() command in this programs expressions even in Maya there isn't, as far as I know ! There is ceiling and min and max which I still can't figure out, I've got some information on it but still can't understand.
Here is another way to write an expression:
Sin(Fc*5)+(rand_0_1(12))/64 > Tip computers are best at calculating even numbers not odd numbers (2,4,6,8,10 etc)
There are still some expressions syntax I can't figure out what they mean Then this program also has another graphical programming language which is a little easier, but you have to know what does what like "SettingData" and "GettingData"
Offline
Hi SuperLynx;
Let's not get ahead of ourselves, I am still working on a 2D graph like you provided earlier (Post #35). Once I get that, we can try to move ahead.
What does this (rand_0_1(12)) return in your language? This must be the random command. Please give me the syntax.
And by the way, in Post #35 you see that there is an Rnd() command.
Last edited by bobbym (2009-11-27 02:07:57)
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I Went Fishing Yesterday.
What does this (rand_0_1(12)) return in your language? This must be the random command. Please give me the syntax.
It's a random jitter function. I must have meant the Random syntax I just mentioned.
Offline
Hi SuperLynx;
OK, which one returns a random number, This (rand_0_1(12)) or Rnd()?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
(rand_0_1(12)) That syntax returns a random number.
Offline
Hi SuperLynx;
Between 0 and 1?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
It produces a Random between 0_1 with a seed of it could be (23) for example.
There is also a boolean one, which I never knew until 2 months ago what a boolean was
Offline