Skip to content

is there a way to make op.inObject type safe? #922

Discussion options

You must be logged in to vote

op.inObject("Audio In", null, "audioNode") will not let you connect port of different "type" (than "audioNode") to the port, cables will always allow connection port that have no type to ports that have one.

you are suggesting validating the structure of an object, right?
for your custom ops you could decide on some structure and then add "myObject" as a parameter to your own inObject.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Joscha95
Comment options

Answer selected by Joscha95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants