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.

can’t clone a object by text “cube” instead of the relevant selector puzzles

Home Forums Programming can’t clone a object by text “cube” instead of the relevant selector puzzles

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #33312
    zirenjian
    Customer

    i noticed that “text puzzle can also be used to provide names for objects, materials, animations or groups instead of the relevant selector puzzles”
    so “cube” = selector puzzles named cube.
    i made a selector following the “scene_selector” in the “load unload” application. jast like this:
    create text with get attr value from elem “scenme_selector” in parent doc-
    when i clicked the selector,i can get the value of the selector,then i can get the object.
    i can show it,hide it,but can’t clone it

    Attachments:
    You must be logged in to view attached files.
    #33326

    this looks like a bug! thanks for reporting

    as a workaround you can save the object name to a variable and then use with the clone puzzle

    Chief 3D Verger | LinkedIn | Twitter

    #33333
    zirenjian
    Customer

    fisrt,i find that the object i get by clone.it’s status is not stable.sometimes when i click it,i can’t get it’s information,and others i can get it.
    second,when i clone an object i selected and replace the object in the primary position i clicked,the new cloned object’s information can’t show.shoud i save the changed scene firstly?

    #33368

    Hi, we’ll make it available to use text puzzles as an input for the “clone object” puzzle in the next verge3d update. The update is planned to be released within 1 or 2 weeks, stay tuned!

    Co-founder and lead developer at Soft8Soft.

    #33380
    zirenjian
    Customer

    omg, :-(

    #33430
    zirenjian
    Customer

    We are using clone in a project. The customer needs this function. But the time is a little tight, so we need to explain it to the customer. In addition, I have a question: when I write a clone separately in the puzzle, I can get the information of the generated clone object and display it when I click the object. However, in the event of clicking an object, when I click the generated clone object, I can get the information of the generated clone object, Unable to display information,It seems that the new cloned object is not in all projects. can this problem be solved when updating?

    Attachments:
    You must be logged in to view attached files.
    #33445

    Hi,

    what puzzles don’t work as expected?

    Chief 3D Verger | LinkedIn | Twitter

    #33456
    zirenjian
    Customer

    hi,yuri.
    The cloned object can’t get information when clicking. I made a test video, you can have a look
    https://we.tl/t-MAZdKh9yl4

    #33482

    I’ve checked your project. Not sure if this is the reason, but it looks like you are creating 2 clones. You should only use the clone puzzle once, and save the result in a variable, and use this variable for setting the position and rotation.

    Chief 3D Verger | LinkedIn | Twitter

    #33500
    zirenjian
    Customer

    yes,I did create two clone objects. In fact, if I create only one clone object, I still can’t get the corresponding information.But the effect I want to achieve is: when you click any object and select the object you want to replace in the corresponding information bar, you can complete the clone operation and let the cloned object replace the original object. Now it seems that these have been realized, but the cloned object can not display information like the original object. I wonder if there is any problem with my puzzle?

    #33508

    I think the problem is that you assign a ‘when clicked’ puzzle to ‘all objects’, but the clones are not created yet, so ‘all_objects’ puzzle does not contain them. As such, no clicks are registered.

    You might try to assign a new ‘when clicked’ puzzle to the just cloned object.

    Chief 3D Verger | LinkedIn | Twitter

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