Jump to content
Developer Wiki and Function Reference Links ×

Marionette Advice for a Beginner


Jack Moleta

Recommended Posts

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.

Link to comment

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 :). 

Link to comment

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.

Guest
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.

×
×
  • Create New...