So, I have a player scene that contains the camera setup and bounding box and everything, and a model scene with just the model and its skeleton and animation player (inherited from a GLTF file). If I attach a script to the model scene and try to access the AnimationPlayer node from there, it works just fine, but when I instance the model scene within the the player scene and try to access the node using the following:
speed_mult = 1
direction -= camera_pivot.transform.basis.z
model.rotation_degrees.y = ((model.rotation_degrees.y * 3) + camera_pivot.rotation_degrees.y) / 4
I get the error "Invalid get index 'AnimationPlayer' (on base: 'Spatial')." This error seems to occur no matter which child node of the model scene I reference, as I tested it out referencing the Armature node, as well, and got the same error. Even if I add a new child node to the model scene from within the player scene, it gives me the same error.
I'm running Godot version 3.4.2 under Windows 10. Let me know if I need to provide any other information.