3D Viewer
After adding a script tag to your website, methods for creating the 3D Viewer are available through the global object R2U.
#
R2U.viewer.createmobile
desktop
It is method for creates a 3D model viewer at the position of the HTML element indicated, by default expandable via popup
#
Parameter popupEnables and disables the button to open the expandable 3D viewer with the model.
Popup example:
#
Parameter progressBarPositionDefines the position in which the progress bar will be inserted.
#
Parameter progressBarColorSets the color of the progressBarPosition
#
Parameter posterDefine an image on top of the 3D model that will be displayed when loading the model.
#
Change sku R2U.viewer.createThe setSku method updates the product SKU.
SetSku example:
#
R2U.qrCode.createCreates a QRCode that, when scanned, directs the user to the model in AR.