Matster Posted April 7, 2019 Share Posted April 7, 2019 I'm only hours into Marionette, so I am very new, however I I am stuck on a few very simple things (or they should be!) I want to create a record for new and existing objects with it's height and width in a text or number field, I've got to a point where i'm stuck, currently where i am at, i can attach a record with its size (width or height) included, but I've come to a stand still on how to move forward, so here are my questions; - I can specify an object by its name, but would like to just select 400 or so objects and apply the Marionette script to the lot how can i do this? - typically in the UK, we work in mm, but all our set build panels are in feet and inches! so I need to convert the format of the "Get Length" and "Get Width" to feet and inches - Ideally, I would like the panel size to be as text in one text field, I just cannot work out how to join multiple strings together, so it makes a single string i.e. "Get Length"&"x"&"Get Width" I have curves and angled panels i'd like to identify, but for now I just want to work out how to automate the standard rectangles! thanks in advance!! 😁 Quote Link to comment
Marionette Maven Marissa Farrell Posted April 7, 2019 Marionette Maven Share Posted April 7, 2019 4 hours ago, Matster said: - I can specify an object by its name, but would like to just select 400 or so objects and apply the Marionette script to the lot how can i do this? You have a few options here , two of which: You could use the Objects by Criteria node to create a set of criteria to define the objects to run the network You could create a menu command that would run on selected objects (you would still use the Objects by Criteria node in this situation, but you could not run the network directly from the drawing area if it's set to run on selected objects) 5 hours ago, Matster said: - typically in the UK, we work in mm, but all our set build panels are in feet and inches! so I need to convert the format of the "Get Length" and "Get Width" to feet and inches You can perform math on these values prior to writing them to the record, we currently don't have a node that will do this automatically for you 5 hours ago, Matster said: - Ideally, I would like the panel size to be as text in one text field, I just cannot work out how to join multiple strings together, so it makes a single string i.e. "Get Length"&"x"&"Get Width" I've attached a file that shows how to use the Concatenate node for this purpose Hopefully I covered everything 🙂 Please let me know if you have any other questions or get stuck anywhere else, I'm more than happy to help. 1 Quote Link to comment
Matster Posted April 8, 2019 Author Share Posted April 8, 2019 9 hours ago, Marissa Farrell said: You could use the Objects by Criteria node to create a set of criteria to define the objects to run the network You could create a menu command that would run on selected objects (you would still use the Objects by Criteria node in this situation, but you could not run the network directly from the drawing area if it's set to run on selected objects) This worked perfectly, thanks for this, I can see a huge amount of use for this node in my ideas! 9 hours ago, Marissa Farrell said: You can perform math on these values prior to writing them to the record, we currently don't have a node that will do this automatically for you The math is simple enough, just a little arduous! 9 hours ago, Marissa Farrell said: I've attached a file that shows how to use the Concatenate node for this purpose I couldn't see an attached file 😱 if you could re-attach it that would be great! either way i'll try and work it out, now I have a pointer in the right direction! Quote Link to comment
Marionette Maven Marissa Farrell Posted April 8, 2019 Marionette Maven Share Posted April 8, 2019 whoops! Here you go. Marionette_Concatenate_MFarrell.vwx Quote Link to comment
Matster Posted April 8, 2019 Author Share Posted April 8, 2019 Much better 😀 so how do i turn my Integer into a string? as it creates an error with it directly into the ordered list with the Concat attached! Quote Link to comment
Marionette Maven Marissa Farrell Posted April 8, 2019 Marionette Maven Share Posted April 8, 2019 You can use the orange "String" node. I'll make a note to update the concatenate node to accept all types of input. 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.