Patrick Winkler Posted January 11, 2016 Share Posted January 11, 2016 Hello, I have a list with randomly generated numbers. The height of the marionette object is the sum of all items. Is there a way to get the height with marionette. regards Quote Link to comment
AlanW Posted January 11, 2016 Share Posted January 11, 2016 Hi, This will add a list. HTH Quote Link to comment
Patrick Winkler Posted January 11, 2016 Author Share Posted January 11, 2016 thanks, now theres another problem. To place the objects relative to each other I need a algorithm which is similiar to the fibbonaci sequenze: offset_values = [10, 20, 15, 30 ] 10(item 0) + 20(item 1): 30(result 0) + 15 (item 2): 45 (result 1) + 30 (item 2) ... result: [10, 30, 45, 75] Quote Link to comment
Marionette Maven Marissa Farrell Posted January 11, 2016 Marionette Maven Share Posted January 11, 2016 (edited) Hi Patrick! I'm attaching a file with a node 'Add Sequence' which should do what you're looking for. I'm up for an alternative name for the node, that was just the first I came up with this morning. Let me know if this helps! Marissa EDIT: The attached file has a revised (hopefully) working node! Edited January 11, 2016 by MarissaF Quote Link to comment
Patrick Winkler Posted January 11, 2016 Author Share Posted January 11, 2016 (edited) thanks Marissa, In the meantime I scripted the node by myself. The 'Add Sequence'-Node does not work for me. Take a look into the attached files. Edited January 11, 2016 by Patrick Winkler Quote Link to comment
Marionette Maven Marissa Farrell Posted January 11, 2016 Marionette Maven Share Posted January 11, 2016 (edited) Whoops! You're right. I missed some logic. Should have tested a little harder before I shared Edit: My above post now reflects a node with the proper logic. I was summing to the wrong list initially! Edited January 11, 2016 by MarissaF Quote Link to comment
Recommended Posts
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.