Forum Replies Created
-
AuthorPosts
-
mrgnaParticipant
Sorry, Im not very good at coding so I don’t really know how to explain the issue
From the javascript I have written, I push the object name into an array when someone clicks on the div to set it as either “Measure Object 1” or “Measure Object 2”. From there I am hoping to use the string in that array to reference to an object in the scene.
I have attached some photos of the green div buttons I am talking about clicking, and a snippet of my code so you can see how I am moving the info around. Im clearly doing something wrong as my output is always text
But even with all this, since the array has the correct text (the previously printed console text)- shouldn’t it work anyways when I try to refer to an object by the array? I feel like I am missing something very obvious
Sigh… I was missing something stupid.
Nevermind, ignore all of this please.
mrgnaParticipantSorry, Im not very good at coding so I don’t really know how to explain the issue
From the javascript I have written, I push the object name into an array when someone clicks on the div to set it as either “Measure Object 1” or “Measure Object 2”. From there I am hoping to use the string in that array to reference to an object in the scene.
I have attached some photos of the green div buttons I am talking about clicking, and a snippet of my code so you can see how I am moving the info around. Im clearly doing something wrong as my output is always text
But even with all this, since the array has the correct text (the previously printed console text)- shouldn’t it work anyways when I try to refer to an object by the array? I feel like I am missing something very obvious
- This reply was modified 8 months, 2 weeks ago by mrgna.
- This reply was modified 8 months, 2 weeks ago by mrgna.
Attachments:
You must be logged in to view attached files.mrgnaParticipantmrgnaParticipantCan someone please help me understand why this is not working correctly? I have linked the puzzle I am using, as well as the output.
I am using javascript to get the names of the objects that are being used in the pictured example… But how do I get a numerical output instead of just text?
Attachments:
You must be logged in to view attached files.2024-02-14 at 6:08 pm in reply to: How can I list out all of the collections/groups in a scene? #70647mrgnaParticipantThank you very much! I wasn’t anticipating having to use Javascript for this, so I was going crazy looking around in the menus for something
I’ll have to brush up on JS.
-
AuthorPosts