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 do get JSON data from active object?

Home Forums Puzzles How to do get JSON data from active object?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #71277
    mashud008
    Customer

    Hi everyone’
    I have been trying to do this for a long time, but I can’t get the data from the active object. That is, when the objects are active and displayed on the screen, how can I get information from that object?
    Tried working on different puzzles but just can’t seem to get it to work. Currently what is happening is if I show only the objects it only collects the data for those objects.

    source file

    pick object

    Attachments:
    You must be logged in to view attached files.
    #71280
    kdv
    Participant

    how can I get information from that object?

    What kind of information do you want to get? Just material names?

    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.

    #71282
    mashud008
    Customer

    Amazing :yahoo: , it’s working great. really thank you KDV :rose:
    is it possible to get more information from this object? like price, size, colors etc

    #71285
    kdv
    Participant

    It’s possible to get any property of any object.

    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.

    #71289
    mashud008
    Customer

    Thanks for your valuable comment. another ask, can you please setup puzzle for
    the downloaded json file can be send by email.
    Actually when I’ll click “save and send” the json file will send by email.

    #71290
    kdv
    Participant

    Nope. Verge3D doesn’t provide mailing service. No puzzles, no SMTP server. You’ll have to integrate your app with your own mail server.

    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.

    #71296
    mashud008
    Customer

    Maybe I understand to some extent. Is there any way to send to the json file email that will send it automatically when user submit there mail?

    #71543

    Hi kdv,

    I saw your reply regarding extracting information from an object and will give your suggestion that you created for mashud00 a go. I posted a message a month ago but did not get any replies. In a nutshell my project is an interactive demo for a software based app that manipulates midi data. There are a total of 32 preset DSP amplifier setups and I’m using a set for 9 knobs to shared between the 32 presets. Every is working fine but I need to be able to store and changes made to those knobs individually by preset. I’ve made some headway with using dictionary functions but I need to write those changes back to a file for persistence sake. As mentioned I’ll try to use the info that you posted to see where I end up. I see that you have a gumroad store so perhaps my question is beyond my purview. The actual midi code is also suffering from the same problem which is writing or storing changed global variables.

    I’ll attach an image of the amp face and related control knobs for what it’s worth.

    Attachments:
    You must be logged in to view attached files.
    #71545
    kdv
    Participant

    I posted a message a month ago but did not get any replies.

    I suppose there was not enough info to give some answer :unsure:

    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.

    #71574

    Hello there kdv,

    As per my message yesterday if anything I feel like I’m too verbose. I came upbwith a rather crude workaround based on linked objects.
    As far as using the dictionary function I am able to use “set key” to store the information I need and then use “get key” to restore the data. The problem that I’m encountering is with the “get key” command. If I try to execute it using a procedure that is associated with the button that contains the parameter I’m trying to update it essentially locks the object and does nothing. If I execute the “get key” using an “on-click” event from a non related object it works like a charm. I only guessing due to my lack of knowledge but is the non working issue have anything to do with the “read from” and “update to” fields being the same?

    If there are some general “rules of thumb” regarding the use of the dictionary function I’d be more that happy to listen.

    Thanks again for taking the time for your reply. As I mentioned I have come up with a crude work around but I’m always eager to learn something new.

    #71580
    kdv
    Participant

    Many words, no puzzles to analyze :unsure:

    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.

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