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.
Bring Bitmoji avatars, friends, and social moments into your Lens.
Made with this blockInputs
layoutintThe 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.
bitmoji1EnabledbooleanDetermines if the first bitmoji is enabled.
bitmoji2EnabledbooleanDetermines if the second bitmoji is enabled.
bitmoji3EnabledbooleanDetermines if the third bitmoji is enabled
bitmoji4EnabledbooleanDetermines if the fourth bitmoji is enabled.
bitmoji5EnabledbooleanDetermines if the fifth bitmoji is enabled.
bitmoji6EnabledbooleanDetermines if the sixth bitmoji is enabled
bitmoji1TypeintThe first bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.
bitmoji2TypeintThe second bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.
bitmoji3TypeintThe third bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.
bitmoji4TypeintThe fourth bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.
bitmoji5TypeintThe fifth bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.
bitmoji6TypeintThe sixth bitmoji's avatar type. An integer representing a bitmoji type where 0 = You and 1 = Your friend.
bitmoji1FacialExpressionstringThe 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.
bitmoji2FacialExpressionstringThe 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.
bitmoji3FacialExpressionstringThe 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.
bitmoji4FacialExpressionstringThe 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.
bitmoji5FacialExpressionstringThe 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.
bitmoji6FacialExpressionstringThe 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.
bitmoji1AnimationfbxThe animation of the bitmoji avatar. This can also be called as the motion or movement of the bitmoji. The bitmoji must have an animation.
bitmoji2AnimationfbxThe animation of the second bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.
bitmoji3AnimationfbxThe animation of the third bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.
bitmoji4AnimationfbxThe animation of the fourth bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.
bitmoji5AnimationfbxThe animation of the fifth bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.
bitmoji6AnimationfbxThe animation of the sixth bitmoji avatar. Every bitmoji must have an animation, but the same animation may be shared between Bitmojis.
bitmoji1OffsetPositionvec2This 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.
bitmoji2OffsetPositionvec2This 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.
bitmoji3OffsetPositionvec2This 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.
bitmoji4OffsetPositionfloatThis 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.
bitmoji5OffsetPositionvec2This 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.
bitmoji6OffsetPositionfloatThis 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.
bitmoji1OffsetRotationfloatThis 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.
bitmoji2OffsetRotationfloatThis 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.
bitmoji3OffsetRotationfloatThis 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.
bitmoji4OffsetRotationfloatThis 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.
bitmoji5OffsetRotationfloatThis 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.
bitmoji6OffsetRotationfloatThis 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.
topTextureuvMapThe top garment texture
topGarmentIdstringThe top garment id
bottomTextureuvMapThe bottom garment texture
bottomGarmentIdstringthe bottom garment id
logoTexturetextureTexture of a logo on shirt
logoShirtColorvec3The back color of the logo shirt
tapToRandomizeFriendsbooleanDetermines whether a user can tap to randomize the bitmoji friends. Must be true unless a user explicitly requests it not to be.
bitmoji1OffsetHeightfloatA 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.
bitmoji2OffsetHeightfloatA 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.
bitmoji3OffsetHeightfloatA 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.
bitmoji4OffsetHeightfloatA 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.
bitmoji5OffsetHeightfloatA 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.
bitmoji6OffsetHeightfloatA 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.
bitmoji1OffsetScalefloatA 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]
bitmoji2OffsetScalefloatA 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]
bitmoji3OffsetScalefloatA 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]
bitmoji4OffsetScalefloatA 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]
bitmoji5OffsetScalefloatA 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]
bitmoji6OffsetScalefloatA 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]
enableShadowbooleanWhether to enable shadow under the Bitmoji object
Functions
getBitmojiPosition2Dvec2gets 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.
More in Bitmoji & Friends
- Bitmoji Animation StoreKeeps up to five Bitmoji moves ready, so your Bitmoji character can play them by name. Ask for the moves you want, for example wave, dance or jump.
- Bitmoji CharacterAdds your Bitmoji as a character you can move around in a game. It walks, runs and jumps, and it bumps into things in the scene.
- Bitmoji HeadPuts a Bitmoji head on your face, and it copies your expressions in real time. Choose your own Bitmoji or a friend's, and how big the head is.
- Bitmoji Sticker StoreLoads 2D Bitmoji stickers of you and your friends, so the Lens can show them. Name the poses you want, for example a thumbs up or a laughing Bitmoji.
- Generative Bitmoji AnimationMakes your Bitmoji move with an animation you describe, or copies the movement from a video you give it. Only the movement carries over, not clothes or props.
- List of FriendsBrings your friends and their Bitmoji into the Lens, so a friend can appear on screen. Choose which friends: all of them, your best friends, or a random one.
