Godot-proposals: Ability to copy parameters path from shaders and animation trees

Created on 26 Sep 2019  路  3Comments  路  Source: godotengine/godot-proposals

Describe the project you are working on:
Currently i am developing a few small game-jam like projects

Describe how this feature / enhancement will help your project:
Not having to transcribe the values of paths will save some time and help avoid bugs when mistyping

Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:
I hover mouse over the property with shader parameter
image
and now i want to press or do something that will save property path to clipboard so that i can easily copy it into the script

Describe implementation detail for your proposal (in code), if possible:
No clue, if someone could direct me somewhere i could do it myself probably, but right now i don't know much about godot to propose code

If this enhancement will not be used often, can it be worked around with a few lines of script?:
Not that i know of, if it is, i would love to make a plugin for it then

Is there a reason why this should be core and not an add-on in the asset library?:
Do not know if it is possible to do that, it might be because some inspector fields can tell the difference between right and left click

editor

Most helpful comment

Perhaps shader was not the best example, but parameter copying from animation tree would be useful

All 3 comments

You don't need to the full property path to set shader uniforms. You just need the name of the uniform itself, no need to hover even.

In GDScript

myMaterial.set_shader_param("Slowmo", slowmo_value)

Perhaps shader was not the best example, but parameter copying from animation tree would be useful

I'm working on this now, finally got annoyed after enough typos transcribing AnimationTree paths :grin:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lupoDharkael picture lupoDharkael  路  3Comments

Torguen picture Torguen  路  3Comments

WilliamTambellini picture WilliamTambellini  路  3Comments

SleepProgger picture SleepProgger  路  3Comments

KoBeWi picture KoBeWi  路  3Comments