Steve,
>
> This just scales the depth back. What I really want is to feed Depth
> into the Compute module as input B and use the Expression:
>
> [a.x, a.y, a.z * [b.x, b.y] / 22]
>
> When I do this, I get the following in the Message Window:
>
> Error: Compute: Bad parameter: Inputs must be of same length / Input 1
> not matching the master (input 0).
>
This means that the number of depth values is different from the
number of positions. Compute wants its inputs to be arrays
of the same length. It then computes the expression
for each set of corresponding elements. As a special case,
an input can be a single value (array of length 1), in which case
the same value is used throughout.
Your expression also has an error - which Compute will complain
about next, after the inputs are the same length. If what you
want is to multiply a.z by the length of vector b, try:
[a.x, a.y, a.z * mag(b) / 22 ]
Hope this helps.
Cheers,
Joel
===============================================================
Joel Richardson, Ph.D. [EMAIL PROTECTED]
The Jackson Laboratory Phone: (207) 288-6435
600 Main Street Fax: (207) 288-6132
Bar Harbor, Maine 04609 URL: www.informatics.jax.org
===============================================================