Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
135 stars 2 forks source link

Implement a way to get the name of a reference #2201

Open Fukuro99 opened 4 months ago

Fukuro99 commented 4 months ago

Is your feature request related to a problem? Please describe.

When I tried to create an item that controls blendshapes (such as a facial expression changer), I ran into a problem where the blendshape name couldn't be obtained automatically. I came up with a solution, but it was very complicated and not recommended (ref hacking).

As far as I know, there is no easy way to get the blendshape name in resonite, so I would be very happy if you could add it.

Describe the solution you'd like

This would be implemented in either a component or a Flux node. For a component, you input a reference to the blendshape and drive in the name. For a Flux node, it's a simple node that takes a reference to the blendshape and returns the name. A component is better for my use case.

Describe alternatives you've considered

I type it in manually; I don't want to take the deprecated approach.

Additional Context

No response

Requesters

Resonite:fukuro Discord:fukuro8232

shiftyscales commented 4 months ago

This functionality is blocked by the need for collections #572.

Fukuro99 commented 4 months ago

Sorry, I may not have conveyed my intent well. What I want is the name part of "name(ID)" that appears when I grab the value in the inspector. I doubt you will need a collection to achieve this functionality I'm going to change the title because this is not just about blendshapes.

shiftyscales commented 4 months ago

If you read through the linked issue- even if it's just to access elements from a list- it would still be required, @Fukuro99.

art0007i commented 4 months ago

@shiftyscales the post never mentions anything related to collections at all. they simply want a component/node that returns the name of any given reference. actually a component that kind of does this is RefEditor, it will take a reference an output a string like "{name] on {slot}" and this request is looking a more specific and better way to get only that name part

Fukuro99 commented 4 months ago

I was able to get the name using the RefEditor method suggested by @art0007i (analyzing the button display). I'm grateful for the information. However, this method is complicated, so I hope that an easier way to get the name will be implemented.