Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does one know, what is the code-interface for a given Rive file? #314

Open
avadhbsd opened this issue May 11, 2024 · 2 comments
Open

Comments

@avadhbsd
Copy link

Description

I get tons of rive files with no or very little documentation and then I bang my head on typos, missed state-machines, input, dynamic text names. How does one know for a given rive file, what are the state-machines, inputs (along with its type), listeners, events, and dynamic-text-runs using code.

Provide a Repro

A random persons send you a random Rive file and requests you to manipulate it (state-machines, dynamic-text, events and so on). You get the file import it in your IDE and now you have no clue on what is the code-interface coz you don't know the names or the names shred/documented had typos. It never works and you bang your head, because you mis-spelled something or you don't even know the name of that-something.

Source .riv/.rev file

<--
download any random rive file which has tons of inputs, dynamic texts etc.-->

Expected behavior

User should be able to at least "Print" / "Console.log" all the inputs, artboards, timelines, state-machines, events and so on.

Screenshots

N/A

Device & Versions (please complete the following information)

All

Additional context

In simple words users want to see what are the available node-names for code-interface for a given rive file.

@cerupcat
Copy link

cerupcat commented Aug 16, 2024

I'd also like to see this.

Ideally, we'd be able to export the ViewModel from Rive app and therefore all of the options are available via code completion. We'd be able to do something like viewModel.nameOfItem.replace(...)

@heyrodrigo
Copy link

+1 on this one. It would be so nice if it was available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants