- This topic has 5 replies, 2 voices, and was last updated 4 years, 4 months ago by GLiFTeK.
-
AuthorPosts
-
2020-07-31 at 6:16 pm #31022NilàCustomer
Hello,
I am working on a configurator with tons of textures to chose for one object (over 80). For now i simply duplicate the puzzle “on event of click” with a “replace texture” inside and manually change the name of the element and texture.
(see first screenshot)I am looking for a way to loop (in a way) the process with a list containing all the color names. I tried to use the puzzle “for each item” with the same puzzle as in the manual way inside. Changing the color by the variable “i”. (see second screenshot)
It works in a way but only change the texture to the last color on the list no matter what element i click on.
Using a list would make the work way less tedious and make it a lot faster that’s why i need help.
Thanks
Nilà~
2020-07-31 at 9:25 pm #31029GLiFTeKCustomerHey Nila,
This (last item in list) issue happens with other things like the drag puzzle, so I’m thinking the solution there might help you as well.Here’s the link to the answer to the problem there…
Hope it works for your issue!
https://www.soft8soft.com/topic/add-dragging-and-methods-to-a-list-of-objects/#post-26503Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-07-31 at 9:38 pm #31030NilàCustomerThanks,
I was actually able to fix the problem by using a procedure with the on click event in then put this procedure in a loop. Idk why it works this way but as long as it does, i’m happy
Nilà~
2020-07-31 at 11:43 pm #31031GLiFTeKCustomerIf you like, post an image of your puzzle solution for people that have the same problem.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-08-01 at 7:38 am #31032NilàCustomer[FIX]
The way i found to fix it is to use procedures. you put the “on event of click” with all the parameters you want in. Then create a loop “for each item in list” with the procedure in.
For me it’s supposed to be exactly the same but this way works and not the other.
See the screenshot for the complete puzzle.
Nilà~
2020-08-01 at 10:49 pm #31043GLiFTeKCustomerThat’s awesome. Thanks for sharing, Nila!
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature! -
AuthorPosts
- You must be logged in to reply to this topic.