Continue to Site

# trajpar

#### skiddy

##### New member
assuming that trajpar range is 0-1.

I can make a length (of 1) vary from eg. 5-10units

d#=5+(trajpar*5)

But how can you vary the length from eg 5-10 and back to 5?

is there a way to control trajpar so i can work on just half the length, ie using it as 0.5 instead of 1?

Maybe you can try using a graph instead of just trajpar.

sd#=evalgraph(graph_name,trajpar*d)/(r/n)

sd# = an offset dim. from the trajectory

graph_name = name of your graph (use the quotes ex graph1)

d = max. x value

r = max. y value

n = ratio of the height of the wave

hope this helps

Brian

manys thanks............. off to try now!

You could also try this:

d#=5+(trajpar*10)

if trajpar>0.5

d#=15-(trajpar*10)

endif

But just one more question, in your equation you use trajpar as 0.5 should there be any reason why other values wont regenerate between 0-1?? Im baffled!

anyone know any good examples or tutorials of what we can do with trajpar VSS and datam graph

anythign woudl be nice

You could also try this:

d#=5+(trajpar*360*10)