- This topic has 9 replies, 3 voices, and was last updated 9 months, 2 weeks ago by xeon.
-
AuthorPosts
-
2024-03-06 at 7:55 am #71347carloszrParticipant
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.2024-03-08 at 5:21 pm #71421xeonCustomerI 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.com2024-03-13 at 7:18 pm #71571carloszrParticipantHello 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!
2024-03-14 at 1:30 am #71573xeonCustomerOk..here is an example of what I think you are trying to do.
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.com2024-03-14 at 4:40 am #71575c4ccParticipantOk..here is an example of what I think you are trying to do.
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?
2024-03-14 at 7:16 am #71579carloszrParticipantHello Xeon!
Yes, that’s exactly what I intend to do!
If you could share the puzzles it would be great!
Thank you so much!
2024-03-14 at 4:53 pm #71590xeonCustomerHi 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 9 months, 2 weeks ago by xeon.
- This reply was modified 9 months, 2 weeks ago by xeon.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2024-03-14 at 6:17 pm #71593carloszrParticipantThat’s great Xeon!
Thank you very much for the fantastic work.2024-03-15 at 3:40 pm #71617carloszrParticipantHello 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.
2024-03-15 at 4:18 pm #71618xeonCustomerAh 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 -
AuthorPosts
- You must be logged in to reply to this topic.