Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#276 Re: Help Me ! » Expression Formula » 2009-12-01 11:56:32

where i will work with you on it. Please in the future make a new thread for your problems. If you just add them to someone else's thread then I might not see them.

I did make a new thread, this was it.  You mixed my question up with

How to do 3x+2 And 7x-2?

Can you help me with this Equation 14x + | 15/

Which is different then my question. My question doesn't relate to this question !

#277 Re: Help Me ! » Expression Formula » 2009-11-30 14:09:51

Bobbym - that expression produces a graph that looks like this (http://img341.imageshack.us/img341/4393/expressionpicture.jpg)

#278 Re: Help Me ! » Expression Formula » 2009-11-29 01:43:15

randBool() function acts like an on/off switch returning a 0 or a 1.

#279 Re: Help Me ! » Expression Formula » 2009-11-28 11:24:53

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 sad smile

#280 Re: Help Me ! » Expression Formula » 2009-11-28 00:03:13

(rand_0_1(12)) That syntax returns a random number.

#281 Re: Help Me ! » Expression Formula » 2009-11-27 11:32:38

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.

#282 Re: Help Me ! » Expression Formula » 2009-11-27 00:32:59

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 smile 

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) smile

There are still some expressions syntax I can't figure out what they mean sad 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"

#283 Re: Help Me ! » Expression Formula » 2009-11-26 03:27:17

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 smile If you know pre-calc Bobbym pull that info out of your memory bank smile

#284 Re: Help Me ! » Expression Formula » 2009-11-25 03:34:19

Bobbym that conditional statement, worked.  Here is a picture of the graph of what that expression created. 

expressiongraph.jpg

#285 Re: Help Me ! » Expression Formula » 2009-11-24 13:12:27

It made not a sin motion but rather a slope.

#286 Re: Help Me ! » Expression Formula » 2009-11-24 11:23:21

Expressions are much deeper that is just the tip Sarah smile

#288 Re: Help Me ! » Expression Formula » 2009-11-22 04:01:32

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 ?

#289 Re: Help Me ! » Expression Formula » 2009-11-21 13:11:11

That is what that does, but how to I put other expressions within that expression ? As in controlling the min or max.

#290 Re: Help Me ! » Expression Formula » 2009-11-20 10:54:25

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).

#291 Re: Help Me ! » Expression Formula » 2009-11-20 07:58:06

I hope you get it figured out Bobbym.

#292 Re: Help Me ! » Expression Formula » 2009-11-19 14:02:22

Sarah thank you but it doesn't go into how to write out the expression.  I understand that expressions need to be written in brackets, and you can nest brackets within brackets but it's the order in relation to the program I use, that I'm having a hard time understanding.

#293 Re: Help Me ! » Expression Formula » 2009-11-17 04:50:18

Hopefully, this link gives you a better understanding of how the expressions work in Softimage.  If you do start to understand but need a bit more information to solve my original problem, let me know.

http://softimage.wiki.softimage.com/index.php/Basic_Expressions_Example#Oscillation_Using_Cosine

#294 Re: Help Me ! » Expression Formula » 2009-11-16 04:34:33

You mean Maya's own scripting language. Sorry, I don't speak any scripting language with the exception of python. I only learnt languages that compile to native code. I don't like the concept of compiling to pcode.

This program can use Python as well, but you usually have to follow some program code guidelines no matter what language you are witting in, which can be difficult.  I can direct you to a online expression reference ? Where hopefully you would be able to understand the syntax for creating the expressions, from my understand and observing others expressions using this program they weren't that complex, but if you can understand it would help me to learn.

#295 Re: Help Me ! » Expression Formula » 2009-11-14 10:43:46

Here are my thoughts so far: That is a very complicated 3D modelling prog. It looks more sophisticated than Maya.

It's not really much more complex then Maya.  It uses Visual Basic and Javascript, same as Maya does.  Why do you know MEL scripting ? up

Question: Why do you need that to draw a 2D graph?

Not to draw a 2D Graph, create a SINE expression for an object.  If you want I can get you more information to help you understand how to write expressions.  wave

#296 Re: Help Me ! » Expression Formula » 2009-11-14 01:02:43

She probably was a good mother smile Don't worry bobbym she is watching you beyond the grave to make sure you don't get into trouble smile

#297 Re: Help Me ! » Expression Formula » 2009-11-13 06:04:43

Thanks, she was 79. I am grieving but working on something makes me forget.

Don't block her from your mind smile She is watching from the other side smile

First in post #38 you have capital C and in post #40 you have small c for cond. Which is correct?

Smaller C is correct.

Cond(x>0, x, x^2)

For some strange reason it's not working.  Telling me I have to select a target, when I know this software and I have selected a target, arrrgh.

Is this what you have?

http://www.youtube.com/watch?v=FlQ_v-ECqKU

http://www.youtube.com/watch?v=Kbr6L-oQ … re=related

That is what I have smile

#298 Re: Help Me ! » Expression Formula » 2009-11-12 13:03:26

A Target is what to apply the expression too. 
Sorry to hear that you've lost your mother, how old was she ? sad

If your grieving and would rather pass the problem to someone else.  I'll understand.  Although you are the only active one it appears smile

#299 Re: Help Me ! » Expression Formula » 2009-11-11 11:27:15

I know, I can wait smile In the meantime while I suppose we wait for Bobbym, how are you ?

#300 Re: Help Me ! » Expression Formula » 2009-11-10 12:42:38

No smile Hopefully Bobbym comes up with answer soon smile

Board footer

Powered by FluxBB