momentary buttons controlling cross CHOP index

Hi all,

Putting together a skeleton for an touch screen interactive, and having a little trouble with control camera positions with buttons.

I am trying to have an interactive camera setup, where the user can click on an area (at this stage a momentary button) and the camera will navigate to that position. I was initially going to try and use the camera blend COMP, but read it can only support up to 4 camera positions or states (forgive me if I am wrong about that one), so have set all the optional camera positions (so far 8) as constants, feeding into a cross CHOP (as it can nicely blend between the values, as opposed to simply jumping to the values like in a switch CHOP), and then the XYZ values into a null COMP controlling a camera COMP.

Using itaru’s example of a button sending a constant value (found here: viewtopic.php?f=4&t=3729&p=13458&hilit=constant+value+button#p13458) I am able to send one state to the cross CHOP, so interpolates smoothly from 0 - 1. I would like to know how I could have multiple buttons that change that value, based on where the user clicks (the desired camera position).

I hope this makes sense?? I have attached the .toe file in question.

Cheers :smiley:

Ollie
objectNetwork.14.toe (14.1 KB)

problem solved:

Another thing you could try out is the Fan CHOP. In the screengrab’d network you show, if you add a Fan CHOP after the Merge CHOP and set the Fan CHOP’s Operation to Fan In, it will output a single change that is an index of which button is currently on. So if the 4th button is selected, the Fan CHOP will output 3 (0-based of course). You can use this index to drive a Switch CHOP/DAT that holds your camera positions, which are then exported to the camera.

Try it, the Fan CHOP is really handy but often overlooked!

Hi Ben,

Cheers for the response! :slight_smile:

The fan CHOP has now become one of my new best friends!

Ollie