Bitmoji Scene

Adds your animated Bitmoji to the Lens, with up to six in total including your friends. Say what each one wears and how it moves, for example a friend dancing in a red dress.

Bitmoji & Friends

Bring Bitmoji avatars, friends, and social moments into your Lens.

Made with this block

Inputs

layoutint

The pre-set positioning of the bitmojis on the screen. this is an int with values from 0 to 11. this is also called the basic positioning or starting points of the bitmojis. Here are the valid options for layout:

10 values
0
Single Bitmoji - a single bitmoji standing in the screen.
1
Side by side - exactly two bitmojis are positioned frontal to camera in a line with a medium size gap between them. Back to back : 2 - two bitmojis are positioned back to back in a small gap between. both turn their side to the camera.
3
Facing each other - two bitmojis facing one in from of another, medium size gap. both turn their side to the camera.
4
In front of each other - one bitmoji is in the front and the other is behind it. medium size gap. frontal to camera.
5
Wide line - all bimojis are standing frontal to camera in a line side by side. small gap between each one.
6
Behind main - first bitmoji is close to the camera and the rest are behind in a medium gap .the bitmomji in a line. all are frontal to camera.
7
Semi circle out - an arrow shape made of bitmojis, all frontal to camera. the head of the arrow is in the front of the screen.
8
Semi circle in - an inverted arrow shape made of bitmojis, all frontal to camera. the head of the arrow is in the front of the screen.
10
Circle out - a circle of bitmojis, facing to the center of the circle.
11
Circle in - a circle of bitmojis, facing the opposite from the center of the screen.
bitmoji1Enabledboolean

Determines if the first bitmoji is enabled.

bitmoji2Enabledboolean

Determines if the second bitmoji is enabled.

bitmoji3Enabledboolean

Determines if the third bitmoji is enabled

bitmoji4Enabledboolean

Determines if the fourth bitmoji is enabled.

bitmoji5Enabledboolean

Determines if the fifth bitmoji is enabled.

bitmoji6Enabledboolean

Determines if the sixth bitmoji is enabled

bitmoji1Typeint

The first bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.

bitmoji2Typeint

The second bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.

bitmoji3Typeint

The third bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.

bitmoji4Typeint

The fourth bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.

bitmoji5Typeint

The fifth bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.

bitmoji6Typeint

The sixth bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.

bitmoji1FacialExpressionstring

The bitmoji facial expression, only these allowed options are: amused, angry, confused, crying, curious, happy, idle, laughing, sad, scared. You MUST pick one of these or it will cause an error of missing facial expression.

bitmoji2FacialExpressionstring

The bitmoji facial expression, only these allowed options are: amused, angry, confused, crying, curious, happy, idle, laughing, sad, scared. You MUST pick one of these or it will cause an error of missing facial expression.

bitmoji3FacialExpressionstring

The bitmoji facial expression, only these allowed options are: amused, angry, confused, crying, curious, happy, idle, laughing, sad, scared. You MUST pick one of these or it will cause an error of missing facial expression.

bitmoji4FacialExpressionstring

The bitmoji facial expression, only these allowed options are: amused, angry, confused, crying, curious, happy, idle, laughing, sad, scared. You MUST pick one of these or it will cause an error of missing facial expression.

bitmoji5FacialExpressionstring

The bitmoji facial expression, only these allowed options are: amused, angry, confused, crying, curious, happy, idle, laughing, sad, scared. You MUST pick one of these or it will cause an error of missing facial expression.

bitmoji6FacialExpressionstring

The bitmoji facial expression, only these allowed options are: amused, angry, confused, crying, curious, happy, idle, laughing, sad, scared. You MUST pick one of these or it will cause an error of missing facial expression.

bitmoji1Animationfbx

The animation of the bitmoji avatar. This can also be called as the motion or movement of the bitmoji. The bitmoji must have an animation.

bitmoji2Animationfbx

The animation of the second bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.

bitmoji3Animationfbx

The animation of the third bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.

bitmoji4Animationfbx

The animation of the fourth bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.

bitmoji5Animationfbx

The animation of the fifth bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.

bitmoji6Animationfbx

The animation of the sixth bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.

