0 votes

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.rotation
degrees.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

in Engine by (14 points)

Just saying, but someone is working on a built-in way to edit bone poses in this pull request. It might be merged in Godot 4.0.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.