Jump to content
Developer Wiki and Function Reference Links ×

Marionette - Unit Paving Pattern Based on Image File


Cole

Recommended Posts

Hi VWX Forum,

 

I am attempting to create a Marionette script which can create a multi-coloured unit paving design that is based on an existing image input.

 

In an ideal world, the final script would construct a defined paving pattern (herringbone, running bond, etc) that is made up of 3 or more paver colours which parametrically locate themselves in the overall pattern based on the colour values of the image input defined.

 

I understand this can be done with Marionette based on the work shown in this video... https://www.vectorworks.net/en-CA/customer-showcase/artistic-design-with-marionette-in-vectorworks ...however after scouring the forums, I cannot seem to find any guides which would recreate the scripts shown therein. While I use Vectorworks daily, however I am new to Marionette; is anyone here able to provide some guidance, tips or suggestions on how I can go about recreating this script?

 

Many thanks for your help in advance!

 

Cole

Link to comment
  • Marionette Maven

My approach to this would be to generate your paving pattern, overlay a grid of points which would correspond to the individual pavers, and use the image processing technique shown in this example to color the pavers:

 

 

Of course, the complete process may be more complicated than that, but I think it's a good starting point.

Link to comment

Hi @Marissa Farrell, thank you for the quick response!

 

I did try to download this file already, as I also figured it would be a good starting point - however after attempting to run the script without any changes, I receive the following error codes:

 

image.thumb.png.4dde9bd12d671d871b9bcf0439a4cce3.png

 

For what it's worth I am running a 2021 M1 Pro Macbook Pro and using Vectorworks 2021 with the latest service packs up-to-date. 

 

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