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

number of inputs and outputs when creating a block #191

Open
jetrus opened this issue Aug 21, 2018 · 4 comments
Open

number of inputs and outputs when creating a block #191

jetrus opened this issue Aug 21, 2018 · 4 comments

Comments

@jetrus
Copy link

@jetrus jetrus commented Aug 21, 2018

Hi guys!
Сan I specify the number of inputs or outputs when I put the block on the Scene?
If this is possible, then there is an example?

Thank you.

@russelltg
Copy link
Contributor

@russelltg russelltg commented Aug 26, 2018

I'm not sure what you mean...

You mean not at compile time?

If so, when registering models register different instances of the same model class, that has state to store how many inputs or outputs.

@jetrus
Copy link
Author

@jetrus jetrus commented Aug 27, 2018

@russelltg

Not at compile time.
I need that when I put the block on the scene a window appears for inputting the number of inputs.
Now I solved the problem by passing the global variable to the class. When you register the model, the window does not appear. After registration, the value of the global variable is changed and when I put the block the window appears.

@DexterMagnific
Copy link

@DexterMagnific DexterMagnific commented Apr 26, 2019

I also need this feature. Please add it. We are making an audio app and the user can put an audio block and configure later how many inputs/outputs it has.

@spiriapbergeron
Copy link

@spiriapbergeron spiriapbergeron commented May 27, 2020

I have done this for my own app. Eg: A node configures itself with the input and output ports of an incoming node. It has required some changes in the core code, namely that the number of ports and entries is assumed to be fixed when the node is first instanced... It would be nice if this came standard.

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.