User | Kudos |
---|---|
8 | |
6 | |
2 | |
2 | |
2 |
I am proposing the creation of a new primitive allowing user to change the name of the data that is easier to use than the "variant to data" primitive.
There are some situations where the data name coming out of an output terminal need to be changed. Currently, a way to do this (while preserving the data type) is to use the "variant to data" primitive (which is less than ideal). One of the draw back of this method is that it requires to create a constant of the data to rename. Below is an example where this name change is useful using the "variant to data" primitive.
Now, it would be a lot nicer to have a "polymorphic" (aka XNode with type propagation) primitive where the user just need to drop a constant to rename its data. The tricky part about such a function is that you would NOT want to allow dynamic name change during runtime and therefore the name input parameter can only be a string constant (or its equivalent). Below is what I came up with.
It maybe that the string constant requirement of this method make it unpractical, but someone may have a better idea that would accommodate for this requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.