LN for Traits (Get Traits, Name Trait)

I propose two new nodes for working with Trait:
ln

This makes it faster and easier to find and identify them.

Usage example:

result

Scripts: LN_Trait_Get_Separator.zip

3 Likes

Nice!

What exactly does Separate Trait do? It outputs the name and the trait? Then the name is probably a bit misleading, it sounds like something is “split” and cut into two disjoint things. Wouldn’t a simple Get Trait Name node be sufficient?

2 Likes

I figured there would be ideas for outputting more field values from Trait. But if the name is only necessary, then of course I will correct it.

Need type deduction (Trait, LogicNode, CanvasScript)?
If so, should it be just a line?

To display the CanvasScript name, WasmScript needs to modify the appropriate classes so that there is a field with the saved name. I haven’t found another way yet. Do you need to do this?

If so, it will work like this:

New version (when using modified CanvasScript and WasmScript classes):
get_trait_name_2

Sample:

Result:
result_2

Scripts: get_traits.zip

2 Likes