You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay, I see that ResourcesLoader.load create object of type GDScript when you trying to load gd-script, which have API for reflection call, so I changed my code to
hi everyone, hi @ka23ppa3
You can accomplish this by creating a scene and attaching the script (.py), then creating an instance of the newly created scene (the one with the .py) in the scene you want to use this code (the one with the .dg).
Already with the instance you can call the methods you want.
I just loaded addon from assetlib which wrote using gd-script, unfortunately have no luck to call it. work_with_gdscript example didnt helped me much.
My code:
getting error
AttributeError: `GDScript` object has no attribute `line`
This is how looks my gd-script which Im trying to load and call(Keep in mind that I deleted most color-constants to clear some space):
Also Im new in python and godot so sorry for my incompetence
The text was updated successfully, but these errors were encountered: