Math Is Fun Forum

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

You are not logged in.

#301 Re: Help Me ! » Expression Formula » 2009-11-10 02:17:57

I have to give it a target.  The name of the program is Softimage, I hope that helps in getting this solved smile

#302 Re: Help Me ! » Expression Formula » 2009-11-08 14:12:53

Don't worry about it Sarah smile It just seems harder and harder to get half decent help.  It is wonderful that Bobbym is trying to help and with your compassion has been well appreciated smile

#303 Re: Help Me ! » Expression Formula » 2009-11-08 02:37:09

cond( <cond> , <true_expr> , <false_expr> )

I hope this helps, let me know if it doesn't smile

#304 Re: Help Me ! » Expression Formula » 2009-11-07 13:39:59

Conditions, it does support.  Using Cond()

Sarah - Yes I did, nothing.

#305 Re: Help Me ! » Expression Formula » 2009-11-05 17:21:27

==  Equal to

> Greater than

>= Greater than or equal to

< Less than

<= Less than or equal to

!= Not equal to

&& AND

|| OR

Random 0 or 1

+ Add
– Subtract
* Multiply
/ Divide
% Modulo (remainder)

Abs()
Absolute value

Cos()
Cosine

Fix(), Int()
Integer portion of a number

Log()
Natural logarithm

Rnd()
Random number

Sgn()
The sign of a number: –1, 0, or 1

Sin()
Sine

Sqr()
Square root

Tan()
Tangent

Fc = Current Frame
Fc = Start Frame
T = Time

There again posted is most of the expression terms. There isn't really any more expressions terms left that are frequently used.
I had given them to you in post #22 but I listed them again.  This is the image to show what I'm trying to achieve sincurve.jpg

#306 Re: Help Me ! » Expression Formula » 2009-11-05 13:20:28

I posted, the problem that I was having earlier in the thread.  I also posted most of the code that the program uses for expressions, that is all there is to mention. 

I had asked only in a different way, how can I create a SIN wave and put flat lines within that wave with a little noise ?

I know what a SIN curve is etc.  For example with Noise you have (3) numeric values you can put in with MIN & MAX you have (2) and it always uses the lowest. 

How would you write out this script ?

You mentioned to me in a round about way that I have to know the syntax which I know what the commands do, but how do you  write it out so it works ?

Now you mentioned to me to be specific and post the example, but I did post the example and most of the expression commands in post #21 and in #22.

My Question is:

How can I create a SIN wave and put flat lines within that wave with a little noise ?

#307 Re: Help Me ! » Expression Formula » 2009-11-05 06:08:24

You are right smile I've been asking Bobby if he knows of any books that could help a beginner so I could grasp the basics or a little more advanced then basics then take it from there smile

#308 Re: Help Me ! » Expression Formula » 2009-11-05 01:49:21

There is no book that would help me learn so I could understanding easier writing expressions ?

#309 Re: Help Me ! » Expression Formula » 2009-11-04 10:31:29

Hi, bobbym I understand what you mean in terms of learning.  Do you have any strong recommendations on a programming books that could help learning to understand how to write these expressions ? I have read the help documentation but I've had a hard time in how to write out the expression, so that it works.

#310 Re: Help Me ! » Expression Formula » 2009-11-03 22:55:13

Hi, Bobbym smile

In post #22 I put the noise function within a bracket for Cos as you put Cos(45,23,12).  How come you have Cos(.5), cos(.03), cos(1.6) why do it that way ? I haven't tried that expression Cos( noise(.1,.2.,.3)) but I think you may be right in that it will return an error but why would it ?  Remember post #22 has most of the expression commands smile

Now How would you go about, with a cosine curve but have the cosine curve become flat at times then go into the curve.  Imagine if you draw a constant curve, now you draw some random flat peaks that would be at zero.  Would the MIN with COS and NOISE be used to control this ? How would you write this out ?

#311 Re: Help Me ! » Expression Formula » 2009-11-03 12:31:04

Good Afternoon or Day Bobby smile

What I am trying to say is that noise is not returning the two parameters than MIN requires. There may be other errors but let's concentrate on this one.

MIN(32,8) returns 8
MIN(32) returns an error. MIN expects 2 things and got one.

This I now understand, MIN expects 2 things and it uses the lowest number, correct?

When I showed you how to nest one function inside another that was just an example. You have to obey the syntax for each command.

Without knowing the particulars of your program it is hard to be specific but you could nest the cosine function inside of MIN:

MIN(cos(.3),cos(.5)) should return a value.

This expression worked, what you did was using the MIN command you nested a cos command with the first value for the MIN then a second cos with the second part of the function for MIN.  Why did you put (.3) & (.5) in brackets ? Lets suppose that I wanted to make a sphere have a Cos with noise how come this wouldn't work:

Cos(noise 45,23,12) ?

Here are some of the basic functions that are within this software:

+ Add
– Subtract
* Multiply
/ Divide
% Modulo (remainder)

Abs()
Absolute value

Cos()
Cosine

Fix(), Int()
Integer portion of a number

Log()
Natural logarithm

Rnd()
Random number

Sgn()
The sign of a number: –1, 0, or 1

Sin()
Sine

Sqr()
Square root

Tan()
Tangent


Fc = Current Frame
Fc = Start Frame

Now How would you go about, with a cosine curve but have the cosine curve become flat at times then go into the curve.  Imagine if you draw a constant curve, now you draw some random flat peaks that would be at zero.  Would the MIN with COS and NOISE be used to control this ? How would you write this out ?

Thank You.

#312 Re: Help Me ! » Expression Formula » 2009-11-03 05:39:27

The expression doesn't return nothing, and the expression does work.  There is three arguments, in the noise that I have in place.  I don't understand how I would apply MIN within and remember that noise would have to work on a Cos or Sine.  In this step all that I've done is applied "noise 45,34,25" representing X,Y,Z.

#313 Re: Help Me ! » Expression Formula » 2009-11-03 04:23:09

Noise doesn't do anything because there is nothing driving the noise.  The expression noise(45,34,25) works but nothing is going to happen because there is nothing to drive the noise.

#314 Re: Help Me ! » Expression Formula » 2009-11-03 02:56:13

cos( T * 90 *MIN( noise( 45, 34, 25 ))
without any variable I'm trying this expression but it throws back an error

#315 Re: Help Me ! » Expression Formula » 2009-11-02 17:55:23

And now for a simple oscillation using the cosine function and the frame rate of the scene’s playback.

The expression you see above this sentence is with a variable which has been written in the expression. 

MIN( <val1> , <val2> )

noise( <x>, <y>, <z> )


This expression sets a Cosine curve based on a variable on time (T equals Time) multiplying by 90 by the variables which is
the sphere.Control.freq <multiple> by another variable which is sphere.Control.amp. 

Using this example how would you put, within this expression
this code:

and this ?

#316 Re: Help Me ! » Human Proportion to Scale ? » 2009-10-30 15:45:39

Mathyperson was right.  Something 1/6 in scale as he mentioned would be close to if not 30 CM. 
Thank you Bobbym and Mathyperson smile Now I have my answer smile

#317 Re: Help Me ! » Human Proportion to Scale ? » 2009-10-29 11:41:59

Bobbym I was going to mention this in my original thread that we talked about this smile You mentioned though that you should know the scale of the model in that thread but I don't know what the actual proportions of a human is to multiple it by.  Mathyperson mentioned 180 CM now if this is correct then 30 CM is right, but that is what I'd like to know what is the average height ?

5'10 for a male human ? That is the first question smile
Then how do you convert feet and inches to CM to figure out the scale  ?

#318 Re: Help Me ! » Expression Formula » 2009-10-29 11:29:01

I'm going to read up and any questions, I'll let you know about that I don't understand by posting the way the manual states and what I don't understand, this will probably make it easier for you and for me so I can understand smile

#319 Re: Help Me ! » Human Proportion to Scale ? » 2009-10-29 04:47:40

I suppose I have to found out a average humans height smile Then I multiple that by 1/6 which will give me the actual scale height.

#320 Re: Help Me ! » Expression Formula » 2009-10-29 04:45:48

I'll just look over the documentation.  Thanx.

#321 Re: Help Me ! » Expression Formula » 2009-10-28 11:57:58

It's a 3D program.  I'm just having a hard time understanding that is unless if you were supplied some documentation you could help me ?

#322 Re: Help Me ! » Expression Formula » 2009-10-28 07:46:02

Do you know what could help me in relation to grasping these commands?

#323 Re: Help Me ! » Expression Formula » 2009-10-27 15:37:43

Oh so you would have to learn in relation to the program ? You couldn't just use any formula and it would work each program would have a specific formula to use !

#324 Help Me ! » Human Proportion to Scale ? » 2009-10-27 13:48:35

SuperLynx
Replies: 7

What would be the size of something that is Anatomically proportional (1/6 scale) What is our Anatomically proportion ? Then to figure out the scale which is 1/6 ?

#325 Re: Help Me ! » Expression Formula » 2009-10-27 12:48:28

Well when I'm typing an expression and I'll use something simple

Sin(Fc*5) now in relation to what I'm doing I understand what the Fc means for the software but is it specific to the software how to write a expression formula out ? Or is there a General rule that one could use most of these formulas have some ties with Javascript if that helps.

Board footer

Powered by FluxBB