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.

appending objects from csv file

Home Forums Puzzles appending objects from csv file

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #55051
    catherinej
    Participant

    Hi,
    I’m trying to get file names from a csv file. In a csv file I have the scene file and the object name. I want to randomly choose one row and get the scene file name (.gltf) and the object name. When I input the fields manually I can append the files no problem. But when I attempt to get the data from a csv file using variables it doesn’t work. Probably because I am doing it wrong.

    How can I make it work?

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

    First, print to the browser console the variable Sofa Table to see what you’ve imported. Just print to the console the results af your actions to see what’s wrong…

    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.

    #55064
    catherinej
    Participant

    Thank you!! I made it work if I just want to import a random row.
    Do you know how to read all the rows, create a new list of the rows where a certain value is present and choose a random row among those?

    I’ve tried to create sub list & create a loop. But the only thing that happens is it says “true” or “false” in the console if that value is present. But how do I make a list of all the “true”?

    #55066
    kdv
    Participant

    Something like that )))

    Preparing a list of objects with different sets of properties

    Searching objects with predefined properties (one or more)

    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 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.