Hello,
I am trying to generate copies of a rack onReset, then change their dimensions using the BasicRefreshTable function, according to parameters I am reading in from a global table. When I change their dimension however, their locations in the simulation change as well. I tried saving their previous locations using the xloc() and yloc() functions, then restoring them using setloc(), but xloc and yloc seem to measure relative position while setloc is absolute position.
Is there a good way to get the location of an object relative to its container, so that I can use setloc? The racks are resizing correctly, but the ones that are changed are moved pretty significantly. Additionally, their parents object (a plane) is staying in its original location, so it isn't an issue of scope.
I did try changing the coordinate center of the rack. Regardless of if I used corners, planar mid points, the object center, or direct spatials, the result was always the same.
Any help or advice is appreciated, thanks!