Topic: clone parents

Hi, Maratis community! I'm quite new to Maratis so please bear with me if I say something silly.

I have a level with a ''cube'' and a ''sphere''. The cube is parent of the child. The sphere is next to that cube and when I rotate the cube, the sphere orbits around it.

Now I want to clone all that, but as the getClone function will neither create the parameter object's children nor clone objects that have parents, I wonder whether there is a setParent(a,b) function of Maratis objects in lua? :3

W.

Last edited by Whispermane (2012-12-29 12:20:24)

Re: clone parents

Hi,

it's not silly, it's actually missing in lua, let's add it to the todo list.

The only thing possible for now is to do it in c++ using the plugin system,
or to duplicate all the objects in the editor and deactivate them (you can then activate in lua).