Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_children() not working when Label3D is a child. #379

Open
MarioMey opened this issue Oct 8, 2022 · 1 comment
Open

get_children() not working when Label3D is a child. #379

MarioMey opened this issue Oct 8, 2022 · 1 comment

Comments

@MarioMey
Copy link

MarioMey commented Oct 8, 2022

Godot v3.5.stable.official [991bb6ac7]
Maybe this is because Label3D is a new type of object and it is not in object types list somewhere?

Pythonscript 0.50.0 (CPython 3.8.5.final.0)
Traceback (most recent call last):
  File "build/x11-64/pythonscript/_godot_instance.pxi", line 98, in _godot.pythonscript_instance_call_method
  File "/home/mariomey/md-godot/test_godot_3.5/cubo_armature.py", line 24, in _ready
    print(self.get_children())
  File "build/x11-64/pythonscript/godot/builtins.pyx", line 3018, in godot.builtins.Array.__repr__
  File "build/x11-64/pythonscript/godot/builtins.pyx", line 3080, in __iter__
  File "build/x11-64/pythonscript/godot/builtins.pyx", line 3185, in godot.builtins.Array.get
  File "build/x11-64/pythonscript/godot/_hazmat/conversion.pyx", line 168, in godot._hazmat.conversion.godot_variant_to_pyobj
  File "build/x11-64/pythonscript/godot/_hazmat/conversion.pyx", line 284, in godot._hazmat.conversion._godot_variant_to_pyobj_object
  File "build/x11-64/pythonscript/godot/bindings.pyx", line 198, in godot.bindings.Object.cast_from_variant
KeyError: 'Label3D'

Can this be fixed... in this version 3.5? Pleeeaaseee...? 😁

@jdrempel
Copy link

jdrempel commented Feb 9, 2023

Same problem when trying to iterate children of a GraphEdit:

Traceback (most recent call last):
  File "build/x11-64/pythonscript/_godot_instance.pxi", line 98, in _godot.pythonscript_instance_call_method
  File "$HOME/projects/project/Graph.py", line 351, in _physics_process
    self._step_flow_simulation(ConnectionType.POWER)
  File "$HOME/projects/project/Graph.py", line 122, in _step_flow_simulation
    for node in self.get_powered_children():
  File "$HOME/projects/project/Graph.py", line 105, in get_powered_children
    for child in self.get_children():
  File "build/x11-64/pythonscript/godot/builtins.pyx", line 3080, in __iter__
  File "build/x11-64/pythonscript/godot/builtins.pyx", line 3185, in godot.builtins.Array.get
  File "build/x11-64/pythonscript/godot/_hazmat/conversion.pyx", line 168, in godot._hazmat.conversion.godot_variant_to_pyobj
  File "build/x11-64/pythonscript/godot/_hazmat/conversion.pyx", line 284, in godot._hazmat.conversion._godot_variant_to_pyobj_object
  File "build/x11-64/pythonscript/godot/bindings.pyx", line 198, in godot.bindings.Object.cast_from_variant
KeyError: 'GraphEditFilter'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants