We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Setting a variable on load based on site button.

Home Forums General Questions Setting a variable on load based on site button.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #73453
    rainman
    Customer

    Hello Yuri, I have a product viewer with multiple products that load in the same .gltf. On loading they are all hidden except the first on in the list. The user can then cycle through them using buttons in the app. Is it possible to set a variable in the app on load so that the app loads to a different product depending on what button on the site they pressed? In my use case the site will have still image renders for each product and a button next to each (view in 3d). My goal is to use the same app for all products and simply open to the specific unit. The alternative would be to have a separate app for each product but there are hundreds of products.

    • This topic was modified 6 months, 1 week ago by wpadm.
    • This topic was modified 6 months, 1 week ago by wpadm.
    #73456
    rainman
    Customer

    Good morning again Yuri, I have one more question. Is the Verge 3D network intended for demonstration only to show the app you are building or can it be used to host the app for actual use. Can my clients site simply use the link that is provided after publishing for integration into their site.

    #73710
    kdv
    Participant

    Use URLs with parameters (Google knows). Read parameters with puzzles and set your variable accordingly. In “Custom image” demo you can find how to read parameters from URLs.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.