This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

save mode to array and modify
#1
Good morning.

Let's see if you can give me a hand, I haven't touched the scripts in a while and I'm having a hard time getting my bearings.

I have 160 objects with 5 different modes, from 1 to 5, and the user is going to assign a number to each object in the visualization. Then, I have 5 objects, one for each mode, that will perform an action on those 160 objects, according to the assigned number of each one. For example, if there are 34 objects with the number 3, I will make a script that sends X value to those 34 objects.

To do this, I think the best way is to create an array that saves the mode state of those 160 objects, and when one of those objects is modified, the array is traversed, and only the corresponding position is modified.

The question I ask you then: How can I make that array with the reading of the objects and the subsequent modification?

Thanks for your help.
Reply


Messages In This Thread
save mode to array and modify - by legolas2069 - 19.07.2024, 10:11
RE: save mode to array and modify - by admin - 19.07.2024, 10:35
RE: save mode to array and modify - by Daniel - 22.07.2024, 15:41

Forum Jump: