Back to Website
Show / Hide Table of Contents

This section describes an obsolete packaging solution. We recommend using 3D mockups for packaging, which are integrated into the Customer's Canvas cloud.

Viewer

  • Less than a minute to read

The ~/viewer/ endpoint allows you to preview a 3D model of the customized packaging. This preview is implemented in an IFRAME element.

Request type

[GET]

URL

~/viewer/model1=<modelId>

URL Params

  • model1=[string] (model2, and so on, if a box consists of several elements) specifies a 3D model name.
  • (Optional) image1=[string] (image2, and so on, if a box consists of several elements) specifies graphic design generated by the Design Editor. It is applied as a texture to the 3D model.
  • (Optional) hidecontrols=[numeric] specifies the appearance of controls. Set this parameter to 1 to hide controls.

Example call

<body>
    <iframe id="iframe3DPreview" allowfullscreen></iframe>
    ...
</body>
<script>
    ...
    var previewUrl = appUrl + "viewer/?hidecontrols=1&model1=xthxzotk.rkh&image1=http://example.com/api/rendering/GetProofImage/default/f289c933-b758-499a-b0c1-eec202202fed/0_0[1867x2000].jpg";
    $("#iframe3DPreview").attr("src", previewUrl);
<script>
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback