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.

How to get value of javascript variable

Home Forums General Questions How to get value of javascript variable

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #85747
    novator83
    Customer

    Hi all.

    I don’t find solution on forums or under help on how to put together puzzles which gets value of variable (URLid) that was coded in exec script (see below)?

    `const urlParams = new URLSearchParams(window.parent.location.search);
    const URLid = urlParams.get(‘id’);

    #85891

    Hi,
    Sorry for the late reply, your post mistakenly got into the spam. To retrieve values from the “exec script” puzzle you simply create a variable in Puzzles and then assign it via the VARS object as follows:

    assign variable from the exec script puzzle

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #85926
    novator83
    Customer

    Thank You Alexander and all best in new year!

    Multi-material index problem:
    I don’t know if it is proper forum section but, I get error in console if I want to assign some (sub)materials from multi/sub-object material to other objects with certain material IDs set in 3ds max.
    I get error: “assign material puzzle: Invalid material index 2”.

    “All objects” selector probably doesn’t work with that puzzle (see in attachment)?

    • This reply was modified 1 month, 3 weeks ago by novator83.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.