Use keyboard to toggle mouse interactions

scalf's picture

I have been using 1024's perspective patch for a bit now and I find myself with many instances of this patch in one composition. After placing them I need to delete the pink handles to make it presentable.

My question is instead of going down into the macro and hand deleting all of the interactions per patch, can I toggle them all using the space bar via the keyboard interaction patch?

That way if I needed to move the handles, just spacebar and they all come up. The wall I run into is that the mouse interaction needs to be deleted on every start/stop of the viewer or else they are reset. However, these mouse patches do not have an enable switch.

PreviewAttachmentSize
Mapping Toggle.qtz11.86 KB

o00o's picture
Re: Use keyboard to toggle mouse interactions

I've added a keyboard toggle that enable or disable the pink handles. hope it can be useful for you!

PreviewAttachmentSize
Mapping Toggle.qtz14.46 KB

scalf's picture
Re: Use keyboard to toggle mouse interactions

Thank you, this is useful, no doubt. I tried some combination of this a few tries back. However, when the composition is stopped, and then resumed, the values are reset because the mouse interaction is still connected and the toggle is reset as well; this is the ultimate ailment.

That being the case, it seems as though if we could just get a way to noodle/de-noodle the interactions or pass off a saved value (a.k.a. the finale position) boolean style, and have that be saved and not reset each stop/play cycle. I think a sample and hold patch can be used, I just have trouble again, with the saved value being connected, and thus susceptible to reset.

o00o's picture
Re: Use keyboard to toggle mouse interactions

i've used a file to store the offsets so you can press the "s" key to save the positions and when you open or run the patch they are recalled.

i'm sure this is not the best way to do this but it work.

PreviewAttachmentSize
Mapping Toggle_tofile.qtz22.79 KB

scalf's picture
Re: Use keyboard to toggle mouse interactions

The space toggle on this one works fairly well for what is going on. Nice job! Thanks a bunch