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.

single puzzle to call a JS function w/arguments and accept a return value?

Home Forums Bug Reports and Feature Requests single puzzle to call a JS function w/arguments and accept a return value?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16055
    jem
    Customer

    Soft8soft Team,
    Is there a single puzzle that would allow me to call a JavaScript function with arguments and accept a return value? We currently have a puzzle that will call and pass arguments to a function in the external interface. We have a separate puzzle that will accept a call and arguments from a function in the external interface. I use both of these together when I need to call JavaScript from the puzzles and receive a return value. It is not an elegant way to write code. In my opinion, it would be convenient if we had a single puzzle that could call a function and receive a return value. This puzzle would be like the “call JS function” but it would be an output style block rather than a previous-next style block. I Photoshopped an image to explain what I am trying to describe. This block would not replace the current “call JS function” puzzle. What do you think?
    Thanks!

    Jeremy Wernick

    #16057
    elk
    Customer

    I second this suggestion, I do the same “round trip” when i need to pass a value back, so a puzzle like this would be very useful, everything that makes the puzzles less “verbose” is very welcome in my opinion.

    #16058
    scalare
    Customer

    Me too! :)

    #16064

    Nice suggestion! Added a task to our dev tracker.

    Chief 3D Verger | LinkedIn | Twitter

    #17024
    jem
    Customer

    Hi Soft8soft team,
    I see that this new JavaScript puzzle was added to Verge3D 2.13. Thank you very much. I tested it this morning and it works as I expect. This puzzle enabled me to eliminate some very strange JavaScript code and puzzles. I think that my puzzles and code are is much easier to understand now. Thanks!

    Jeremy Wernick

    #17029

    Glad it helped! :good:

    Chief 3D Verger | LinkedIn | Twitter

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