Archive: Variable list.


4th May 2002 14:48 UTC

Variable list.
Hi I would like to know what all the variables used in AVS are and there meanings and ranges.

I cannot find any documentation at all on any of these.

eg Superscope

px,py,pz,z1,x1, r, cx,etc,etx there seems to be millions of them

The in window 'documentation' (term used loosely) it just says what x,y,i,v,b,red,green,blue,w,h are for but there appear to be loads more.

The same with DM.

Cheers,

Rovastar


4th May 2002 18:38 UTC

The superscope contains 10 built-in variables:

n - the number of points in the scope; 576 works best for most scopes.
i - the position along the scope, from 0 to 1; a percentage of n relative to which point is currently being drawn, i.e., if m=the point currently being drawn (counting up from 1 in integers), i=n/m.
x, y - the x and y coordinates for the point to be put
v - the volume value for the point at i; if you have a regular horizontal oscilloscope, v is the vertical position.
red, green, blue - the rgb values for any given point; overrides the selection under "Draw as: ..."
w, h - the width and height of the AVS window

Movements use 4 variables, 2 at a time:
x, y - the rectangular (cartesian - coordinates) that span from -1 to 1
r, d - the polar coordinates; at any point r is the angle from the top of the screen to the center to the point, expressed in radians (divided by 360/(2*pi)=180/pi or about 57.29578); d is the distance from the center to the point, scaled (multiplied) by the square root of 2, or approx. 1.41421.
You can transfer between the two thus:
x=cos(r)*d; y=-sin(r)*d;
r=atan2(x,-y); d=sqrt(x*x+y*y)*sqrt(2);

However, you can creaet other variables, that don't affect (or aren't affected by) AVS directly. Any combination of letters and numbers can be variables, so long as they start with a letter. They can pretty much be as long as you want, as well...


7th May 2002 23:30 UTC

Thanks for the info.

I understand the user defined part.

ALso it made things more confusing when the perpint equation of the SS I was loooking at UnConeD's smoking Kale8idoscope was bigger than the tiny 5 line box and I did not realise. Grrr.

Something for the wishlist.......


8th May 2002 07:27 UTC

Yeah, notepad is great for coding.


8th May 2002 15:43 UTC

I assume you're talking about scrollbars for the processor blocks?