Jack Moleta Posted October 27, 2019 Share Posted October 27, 2019 Hi all, I'm new to Marionette and am trying to use it to place some simple house symbols at roughly the correct position and rotation within a 2D polygon block boundary. The idea being to quickly test how different housing types would work in an existing block subdivision. I have managed to get it somewhat working for 2 block boundaries, however I need it to work for any given number of block boundaries. It seems to me like I need to use a loop, however I've read that Marionette doesn't have a method for looping. So any ideas on a solution would be great. I've attached my progress so far. Thanks for your help! Block Subdivision Marionette.vwx Also you may note I have used a custom atan2 node. It seems to me like there is an error in the default one where it just outputs the X input value. I changed the last line of code from, self.Params.z.value = x to self.Params.z.value = z and that seemed to fix it. Quote Link to comment
AlanW Posted October 27, 2019 Share Posted October 27, 2019 @Jack Moleta@Jack Moleta Hi, Mulling over this one. If you draw a line down each site you can layout your plans on the line. Will continue to look at how to place each plan within each site. Alan Block Subdivision Marionette v2018.vwx Quote Link to comment
Jack Moleta Posted October 27, 2019 Author Share Posted October 27, 2019 Thanks for the help Alan! That works, however I have thousands of blocks and am trying to come up with a way that doesn't involve me drawing anything myself. My method at the moment finds the longest line on the block and then aligns the plan to that. I didn't realise that the Get Angle node existed, this explains why nobody has noticed the atan2 node bug :). Quote Link to comment
AlanW Posted October 27, 2019 Share Posted October 27, 2019 (edited) @Jack Moleta Hi, try this one. I guess the trick now is to delete the ones that don't fit into the site. Block Subdivision Marionette v2018.vwx Edited October 27, 2019 by Alan Woodwell Quote Link to comment
AlanW Posted October 28, 2019 Share Posted October 28, 2019 @Jack Moleta Hi Still needs work to centre the plan in each site but i have added an if option so if the duplex is too long for the site to ignore it and leave the site blank. HTH Block Subdivision Marionette_004 v2018.vwx 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.