I am creating a 3d pose bone plugin .
how to chang skelenton bone pose by using plugin
and see it in editor
Do I really need to create a main scene plugin to change the other scene's node's property
here is my work
tool
extends EditorPlugin
var slide=preload("res://addons/bone/Panel.tscn").instance()
func entertree():
addcontroltodock(DOCKSLOTLEFTUL,slide)
pass
func exittree():
removecontrolfrom_docks(slide)
pass
this is in a tscn ,panel.gd (root node )
func onHSlidervaluechanged(value):
emitsignal("Xinhao_rotate")
pass
this is in my game scene skelenton.gd
func onPanelXinhaorotate():
spatial.rotationdegrees.x+=1
print("xingao")
setbonepose(0,spatial.get_transform())
I use print here try to print things .but It doesn't print
I tried to use AutoLoad function and global Variable to do this
But the editor says invalid call .
so can any one give a help?
I tried use a similar plugin in assetlib,but it doesn't work .
So I want to create my own plugin .
godot 3.2 stable