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.

Interaction dependent on another

Home Forums Puzzles Interaction dependent on another

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #71347
    carloszr
    Participant

    Hello everyone!

    I currently have an interactive Verge3D design created through Blender’s ‘Shapekeys’ as shown in some of the fantastic turials.

    In some design, I have a problem that I cannot solve through the ‘Shapekeys’ (They are somewhat limited) and I wonder if I could solve this problem through the puzzles.

    I want to limit one height dependent on another.

    I attach 2 images.

    How can I prevent the yellow frame from overtaking the red frame? Can it be limited in some way?

    Thanks for the help!

    Attachments:
    You must be logged in to view attached files.
    #71421
    xeon
    Customer

    I would imagine you could get the z location of the red object and then as the yellow objects moves…test its z direction and compare it to the red z location. You might even want to subtract a little bit from the red z location to ensure the yellow object does not interfere.
    You can do this testing by using the get object location puzzle.

    If you are allowing the user to drag the yellow object then place the comaprison logic in the When drag over event.

    There are other approaches too…. I would need to know more about how you are controlling the movements of the various parts.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #71571
    carloszr
    Participant

    Hello Xeon!

    Thank you for your answers. This model is interactive in its 3 axes (Width, height and depth) with minimum and maximum measurement restrictions.

    The problem is with the ‘yellow frame’ that its movement depends on the other.
    It also has its minimum and maximum measurement. But the movement must be conditioned with respect to the other so as not to interfere.

    I don’t have much experience programming and I got this far thanks to the fantastic tutorials.

    I really don’t know how to do it.

    Thanks for the help!

    #71573
    xeon
    Customer

    Ok..here is an example of what I think you are trying to do.

    https://v3d.net/tvu

    red, blue and green cubes are dragable to morph the object.

    the bottom shelf can be dragged up and down. Depending on the height of the table the shelf has different limits as to how far you can drag it up/ position it.

    There are some issues that still have to be worked out for it to be production ready…but let me know if this is the concept. If so I will give you the blend and project file.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #71575
    c4cc
    Participant

    Ok..here is an example of what I think you are trying to do.

    https://v3d.net/tvu

    red, blue and green cubes are dragable to morph the object.

    the bottom shelf can be dragged up and down. Depending on the height of the table the shelf has different limits as to how far you can drag it up/ position it.

    There are some issues that still have to be worked out for it to be production ready…but let me know if this is the concept. If so I will give you the blend and project file.

    This is a good example, may we see the puzzles please?

    #71579
    carloszr
    Participant

    Hello Xeon!

    Yes, that’s exactly what I intend to do!

    If you could share the puzzles it would be great!

    Thank you so much!

    #71590
    xeon
    Customer

    Hi there,

    Ok…so I tend to delete my projects on the V3D network regularly so I though I would place this on my site so people would be able to access the project file and blender file indefinately.

    You can view the puzzles and download the files here:
    https://www.xeons3dlab.com/post/how-to-constrain-a-shape-key-objects-movements-in-verge3d

    • This reply was modified 8 months, 2 weeks ago by xeon.
    • This reply was modified 8 months, 2 weeks ago by xeon.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #71593
    carloszr
    Participant

    That’s great Xeon!
    Thank you very much for the fantastic work.

    #71617
    carloszr
    Participant

    Hello Xeon!

    After many hours, unfortunately, I cannot solve the problem. :(

    Your solution in your example works perfectly.

    The problem is that the change in dimensions of my model comes from ‘event changes’ as shown in the furniture tutorial.

    I have tried to change your ‘drag’ codes to my ‘event change’ codes and have not succeeded.

    Is there a simpler way, avoiding inserting cubes as a reference?

    I find the create constraint events interesting, but I think the drag events have totally confused me…

    Thanks for your help!

    Carlos.

    #71618
    xeon
    Customer

    Ah well…. there are many ways to do things in verge3d to get the same result.
    In my case I used the colored cubes….and in this video its using HTML input values.

    You may find this video helpful: https://www.xeons3dlab.com/post/verge3d-tutorial-interactive-parametric-model-part-3.

    If you would like to take a look your project you can send me information at xeons3dlab[at]gmail[dot].com and I can give you information specific to what and how you are doing it.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

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