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.

dbratko

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Change variable value #55880
    dbratko
    Participant

    Thank you for your help.
    Just for those who will need to solve simmilar problem … this is how I did it:

    See picture for puzzles part.

    And in AppName.js I have put this code:

    function B4J2wv(p1) {
    v3d.puzzles.procedures.DoRed(p1);
    }

    This will color object to red which is referenced with name by calling a js function B4J2wv.

    Hope this helps.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Change variable value #55854
    dbratko
    Participant

    Thank you again for your feedback.

    I have done as attached pictures. But still I got error “Uncaught ReferenceError: B4J2wv is not defined in https://cdn.soft8soft.com/… (Line: 1)”

    What am I doing wrong?

    Attachments:
    You must be logged in to view attached files.
    in reply to: Change variable value #55842
    dbratko
    Participant

    Thank you for your feedback.

    Yes, I have already saw this article, and have tried method 3. But when implementing it, this function is not visible in outter scope since functions are declared inside IIFE.
    And what I assume that even if js function would be visible, would it be possible to update value of variable defined trough editor? Would variable be visible to the function (are they on the same scope)?

    Some example would be great for me, as I’m very much new in Verge3D world.

    Thank you for your assistance.

Viewing 3 posts - 1 through 3 (of 3 total)