Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality. If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers. And always feel free to hit us up on Twitter @MxdRealityDev.

Applying Hold gesture and gameobject move code to the Origami project

Hi, I've gone through the Origami tutorial, as well as the Gaze and Gesture tutorials in the Hololens Academy. I've adapted the Origami tutorial to a project that I'm working on, and it is working really great. I've added a menu system, and can click on the menu to animate different parts of a 3D model that I've imported as and FBX from 3D Studio Max. I even have voice commands triggering the same animation. I've found that the code for the Origami tutorial is easy to understand and adapt to my needs, so thanks for that! Note: I'm really much more of a 3D person than a programmer...

My 3D model is floating in front of the menu, and now I would like to add a tap gesture (Or voice command saying "move model") so that I can move the model to a different location by draging using the hold gesture. I've gone through the Gesture tutorial, and have attempted to apply the code in that tutorial to my modified code in the Origami tutorial, but I am having problems getting this code to integrate. I've attempted to merge my current project into the Gesture project, but all kinds of headaches are arising from that, and there's way more code and functionality in the Gesture project than I really need. I simply need a to move an object using the hold gesture in my current project.

I'm using the GazeGestureManager in the origami tutorial as sort of my "central brain" where I control all of the commands for the menu as well as triggering the animations. The "tap" functionality is already in there, so it's not a problem adding new tap commands. What I'm having problems with is adding the Hold gesture and move functionality to this script. Any advice on how to best go about doing this would be appreciated.

I apologize if I haven't given enough information here, please let me know if you need more...



Best Answer


  • Wow, thank you for this...I will attempt to implement it and let you know how it goes! I apologize for taking so long to get back to you but I was out for the holidays.

    Many thanks,

Sign In or Register to comment.