- This topic has 5 replies, 3 voices, and was last updated 1 year, 6 months ago by xeon.
-
AuthorPosts
-
2023-06-22 at 9:34 pm #64802mtanous88Customer
Im creating a fridge configurator that allows you to visualize up to 3 fridges as the last step
My question is, once i have the fridge ready, how can i limit the amount of fridges when they click 2 or 3 fridges?
It works well with the puzzle i have, but if the user first clicks 2 and then 3, or viceverse, 3 and then 2, it generates more clones and i cant remove them from the scene when the user clicks “1” or goes back to the configurator.
Attachments:
You must be logged in to view attached files.2023-06-22 at 10:08 pm #64804kdvParticipantRemove clones before creating the new ones. Or do not create the new clone if it already exists (prefered).
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.
2023-06-22 at 11:48 pm #64805mtanous88CustomerHow can i remove it first? Is there any puzzle that does things in order?
1st) remove clones
2nd) clone and position xyz?Thank you
2023-06-23 at 1:26 am #64806xeonCustomerThere is a “remove object” puzzle that will do the trick.
Depending on the project workflow you may want to just setup your scene with the model and its clones…and then hide and unhide objects until the users is done clicking away like a mad man.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2023-06-23 at 1:30 am #64807kdvParticipantDiscover the magic of the non-linear logic…
Remove before cloning if exists
Do not clone if already exists
Is there any puzzle that does things in order
It’s you
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.
2023-06-23 at 5:30 am #64814xeonCustomer“You” is the best answer. Since you are a “Customer” you are obviously committed to using V3D and it takes a bit of getting used to especially if for those that don’t have a programming or graphic background. To complete a product configurator you are going to run into issues far more complicated than your current ask. If you are skilled in HTML, JS and CSS then this will be a quick fix for you. If not, and this is a commercial project, you may want to seek out someone on this forum that can help you complete your project. There are many on here willing to do that. If this is a personal project, then I would strongly recommend going through the demo examples that come with v3d to understand the logic used in them.
I am not trying to deter you from asking questions on the forum I am only trying to get you further down the road in a meaningful way.”
There are no puzzles related to doing things in order. However, there are puzzles that provide “logic”, If else, and true/false would be a big help. if object 1 is true and Object2 is false and Object 3 is false…then do xyz, if object 1 is true and object 2 is true and object 3 is false…do something else….etc. This is one of many ways this could be done. You could use lists, or variables, or you could just do it in JS.
The problem with giving coding advice for a project like you are doing is that the way to approach the problem is unique to the existing code and the ultimate functionality that only you have. There are too many ways to do what you are asking and without knowing the entire picture and I could easily send you down a path that might be the ultimate bad choice.
As an example you might have the requirement that your configurator work on mobile devices….and we create a piece of code that would only work well for desktops. Yes, memory management is a thing too…so..ya….its sort of in your hands to figure out.
Happy to give some advice and point you in a direction but without knowing all your project details….its sort of a tough situation.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com -
AuthorPosts
- You must be logged in to reply to this topic.