Skip to main content
Version: 4.55.1

Shoulder

Prior to Lens Studio 2.1, the Shoulder template was called the Body Template.

The Shoulder template lets you create Lenses that adds images to an upper body found in the camera. The detection for shoulder works at medium to far distances. The Shoulder template uses body tracking to allow you to attach content to the center of the body and the left and right shoulders.

Unlike Upper Body Tracking, Shoulder tracking also works on an upper body close to the camera (like in a front camera selfie experience). If you do not need to attach your content to the arm joints, use this template instead of the Skeletal template. Take a look at the Object Tracking guide for more information.

Video Walkthrough

Template Walkthrough

Switch Preview Video

When working with the Shoulder Template, you'll want to switch the preview video to one with a body. In the Preview panel, press the Image / Video Mode button. Then, in the drop down at the top of the Preview panel, select the Body preview video. You should now see the template working with content applied to the upper body and shoulders. You can also switch to Webcam in the Preview panel and see the content attached to your own upper body.

Add Resource

For the Shoulder template, we should first import a 2D texture or animation into the Resources panel. To do this, drag and drop a PNG, JPG or GIF into the Resources panel from your computer.

Configure Shoulder Tracking Controller

With the ShoulderTrackingControler [EDIT_ME] object selected in the Objects panel, we'll configure its settings in the Inspector panel. The Shoulder template allows you to configure the image attached to the Right Shoulder, Left Shoulder and Center of the upper body. All are tuned in the same way. When tuning Left Shoulder, for example, you can enable or disable the feature with the Left Shoulder checkbox. When enabled, you can assign a custom texture that was imported into the Resources panel to the Left Shoulder texture field. Finally, you can adjust the Size, Offset, Rotation and Alpha of the content with the corresponding sliders.

Adding Body Tracking Outside of Template

While the Shoulder template gives you a simple way to add 2D images and animation to the tracked points, you can also always add Body tracking outside of the template. To do this, select + -> Object Tracking -> Body``Tracking from the Objects panel. You can then edit the position, scale and rotation of the added element in the 2D scene.

Object Tracking and 3D Objects

It is possible to attach 3D Objects to Object Tracking by adding a helper script. Please refer to the Object Tracking & 3D Objects section of the Object Tracking guide for more information.

Submitting Your Lens

You’re now ready to submit your Lens! Follow the guides below:

Was this page helpful?
Yes
No