The forum on this site is closed for new comments and posts. Continue the conversation in the new forum, and learn more here.

How to Move 2D picture without scaling the size? How to do Hand Recognition?

  • Hi Vincent!

    There's multiple ways to get your object to be manipulate-able on a 2D plane.

    The easiest way is to rotate the parent object of the object with the Manipulate component 90 degrees, take a look at this guide to learn more:

    However, this has the limitation that the user will need to drag the object (if the user just taps on an empty area, the object won't move there). If you want the user to be able to tap anywhere to start dragging, take a look at this solution which uses the event system to figure out where the user has touched:

    Currently we don't have hand tracking available yet. I will pass it on to the developers that this is something that our users want! 

    Let me know if you have any other questions. Can't wait to see what you come up with. 



    Comment actions Permalink
  • Dear Jon,

    Thank you so much for your help, I have successfully finish it. However, there is an obstacle right in the middle of the screen, hence, when I drag the object to the middle, I have to go around it. 
    How can I make the obstacle disappear? Thank you. The dropbox link is my lens studio project.


    Furthermore, I have added a 2D sprite and 3D mesh to the head binding. However, I want the object to tilt according to gravity when the head tilt. Without gravity, the tear object looks unnaturally hanging. Is it possible to accomplish? Thank you. The top of the red line will fix in the eyeball and do not move in any circumstance. The bottom of the red line will tile according to gravity.


     For the hand recognition, I wonder how the official lens accomplish this effect? As seen in below photo, the heart is attached on the hand, the heart will tilt as the hand tilt, the heart will reduce size as the hand become smaller, the heart will disappear when the hand disappear. Thank you so much.




    Comment actions Permalink
  • Hi Vincent! 

    You're close. Try adding this script on Initialized to the object that contains the manipulateComponent. Then, in your Inspector panel, click the Manipulate Component field and assign your manipulate component. 

    // @input Component.ManipulateComponent manipulateComponent
    script.manipulateComponent.minDistance = -9999

    One thing you can do, is just copy the position of your head binding without copying the rotation. Travis posted a sample project of the way to do this here:

    As for the hand tracking, our internal team is using a slightly different tool to achieve the effect. As it stands, Lens Studio does not currently offer the ability to track objects to hands, but I've already informed the developers that you (in addition to Calvin and Alexis) desire such a feature.

    Let me know if you have any additional questions! Can't wait to see the final project.




    Comment actions Permalink
  • Dear Jon, 

    Thank you so much, they works perfectly in my lens.


    Sorry for having another question.

    1. Is there anyway allowing user to select a photo from their phone album, and I apply head binding (face detection) on that photo, so I can display object or makeup on the face of the photo? The photo will occupy the full screen.

    Since I saw someone able to make a lens allowing user to select a photo from their phone album and put it in the AR world.


    2. Is there any way I can detect 2 people's face characteristics and generate how their baby may looks like according to their eye, mouth shape etc?


    3. Is it possible to help a 60 years old lady looks like she is 25 years old? I have used face stretch, face paint, face retouch, post effect etc already.

    But I'm thinking of simply extracting her eye, mouth characteristics and change to a beautiful new face.


    Thank you so much for your help :) You are really professional!





    Comment actions Permalink

We're here to help! We just need a little bit of information...

What system are you using?

Have you downloaded the latest version of Lens Studio?

Please download the latest version of Lens Studio. If you still run into this issue, please come back and report it!

Is this issue causing Lens Studio to crash?

What system do you run Lens Studio on?



Follow the next steps to help us solve your issue:

  • Copy and paste this text into your TerminalCommand Window
    open ~/Library/Preferences/Snap/Lens\ Studio/ %LOCALAPPDATA%\Snap\Lens Studio Copy Text
  • Press ReturnEnter to run the command. The Lens Studio folder will automatically open
  • Prepare to upload your files: zip the "Log" Folder by right-clicking and choosing "compress."
    Locate the Log.txt file right above it.

    Attach a screenshot of the issue:



What is this most relevant to?

Please enter a brief description of your issue:

Thanks for submitting this issue.

Unfortunately, it's likely due to the operating system or hardware you're using – since they don't meet the system requirements for Lens Studio.

Still, we hear you loud and clear, and are logging the issue in case there's ever a workaround we can provide!

Minimum Requirements

Operating System: Windows 10 (64 bit); MacOS 10.11+

Hardware: Minimum of Intel Core i3 2.5Ghz or AMD Phenom II 2.6Ghz with 4 GB RAM; Intel HD Graphics 4000 / Nvidia GeForce 710 / AMD Radeon HD 6450 or better; screen resolution of 1280x768 or higher

We'll try to resolve this issue as soon as possible. Thanks for letting us know about it!

Keep an eye out for a followup email from us. We may have a couple more questions for you, or we might already have a solution to offer.

Happy creating!