Skip to main content

3 - Configurator Integration

How to configure the Product Configurator​

They are two ways of configuring the way the Product Configurator is displayed:

User Interface​

This first attribute has some big impact. It chooses if the global User Interface of the configurator is displayed. Only disable this if you want to build your own menus on your website.

The other attributes on this page are sorted in two lists:

warning

If you use the Product Configurator inside the planner, disabling the UI in the application distribution is probably not a good idea. It will hide the menus inside the planner.

Application Distribution[Dev] DOM attributePossible valuesDefault value
userInterfacedata-user-interfaceBooleantrue

Application Distribution example:​

{
"integration": {
"userInterface": true
}
}

Attributes​

Camera settings​

Manages the behavior of the 3D camera through which the scene is rendered.

Application Distribution[Dev] DOM attributePossible valuesDefault value
cameradata-cameraA JSON object with multiple parameters.See the next table.

List of camera parameters​

This is the list of parameters that can be added inside the camera JSON parameter.

Parameter namePossible valuesDefault value
animationDuration[integer] - The duration of the camera animations, in milliseconds. There will be no animation if the value is set to zero.1000
defaultDistance[number] - The default distance at which the camera should be positionned, with regards to the scene size.1.3
defaultHorizontalAngle[integer] - The default camera horizontal angle, ranging between 0 and 360 degrees.0
defaultVerticalAngle[integer] - The default camera vertical angle, ranging between 5 and 90 degrees.15
minDistance[number] - The minimum distance at which the camera can move, with regards to the scene size.0.5
maxDistance[number] - The maximum distance at which the camera can move, with regards to the scene size.3
startupAnimationDuration[integer] - The duration of the first camera animation, in milliseconds. There will be no animation if the value is set to zero.3000

Application Distribution example:​

{
"integration": {
"camera": {
"defaultDistance": "1.1",
"defaultHorizontalAngle": "90"
}
}
}

Locale Name​

This is the language used by the Product Configurator. The value to use here is one of the name of the locales you configured in the Application Distribution.

Application Distribution[Dev] DOM attributePossible valuesDefault value
localeNamedata-locale-nameOne of the name of the locales you configured in the Application Distribution.""

Application Distribution example:​

{
"integration": {
"localeName": "fr-FR"
}
}

Modular Onboarding​

When loading a modular product, the product configurator displays an onboarding message. The goal of this message is to make sure the user knows the products can be selected.

If you do not want to display this message, you can disable it here.

Application Distribution[Dev] DOM attributePossible valuesDefault value
modularOnboardingdata-modular-onboardingBooleantrue

Application Distribution example:​

{
"integration": {
"modularOnboarding": false
}
}

Palette settings​

Defines the colors palette to be used by the application

Application Distribution[Dev] DOM attributePossible valuesDefault value
palettedata-paletteA JSON object with multiple parameters.See the next table.

List of palette parameters​

This is the list of parameters that can be added inside the palette JSON parameter.

The color values are hexadecimal values. Colors having no default value are automatically computed from the primary color. You can start by modifying the primary and secondary color, and only change the other ones if necessary.

Parameter namePossible valuesDefault value
primaryThe application primary color."#005686"
lightPrimaryA lighter variation of the application primary color.Computed from primary
darkPrimaryA darker variation of the application primary color.Computed from primary
contrastThe contrast color matching the application primary color, generally white for dark primary colors or black for light primary colors.Computed from primary
borderContrastThe color matching the contrast color but darker or lighter, for border next to the contrast color for instance.Computed from contrast
secondaryThe application secondary color. Choose a color that can be displayed on a light background, the contrast color is not always displayed behind items using the secondary color."#3d3d3d"
secondaryContrastThe contrast color matching the application secondary color, generally white for dark secondary colors or black for light secondary colors.Computed from secondary
secondaryBorderContrastThe color matching the secondary contrast color but darker or lighter, for border next to the contrast color for instance.Computed from secondaryContrast

Application Distribution example:​

{
"integration": {
"palette": {
"primary": "#de0000",
"secondary": "#073d94"
}
}
}

Screenshots​

The screenshots below show examples of color changes with a red color so it's highly visible.

Red primary color Red primary color

Red secondary color Red primary color

Rendering settings​

Defines the rendering options to be used by the application.

Application Distribution[Dev] DOM attributePossible valuesDefault value
renderingdata-renderingA JSON object with multiple parameters.See the next table.

List of rendering parameters​

This is the list of parameters that can be added inside the rendering JSON parameter.

Parameter namePossible valuesDefault value -
environmentMap[string] - Defines the environment map used for the scene illumination. It can be one of the following values : BASIC_ROOM, PHOTO_STUDIO."PHOTO_STUDIO"
groundShadow[boolean] - Defines if the ground shadow is displayed, or not. The ground shadow makes the product more tangible.true

Environment maps​

The following images illustrate the visual impact of selecting a specific environment map on application rendering.

BASIC_ROOMPHOTO_STUDIO
BASIC_ROOMPHOTO_STUDIO