bitmoji1OffsetPositionvec2

This is a vec2 of offset [x,y] of the position of the bitmoji. The whole scene is in range of -6 to 6 for x and 0 to 30 for y. When given too small or too large values it will clip them. Use this offset to change the position of a bitmoji in the screen for the existing layout pre-set positioning.

bitmoji2OffsetPositionvec2

This is a vec2 of offset [x,y] of the position of the bitmoji. The whole scene is in range of -6 to 6 for x and 0 to 30 for y. When given too small or too large values it will clip them. Use this offset to change the position of a bitmoji in the screen for the existing layout pre-set positioning.

bitmoji3OffsetPositionvec2

This is a vec2 of offset [x,y] of the position of the bitmoji. The whole scene is in range of -6 to 6 for x and 0 to 30 for y. When given too small or too large values it will clip them. Use this offset to change the position of a bitmoji in the screen for the existing layout pre-set positioning.

bitmoji4OffsetPositionfloat

This is a vec2 of offset [x,y] of the position of the bitmoji. The whole scene is in range of -6 to 6 for x and 0 to 30 for y. When given too small or too large values it will clip them. Use this offset to change the position of a bitmoji in the screen for the existing layout pre-set positioning.

bitmoji5OffsetPositionvec2

This is a vec2 of offset [x,y] of the position of the bitmoji. The whole scene is in range of -6 to 6 for x and 0 to 30 for y. When given too small or too large values it will clip them. Use this offset to change the position of a bitmoji in the screen for the existing layout pre-set positioning.

bitmoji6OffsetPositionfloat

This is a vec2 of offset [x,y] of the position of the bitmoji. The whole scene is in range of -6 to 6 for x and 0 to 30 for y. When given too small or too large values it will clip them. Use this offset to change the position of a bitmoji in the screen for the existing layout pre-set positioning.

bitmoji1OffsetRotationfloat

This is a float of the angle rotation of the bitmoji. The range an angle between 0 to 360. 0 means do nothing. 90 means turn face towards right. 270 means face towards left. Use this rotation to change to where the bitmoji in facing from the given layout pre-set.

bitmoji2OffsetRotationfloat

This is a float of the angle rotation of the bitmoji. The range an angle between 0 to 360. 0 means do nothing. 90 means turn face towards right. 270 means face towards left. Use this rotation to change to where the bitmoji in facing from the given layout pre-set.

bitmoji3OffsetRotationfloat

This is a float of the angle rotation of the bitmoji. The range an angle between 0 to 360. 0 means do nothing. 90 means turn face towards right. 270 means face towards left. Use this rotation to change to where the bitmoji in facing from the given layout pre-set.

bitmoji4OffsetRotationfloat

This is a float of the angle rotation of the bitmoji. The range an angle between 0 to 360. 0 means do nothing. 90 means turn face towards right. 270 means face towards left. Use this rotation to change to where the bitmoji in facing from the given layout pre-set.

bitmoji5OffsetRotationfloat

This is a float of the angle rotation of the bitmoji. The range an angle between 0 to 360. 0 means do nothing. 90 means turn face towards right. 270 means face towards left. Use this rotation to change to where the bitmoji in facing from the given layout pre-set.

bitmoji6OffsetRotationfloat

This is a float of the angle rotation of the bitmoji. The range an angle between 0 to 360. 0 means do nothing. 90 means turn face towards right. 270 means face towards left. Use this rotation to change to where the bitmoji in facing from the given layout pre-set.

topTextureuvMap

The top garment texture

topGarmentIdstring

The top garment id

bottomTextureuvMap

The bottom garment texture

bottomGarmentIdstring

the bottom garment id

logoTexturetexture

Texture of a logo on shirt

logoShirtColorvec3

The back color of the logo shirt

tapToRandomizeFriendsboolean

Determines whether a user can tap to randomize the bitmoji friends. Must be true unless a user explicitly requests it not to be.

bitmoji1OffsetHeightfloat

A float value that controls the vertical offset of the Bitmoji on the screen.

