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.

Puzzles-check which Scene-Item is visible

Home Forums Puzzles Puzzles-check which Scene-Item is visible

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4682
    3dmdlb
    Customer

    Hi,
    i want to blend in measurements for objects via a klick on a Button.
    There are two different objects, so there are also two measurements.
    How can i tell Puzzles to check first which object is visible in the moment and then show the right measurement after press the button?

    #4689

    Hi,
    i want to blend in measurements for objects via a klick on a Button.
    There are two different objects, so there are also two measurements.
    How can i tell Puzzles to check first which object is visible in the moment and then show the right measurement after press the button?

    You need to create a specific viriables, for example, first_object_visible=1, second_object_visible=1 and if you will hide one of them you will need to write 0 to one of the viriable’s value and then create logic like “If first_object_visible=0 then do”… and so on.

    Co-founder and lead graphics specialist at Soft8Soft.

    #4698
    3dmdlb
    Customer

    Hi Mikhail, thanks for your reply.
    I tried to follow your instructions, but unfortunately it’s not working the way i do it. It doesn’t matter which object is in the scene (sitzschale or sitzpolster), after pressing the button (id-dimensions) always “masse-sitzschale” is shown. Where is my mistake?

    #4704

    Please, can you discribe step by step what you want to achieve, my be I understand you not in right way.

    Co-founder and lead graphics specialist at Soft8Soft.

    #4706
    3dmdlb
    Customer

    Hi Mikhail,
    i want to add an extra function to my furniture example: http://aas01.3dmedialab.de/.
    With a Button (small set-square icon) you can switch on/off measurements. The combination with the white seat has a little lower seat hight (74.5) than the combination with the grey seat (75.5). So i have two different measurement-setups.
    When i press the Button to blend in the measurements, Puzzles need to check first which combination is active and then show the correct measurements.
    Also i need the function, if the measurements are on and the combination (e.g from white seat to grey seat) is changed, also the measurements will update.

    #4709

    Hi, I made an example for you.

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

    Co-founder and lead graphics specialist at Soft8Soft.

    #5075
    3dmdlb
    Customer

    Hi Mikhail,
    now i have kind a simliar, but little more complex scene: http://test01.3dmedialab.de/
    When press the Button “id-fuss-…”, first the scene needs to be checked what table-combination is visible and the corresponding variable/table-combination-number needs to be set. See the red marked areas in my Screenshot.
    The next step is the measure_change-Procedure. As in your example scene, this works perfect, if there is set a corresponding variable/table-combination-number.
    But in my scene here, i don’t know how to run a table-combination-set-Procedure first, to adress a table-combination Number-Variable.
    Can you help?

    #5078

    But in my scene here, i don’t know how to run a table-combination-set-Procedure first, to adress a table-combination Number-Variable.

    Hi, I think you have a error not because of checking priority but because of compare list with variable in table-combination-set procedure and you will always get false result and nothing will be changed. You need to compare list with list. For example you know which combination you can get and create a prepared lists to compare current list of objects and depending on them you will get the proper table_combination variable.

    Co-founder and lead graphics specialist at Soft8Soft.

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