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.

Naming cloned objects and removing them

Home Forums Programming Naming cloned objects and removing them

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #69456
    pencilben
    Participant

    I have a configurator where the number of clones is user defined. Im looking for a way to have an ‘undo’ button or a ‘clear all’ button. I am under the impression i need to name or list the clones made and use the ‘remove object’ puzzle to delete the clones only. Im new to this and have tried many different combinations of puzzles and looked tirelessly on the forums to help but i cant seem to make it work.
    Ive attatched an image of a few of the puzzles that i think may help? Any help is much appreciated!

    #69465
    kdv
    Participant

    just save names of cloned objects to a list and then you can remove them all using this list.

    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.

    #69551
    pencilben
    Participant

    Thats what im struggling to do im not totaly sure how to save it as a variable and input it into a list

    #69557
    kdv
    Participant

    As an example:

    Create clones

    Remove added clones

    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.

    #69568
    pencilben
    Participant

    Thank you for the help.

    Ive used these puzzles as shown and I cant get it to work. Do I need a separate set of lists for every object that may get cloned? As in another set of puzzles as shown above but with a different object selected where ‘Cube.001’ is selected? And also using it as shown above, I’m running into the issue of a button not working where when pressed makes 2 types of the cloned objects.

    #69575
    kdv
    Participant

    and I cant get it to work.

    At least you should show your puzzles. Without them your questions have no answers…

    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.

    #69581
    pencilben
    Participant

    Apologies

    The first image is what youve shown me to do. Just with one type of cloned object in place of ‘Cube.001’ and ‘clonedObjects’ variable instead of ‘all_cloned_objects’.

    Basically, the app is a configurator for the floor plan of a modular timber building consisting of front panels, back panels, side panels and partitions.

    The second image is of the set of puzzles im using for the user to be able add a type of front panel to their building. These puzzles are duplicated for two other types of front panels.

    The third image is of a set of puzzles used for the user to be able to pick how many buildings they would like by making clones of the back panel and partition.

    The forth image is of the app for reference.

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

    Look at the first puzzles set, uderstand it and do the same way in the second and the third ones. For now your puzzles just clone objects without saving their names.

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