This is such a huge coincidence, I came to the forums today for a solution to a similar problem, only problem that made me do this the rest I could figure out, but this one is really frustrating me, I’m reading ddabrahim’s solution but there’s something else I want to try
How does one utilize the “Pick a random object” and “Pick all objects” options, all it allows you to do is select these options for both conditions and actions, but nothing in the program or anything online hints on how to utilize this function. I thought it would be straight forward, so far the program has been, but this problem is angering me at this point
Here’s what I want to do, lets say I have multiple objects in a group, each object has a set of object variables.
Lets say the 2 variables (Length and Width) and they are all different sized 2d objects (and for some reason instead of using in program functions to derive the length and width I manually store them as object variables per object in a group)
I want to set a condition to filter through a group of objects and only create an object which object variables match specific criteria
Lets say values are Length = 300 and Width = 500 are the conditions
I want to simply select and create objects, utilizing object variables as filters
I even tried using the “For each object” event type and it did nothing, its like the software cannot identify object variables within a group, or even the groups themselves maybe (I know I have to be missing something here)
I’ve added an attachment with an example of the attempts made, really hope you or someone else can help out with this problem and I won’t have to take a convoluted solution like the one listed here: i.imgur.com/61XyXdH.png
That would require basically renaming around 100+ objects to establish a naming convention utilizing numbers and then creating 10’s of groups and subgroups to house the various categories, just so I can use the ToString() and Random() functions to create objects.
That’s the only solution I can think of so far, rather than the objects having variables, I’d abstractly create those variables using groups and use the naming convention to filter through them. That would be disheartening and ridiculous for a software that I thought was the best thing I’ve come across in a while, I have to be missing something and its something obvious, how can a “Pick a random Object” function not just allow you to create objects from based on said random selections? (I’m losing my mind, what am I missing!)
Example.zip (3.45 KB)