- This topic has 21 replies, 2 voices, and was last updated 10 months, 1 week ago by kdv.
-
AuthorPosts
-
2024-01-11 at 8:31 pm #69623alissaParticipant
Hey, I habe a weird problem with hiding my objects when clicked on a html button. The button “delete-ground 1” is revealed by hovering over a dropdown menu icon. It should remove all cloned objects in one list (which works) and also hide my main object, but it doesn’t hide it.
When I let another button (that is not revealed by hover) hide my object it works fine. Does anyone have a solution for this or knows if the hover interaction I did in webflow is interfering with hiding my object?Attachments:
You must be logged in to view attached files.2024-01-11 at 8:55 pm #69627kdvParticipantclonedMesh + 1
? What do you expect to get when summing a string value (the last clone’s name) and a numeric value?Puzzles and JS coding. 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 the meaning at all.
2024-01-12 at 9:52 am #69630alissaParticipantBut my main problem is that it doesn’t hide the initial object. It just removes all clones. When I tried the same thing with another button that has no hover effect assigned in Webflow it removed all clones and deleted the main object. Do you know why?
Don’t I need the numeric value? It works with removing the clones one by one.
And why do I set an empty list?Thank you for your help!
2024-01-12 at 8:16 pm #69633kdvParticipantAnd why do I set an empty list?
To nullify the variable after deleting clones.
Puzzles and JS coding. 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 the meaning at all.
2024-01-13 at 12:04 am #69635alissaParticipantOkay thank you. But does anyone know why my button for hiding my object doesn’t work? Can’t figure it out.
2024-01-13 at 12:06 am #69636kdvParticipantNobody knows untill you show your working app.
Puzzles and JS coding. 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 the meaning at all.
2024-01-13 at 12:16 am #69637alissaParticipantI’m sorry can you tell me how I can share it here? b´Because if I upload the html file my interface (therefore also the button) will not be there.
2024-01-13 at 12:48 am #69638alissaParticipantActually I wouldn’t need the button, if I can delete any of my objects with a shortcut. Right now I have something wrong with my logic and maybe you can take a look. At the moment they get deleted when I click on them after pressing the shortcut but I want to delete an object when pressing delete on the keyboard.
Attachments:
You must be logged in to view attached files.2024-01-13 at 12:54 am #69640kdvParticipanthow I can share it here?
Export your page in Webflow and put the exported files into the app’s folder. After that you can work with your app locally and can upload the working app to the Verge network.
This will remove the last picked object when the
Delete
key is pressed
Puzzles and JS coding. 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 the meaning at all.
2024-01-13 at 8:16 am #69644alissaParticipantIndex html: https://v3d.net/rd0
html file of my project name ( “tryyy”): https://v3d.net/r53Sadly the puzzle combination you send doesn’t work for deleting my objects. Could you take a look, if you can see what the problem is?
2024-01-13 at 8:30 am #69645kdvParticipantYou’d better zip your app folder and upload it to the Google Drive. It’s to big to load and test it via the Internet
Sadly the puzzle combination you send doesn’t work
After these words you should show YOUR puzzles. Nobody knows your logic
And disable OIT in your project. Or do not use it with HiDPI Rendering. Always test your app with the browser console open to see errors and warnings. Your are a blind coder without debugging.
Puzzles and JS coding. 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 the meaning at all.
2024-01-13 at 1:13 pm #69646alissaParticipantI uploaded it to Drive : https://drive.google.com/file/d/1JN-tE0yPmLi-xc882qgPqKgqrwtT-NL7/view?usp=share_link
I am still learning to use Verge3d, so I appreciate your help on this.2024-01-14 at 6:44 am #69655kdvParticipantThe button “delete-ground 1” is revealed by hovering over a dropdown menu icon. It should remove all cloned objects in one list (which works) and also hide my main object, but it doesn’t hide it.
The reason is very simple: you draw
+
,-
andx
over the main button. Clicking on the main button shows the initial object. When you click onx
(it will hide the object) you also click on the main button (it will show the object). As a workaround you can use a zero delay.And there is no need to use so many variables as
clonedMesh2
,clonedMesh3
etc. You can re-useclonedMesh
as many times as needed. It’s just an auxiliary variable.Puzzles and JS coding. 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 the meaning at all.
2024-01-14 at 7:52 am #69663kdvParticipant2024-01-14 at 1:27 pm #69667kdvParticipantToo many changes to be made. Take this modified logic (the first four ground buttons) and do the same way for other buttons.
Attachments:
You must be logged in to view attached files.Puzzles and JS coding. 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 the meaning at all.
-
AuthorPosts
- You must be logged in to reply to this topic.