Here's my structure:
How do I access these mesh's properties (positions, to be specific) using a script in editor?
I tried using a tool script attached to the Spacial node but every time I run it in editor, I get this error:
modules/gdscript/gdscript.cpp:557 - Condition ' !p_keep_state && has_instances ' is true. returned: ERR_ALREADY_IN_USE
However, when I play the scene, I get this error instead:
Invalid get index 'position' (on base: 'MeshInstance').
I don't know how you set and get the values of a node's properties so please bear with me.
This is what I wrote:
var x = 0
var z = 0
for childNode in get_node(".").get_children():
childNode.position.x = x
childNode.position.z = z