Tagged: Clone, limit movement
- This topic has 7 replies, 5 voices, and was last updated 1 year, 9 months ago by kdv.
-
AuthorPosts
-
2022-05-23 at 1:38 pm #52292gregParticipant
I want the user to be able to add a specific number of “cloned” objects to the scene. In the example linked here, the user can double click on the window to clone it, but I need to limit the number of “Clones” to 3.
I also dont want the customer to be able to move the window off of the wall. They must be kept between the trim. The Windows can be moved along the x by dragging.
Any suggestions would be greatly appriciated.
The example can be found at https://v3d.net/7a82022-05-25 at 10:41 pm #52420xeonCustomerHey Greg,
As you create clones, create a list of the objects created.
Then you should have a variable set as the max number of clones you want. Once the count in the list reaches the variables disable the ability to create more clones. The list will be handy to delete, and or hide those clones as well.Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2022-05-25 at 10:50 pm #52421xeonCustomerRegarding keeping an object within the bounds of a wall. There are three.js bounding boxes you can use via JS that makes this easier but here is puzzle only version:
The application/code and blend file has been sent to your email.
For those that stuble upon this the trick is using the location constraint in Blender. That will confine it to the wall.
Adding windows on a wall such that they don’t overall will be the next question. See puzzle image for details.
Attachments:
You must be logged in to view attached files.Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2022-06-09 at 3:17 am #52812rampagedogParticipantHow to let the puzzle read a config file and set the max clone number depending on the config file?
2023-03-13 at 1:59 am #61006bigmike814Customerthat’s looking good. How are you controlling the clones? Or are you just writing in the “name” like name1, name2, etc?
2023-03-13 at 3:40 am #61007kdvParticipantbut I need to limit the number of “Clones” to 3.
A simple counter will do
I also dont want the customer to be able to move the window off of the wall
Add a constraint
Puzzles and JS coding. 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 the meaning at all.
2023-03-13 at 4:08 am #61010bigmike814CustomerKDV,
Are you interested in helping me out? I need to get my project finished and am running out of time. I have a few things I need to dial in and am willing to pay you for your consultation. If you are interested, I can send you what I am stuck on and you give me a price for helping me out if it is something you can help walk me through.
2023-03-13 at 4:13 am #61011kdvParticipantcontact me kdv[at]izh[dot]com
Puzzles and JS coding. 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 the meaning at all.
-
AuthorPosts
- You must be logged in to reply to this topic.