Is it possible to copy the content of an object instead of referring to it?

hello all, just having a slight problem. i’m trying to do this:

object = class(parameters)
things={}
table.append(things,object)
object.parameter = 10

thing is though, whenever i change a parameter in the object, it happens to the one in the class as well, which is really annoying.
if anyone can provide any help at all, it would be much appreciated.

@DJMoffinz - not sure what you want to achieve but surely the easiest way to copy an object is to read all it’s internal component values into temporary variables and use them to create a new one using the class().

1 Like

@Bri_G
Thanks a bunch! Don’t know why I didn’t think of that, guess I just had a brain fart.