Craftmaster

Menu






Data & 3D Embed

Integration demo

3D viewer embed

One script tag puts a style's 3D model on your page with its fabric, leather, finish and nail options. Your JavaScript sets the shopper's picks and reads the finished selection back. This page is a working example of both.

1 Embed it

Drop one tag where the viewer should appear. It sizes itself to your container.

<script src=".../embed.js" data-style="002910bd" data-api-key="YOUR-KEY" defer></script>

2 Drive it

Set the shopper's choices by option group and swatch title, at any time.

await CraftmasterEmbed.setOption('Body', 'Nomad-10'); await CraftmasterEmbed.reset();

3 Read it back

Get the active selection whenever it changes, with the grade on every swatch.

CraftmasterEmbed.on('change', ({ build }) => { console.log(build.options); // group, selection, grade });
Live cross-origin embed of 002910BD. Use it directly, or drive it from the controls below.

Waiting for the viewer to report ready…

Option groups

setOption()

Loading the catalog…

The whole selection

setOptions() · reset()

Apply a set in one call setOptions({ group: title }) — rejects the whole map if any title is unknown

Share URL getShareUrl() — the canonical style page, your API key stripped

Selected options

getBuild().options

Group Selection Grade Source
Waiting for the viewer…
Style 002910BD Groups Selected Legs

Live payload

getBuild()

// waiting for the first change event…

Build your tag

copy this into your page

Starting height data-height — the viewer auto-sizes after load
Open on
Swatch data-options

      

Every control on this page goes through window.CraftmasterEmbed. Nothing here reaches into the iframe, so anything that works here works from your own domain. The sectional builder has its own demo: the configurator embed →

On Instagram

Fresh from our feed

Follow Us