[From More type conversions...]

It seems to me that if one can convert something to text (in the way that a 2D Point converts to text, not how an image does), one ought to be able to convert it back after.

Component: 

Notes from Team Vuo

Vuo Pro: 

No — available with both Vuo and Vuo Pro licenses

Complexity: 

●○○○ — Up to a few days of work

Potential: 

●○○ — Appeals to current community

The existing anything-to-Text type converter, Summarize Value, outputs data in a format that is human-readable (in fact, the same as the description in port popovers) but not necessarily straightforward to convert from Text back to the original type.

For this feature request, we could provide a Convert Value to Text node that outputs the value in JSON format and a Convert Text to Value node that inputs a value of the same format or certain other type-specific formats.

For example, an Integer or Real would be just the number (99). A Color could have one of several formats including {"r":0.5, "g":1, "b":0, "a":1} and 0.5, 1, 0, 1 and #7fff00.

Comments

This would be good for

useful design's picture
Submitted by

This would be good for debugging/newbie learning the more complex data types in Vuo. If I could see the contents of Make 3D… nodes and Mesh nodes I think it would help me to learn Vuo more quickly.

Also allow hack editing of values if they can convert back to original data-type.

I really like this concept, I thought data-types in Vuo would be a bit more transparent than I find them.

I wanted to make a new

dumski's picture
Submitted by

I wanted to make a new feature request for something like de-summarize node and end up here. I think it's a very useable feature since we have a bunch of TREE nodes. Now we can take various data from our compositon (like settings of calibration adjusted for a very long time) and save them as JSON file. But a lack of de-summarizing node (for points, color, numbers, text/numvers lists, etc.) forces us to decode back a tree using dozens of nodes.

For example, to put a 4 points into saveable JSON: take a look at "save-4points" image. And now, to put only first of this points into VuoPoint2d back: take a look at "read-4points" image. Imagine nodes for decoding some 4d matrices or color palette...

I think vuo-nodes-wide de-summarize function will lift whole Vuo system up and make data manipulation symmetric.

Feature status

When we (Team Vuo) plan each release, we try to implement as many of the community's top-voted feature requests as we have time for. Vote your favorite features to the top! (How do Vuo feature requests work?)

  • Submitted to vuo.org
  • Reviewed by Team Vuo
  • Open for community voting
  • Chosen to be implemented
  • Released

Votes

2 votes so far!

Who voted?

Pianomatic's picture
useful design's picture