3 values
0
Bitmoji appears centered vertically (middle of the screen on the Y axis).
15
Bitmoji appears near the top of the screen.
-15
Bitmoji appears near the bottom of the screen. Range: typically -15 to 15, where positive values move the Bitmoji up and negative values move it down.
bitmoji2OffsetHeightfloat

A float value that controls the vertical offset of the Bitmoji on the screen.

3 values
0
Bitmoji appears centered vertically (middle of the screen on the Y axis).
15
Bitmoji appears near the top of the screen.
-15
Bitmoji appears near the bottom of the screen. Range: typically -15 to 15, where positive values move the Bitmoji up and negative values move it down.
bitmoji3OffsetHeightfloat

A float value that controls the vertical offset of the Bitmoji on the screen.

3 values
0
Bitmoji appears centered vertically (middle of the screen on the Y axis).
15
Bitmoji appears near the top of the screen.
-15
Bitmoji appears near the bottom of the screen. Range: typically -15 to 15, where positive values move the Bitmoji up and negative values move it down.
bitmoji4OffsetHeightfloat

A float value that controls the vertical offset of the Bitmoji on the screen.

3 values
0
Bitmoji appears centered vertically (middle of the screen on the Y axis).
15
Bitmoji appears near the top of the screen.
-15
Bitmoji appears near the bottom of the screen. Range: typically -15 to 15, where positive values move the Bitmoji up and negative values move it down.
bitmoji5OffsetHeightfloat

A float value that controls the vertical offset of the Bitmoji on the screen.

3 values
0
Bitmoji appears centered vertically (middle of the screen on the Y axis).
15
Bitmoji appears near the top of the screen.
-15
Bitmoji appears near the bottom of the screen. Range: typically -15 to 15, where positive values move the Bitmoji up and negative values move it down.
bitmoji6OffsetHeightfloat

A float value that controls the vertical offset of the Bitmoji on the screen.

3 values
0
Bitmoji appears centered vertically (middle of the screen on the Y axis).
15
Bitmoji appears near the top of the screen.
-15
Bitmoji appears near the bottom of the screen. Range: typically -15 to 15, where positive values move the Bitmoji up and negative values move it down.
bitmoji1OffsetScalefloat

A float value that controls the scale of the Bitmoji. Scale Multiplier 1.0 - Bitmoji appears at its standard size. Values less than 1.0 - make the Bitmoji smaller. Values greater than 1.0 - make the Bitmoji larger. Recommended range: [0.5...3.0]

bitmoji2OffsetScalefloat

A float value that controls the scale of the Bitmoji. Scale Multiplier 1.0 - Bitmoji appears at its standard size. Values less than 1.0 - make the Bitmoji smaller. Values greater than 1.0 - make the Bitmoji larger. Recommended range: [0.5...3.0]

bitmoji3OffsetScalefloat

A float value that controls the scale of the Bitmoji. Scale Multiplier 1.0 - Bitmoji appears at its standard size. Values less than 1.0 - make the Bitmoji smaller. Values greater than 1.0 - make the Bitmoji larger. Recommended range: [0.5...3.0]

bitmoji4OffsetScalefloat

A float value that controls the scale of the Bitmoji. Scale Multiplier 1.0 - Bitmoji appears at its standard size. Values less than 1.0 - make the Bitmoji smaller. Values greater than 1.0 - make the Bitmoji larger. Recommended range: [0.5...3.0]

bitmoji5OffsetScalefloat

A float value that controls the scale of the Bitmoji. Scale Multiplier 1.0 - Bitmoji appears at its standard size. Values less than 1.0 - make the Bitmoji smaller. Values greater than 1.0 - make the Bitmoji larger. Recommended range: [0.5...3.0]

bitmoji6OffsetScalefloat

A float value that controls the scale of the Bitmoji. Scale Multiplier 1.0 - Bitmoji appears at its standard size. Values less than 1.0 - make the Bitmoji smaller. Values greater than 1.0 - make the Bitmoji larger. Recommended range: [0.5...3.0]

enableShadowboolean

Whether to enable shadow under the Bitmoji object

Functions

getBitmojiPosition2Dvec2

gets the 2d screen position of the bitmoji avatar's head. Note: getBitmojiPosition2D returns null if no position is found. So whenever assigning this position to anything, check that it is not null before assigning.