Jump to content

Do basic math and float of a list

Recommended Posts

Hello everybody


Im trying to create a list of an input node which is able to do some simple math, but i get errors from the float. Without math its working. How do i do this?

Math and Float a List.vwximage.thumb.png.99cac22f6c54fac6637f4bf6abd2290b.png

Share this post

Link to post

What exactly should be the output? That you get an error here makes sense, because '390+10' is a string and therefore could not be converted. You would have to separate the numbers, then convert and add them. Or you simply use a function-node with the function eval(x).


Was genau sollte den der Output sein? Dass du hier einen Fehler erhälst, macht Sinn, da '390+10' ein String ist und folglich nich umgewandelt werden könnte. Du müsstest die Zahlen trennen, umwandeln und addieren. Oder du brauchst einfach ein Function-Node mit der Funktion eval(x).

Share this post

Link to post

The output in this example should be a List,

[0] = 400.0

[1] = 800.0


as far as i know i get the numbers separatet in the "split" node (still string) and then they are converted to numbers in the "float" node. it works, but as soon as i put some math in one of the numbers, i got the error.


Best thing would be to have a dim-number in the end, but its not the most important.



Share this post

Link to post
10 hours ago, MRoth said:

Or you simply use a function-node with the function eval(x).

In this case, that should work. Just replace the float-node by the function-node

Share this post

Link to post

Gern geschehen. Das nächste Mal auch gerne im deutschen Forum. Dort gehen keine Infos wegen den Übersetzungen verloren. 😊



You're welcome. Next time also gladly in the German forum. No information will be lost there because of the translations.

Share this post

Link to post

Hallo MRoth,


hab ich was verpasst - wo gibt es ein deutschsprachiges Marionette Forum.



Share this post

Link to post

Hier ☺️Wenn etwas betreffend Marionette kommt, wird es meistens von @herbieherb, @KroVex oder mir beantwortet. Läuft aber nicht so viel. Eine separate Kategorie gibt es leider (noch) nicht.


Here. If something comes concerning Marionette, it is usually answered by @herbieherb, @KroVex or me. Unfortunately there is no separate category (yet).

  • Like 1

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...