Forum

Selecting a slice from a set of spreads based on the slice value

Hey all-

This seems like it should be simple, but I’m a little at a loss on how to do it. Given a set of 4 spreads, which are indexed by the first, how do I selected a slice from each spread based on the index in the first.

Specifically, I’m trying to use FiducialTracker, which outputs 4 spreads:

1.) index (integer)
2 - 4.) positioning information (X, Y, orientation)

I want to map functionality based on the index, so I need to get the X, Y, and orientation for a specific index.

Sample output might look like:

3, 4
.9, .6
-.3, .4
.87, .1

I’d want to do something with the values for 3, so I’d need to get 3, .9, -.3, .87.

I’m guessing I need to somehow search the first spread and get the index, then use GetSlice on all the other spreads…but the searching part is throwing me. :(

Any ideas?

Thanks!

-Zach

The short answer: KeySort (Spread)
also: the Select nodes.

see help file.

The long answer (sorry for the mess)

keysort-test.v4p (21.2 kB)

Thanks! That’s very helpful! Should be able to handle the data now.

-Zach