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 use a variable from visual_logic.js?

Home Forums Programming how to use a variable from visual_logic.js?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #52742
    kdv
    Participant

    I want to do the following:
    app.controls = prevControls;
    the problem is that prevControls is created by puzzles
    and of course this doesn’t work
    Function('app', 'v3d', 'VARS', 'PROC', ('app.controls = prevControls;'))(appInstance, v3d, VARS, PROC);

    Verge3D, you should add a new puzzle like Comment puzzle but without comment symbols /* */ to write code directly into visual_logic.js :yes:

    p.s. Solved! VARS.prevControls works :)
    Function('app', 'v3d', 'VARS', 'PROC', ('app.controls = VARS.prevControls;'))(appInstance, v3d, VARS, PROC);

    Puzzles and JS. 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 meaning at all.

    #52768

    Glad you worked it out!

    P.S. I guess you are a Verge3D license owner but your forum email is not found in our registry. Feel free to give us last 4 digits of your license key so that we enable the ‘customer’ badge for your account.

    Chief 3D Verger | LinkedIn | Twitter

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