[SOLVED] Access to Haxe trait variables through Blender UI?

Hi @lubos,

Is it possible to access variables in the haxe traits through the Blender UI somewhere/somehow?

I was thinking something similar to how you can do in many other engines where you mark a variable as being accessible through the UI/inspector by for example some meta data tag, or by making it public.

Kind Regards,
Martin

2 Likes

Heyo,

It is not yet implemented but I have been thinking about it for a while - looks like now is the time to handle it. I am preparing a coded variant of the tanks mini-game tutorial and it would be handy there too.

Created an issue:

Right now there is a way to send params to the trait.new() constructor, but I will rework this like you suggested. That way it will also be clear which values are actually being set, show proper UI type, tweaking variables at runtime…

3 Likes