first time tool script, I have this setup going, trying to get to the currently selected inspector contents in code
@tool
extends Node
var interfacenode : EditorInspector = EditorInterface.get_inspector()
func _ready() -> void:
interfacenode.property_selected.connect(printfunc)
func printfunc(property):
print(property)
all this does is give strings of names like
rotation
scale
surface_material/0```
can't figure out from the docs or google, how can I access the actual number or StandardMaterial3D or etc that is selected?