Application Distribution example:​

{
"integration": {
"rendering": {
"environmentMap": "BASIC_ROOM",
"groundShadow": false
}
}
}

Screenshot resolution​

This is the resolution of the screenshots taken by the configurator.

Application Distribution[Dev] DOM attributePossible valuesDefault value
screenshotResolutiondata-screenshot-resolution"CANVAS": Captured at the canvas resolution.
"SQUARE-512": Captured at a 512x512 pixels resolution.
"SQUARE-1024": Captured at a 1024x1024 pixels resolution.
"SQUARE-1024"

Application Distribution example:​

{
"integration": {
"screenshotResolution": "SQUARE-512"
}
}

Attributes (with UI enabled only)​

Commands (Desktop and mobile)​

The product configurator comes with a set of commands. Each command can be disabled if necessary.

You can modify this "commands" attribute to modify the enabled commands on desktop. If you do not set the "commandsMobile" attribute, the "commands" attribute will be applied on both desktop and mobile. If you set the "commandsMobile" attribute, the "commands" attribute will be used for desktop view only.

Commands​

Application Distribution[Dev] DOM attributePossible valuesDefault value
commandsdata-commandsA JSON object with the value for each command.See the list of commands below.

Commands (mobile)​

Application Distribution[Dev] DOM attributePossible valuesDefault value
commandsMobiledata-commands-mobileA JSON object with the value for each command.See the list of commands below.

List of commands and their values​

All commands are enabled by default. Be careful: some commands are only available on desktop.

Command nameDesktop default valueMobile default value
artruetrue
dimensionstruetrue
resetViewtruetrue
screenshottruetrue
undoRedotruetrue
zoomtrueNOT AVAILABLE

Application Distribution example:​

{
"integration": {
"commands": {
"resetView": "false",
"screenshot": "false"
},
"commandsMobile": {
"ar": "false"
}
}
}

Iconography settings​

Defines the icons and images to be used by the application.

Application Distribution[Dev] DOM attributePossible valuesDefault value
iconographydata-iconographyA JSON object with multiple parameters.See the next table.

List of iconography parameters​

This is the list of parameters that can be added inside the iconography JSON parameter.

You can use base64 images or public urls.

Parameter namePossible valuesDefault value
splashLogoThe image to display as main logo in the application loading screen.
When you use the planner integration, this logo is also displayed in the planner header. πŸ”—
HomeByMe logo.
splashSpinnerThe image to display as secondary logo in the application loading screen.Spinning circle animation.
warning

The loader of the product configurator is displayed as soon as possible. For this reason and to avoid the flashing of content, there are some limitations:

splashLogo

  • In most cases, this will be displayed after a short time (once the connection is established).
  • If you use the standalone product, you can set it as a "DOM" attribute (for developers only). In this case it will be displayed immediately.

splashSpinner

  • This is only taken into account on the standalone product configurator if you set it as a "DOM" attribute (for developers only).
  • If you do not use the standalone product configurator, or it you try to set it in your application distribution, it will not be displayed.

Application Distribution example:​

{
"integration": {
"iconography": {
"splashLogo": "https://your.domain/your_logo.png"
}
}
}

The interface of the configurator can display the configuration menu on the right, or on the left of the 3D model.

Application Distribution[Dev] DOM attributePossible valuesDefault value
menuPositiondata-menu-position"LEFT": The menu is on the left.
"RIGHT": The menu is on the right.
"RIGHT"

Application Distribution example:​

{
"integration": {
"menuPosition": "LEFT"
}
}

Project bar​

The project bar is displayed above the configuration menu, and can contain information or actions on the current configuration.

See the user guide for screenshots. πŸ”—

info

The project bar is always disabled when the configurator is used inside the planner.

Application Distribution[Dev] DOM attributePossible valuesDefault value
projectBarModedata-project-bar-mode"NONE": The project bar is not displayed.
"BASIC_INFO": The project bar displays the product name and price.
"BASIC_INFO_WITH_BUTTON": The project bar displays the product name and price, as well as an action button.
"BASIC_INFO"

Application Distribution example:​

{
"integration": {
"projectBarMode": "NONE"
}
}

Typography settings​

Defines the fonts and associated data to be used by the application.

Application Distribution[Dev] DOM attributePossible valuesDefault value
typographydata-typographyA JSON object with multiple parameters.See the next table.

List of typography parameters​

This is the list of parameters that can be added inside the typography JSON parameter.

Parameter namePossible valuesDefault value
family[string] - The prioritized list of font family names to use in the application.""Montserrat", Helvetica, Arial, sans-serif"
sizeRatio[number] - The size ratio applied on the fonts displayed in the application. A ratio of 1 means no size change, 1.5 means fonts are displayed 50% bigger, whereas 0.5 means fonts are displayed 50% smaller. The ratio value is in the [0.5; 2.0] range.1

Application Distribution example:​

{
"integration": {
"typography": {
"family": "Consolas"
}
}
}