I use these a lot and it’s time consuming.
Transform data is set up in a spreadsheet.
For now, I just copy / paste all transform data from a spreadsheet, where they are calculated initially.
Csv → data table → struct → array makes sense, but how to do it I don’t know how to do it.
I use an enum to select between 8 different variations that add 3 or 4 instances.
This is what it outputs:
Thank you for your time and may your day be a good one!
1 Like
Can you describe what you’re trying to do, without any reference to transforms or blueprint or the engine?
Maybe there’s a much easier way…
2 Likes
Yes. This is for a pallet assembly line simulation.
Each pallet requires 20 unique parts in fixed offsets from the pallet’s centre.
The pallets are nailed with eight different nailing patterns, according to the European Pallets regulations. The nailing elements are in three different locations, making a total of 24 of those cylinders actors above. (Nail gun barrels.)
A conveyor system transports these parts into the nailer module from 20 magazines located near by.
The finished product goes into a stacker and the stacks travel to pre-defined locations in the storage area.
There are many other elements that follow the same protocol.
Does this make any sense?
1 Like
Ok, fiddly.
I can’t really see what’s going on in your code, but I think I’d only use arrays. Can you get the data from the table to an array?
Rather than using words for the positions, just encode them as integers. I guess you could start with words ( enum ), but then translate that to ints before trying to construct anything.
I don’t know if that makes any sense…
2 Likes
I suppose so, but how does one do that if eight different items are using 3-4 “rows” from the array?
Some kind of a For Each and enum to select the specific indexes in the array?
It’s super easy to set this up in a spreadsheet to export filtered csv data to plug into an Unreal Data table and from there into a struct.
Rather than using words for the positions, just encode them as integers. I guess you could start with words ( enum ), but then translate that to ints before trying to construct anything.
What do you mean by that? The vector locations are of course an array of three floats. Trying to wrap my head around how integers become these values.
Thank you for the replies, it’s beginning to make sense.
I don’t think I know enough about it to be much help, but I think you’re giving yourself a hard time by using enums. Because you have to always code them literally ( as you have above ).
Can you set it up so that you just know what position each number is in each array?
1 Like
For sure. The enums are on a base actor which I then select from depending on which part is to be used. I prefer that for ease of use when prototyping and later when the project goes runtime to simulate various aspects of the process. It is important to be able to select between various scenarios.
It will be easier to show this once this system is operational. Give me a few days to finalise this.
2 Likes