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 can i limit the amount of clones? HELP

Home Forums Puzzles How can i limit the amount of clones? HELP

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #64802
    mtanous88
    Customer

    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.
    #64804
    kdv
    Participant

    Remove clones before creating the new ones. Or do not create the new clone if it already exists (prefered).

    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.

    #64805
    mtanous88
    Customer

    How can i remove it first? Is there any puzzle that does things in order?
    1st) remove clones
    2nd) clone and position xyz?

    Thank you

    #64806
    xeon
    Customer

    There 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.com

    #64807
    kdv
    Participant

    Discover 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. 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.

    #64814
    xeon
    Customer

    “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

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