Jump to content
Developer Wiki and Function Reference Links Read more... ×
Nomi

Image sampler?

Recommended Posts

There is nothing in Marionette's shipped content that will do this, though a couple of years back I wrote a node that will read an image, that data can be used to do this.

These files may not be updated properly for 2019, if you come across an error when installing the Python modules, please let me know which OS and VW version you are running and I will update the scripts to work.

 

Original file, extrudes the pixels as rectangles to a height based on their brightness:

 

User modified file that seems to result similarly to what you are hoping to achieve:

 

  • Like 1

Share this post


Link to post

Hi Marissa,

 

Thanks! Your script that extrudes rectangles works a charm. When I run the second one I encounter the error shown in the photo below - any thoughts? I can go ahead and rewrite a similar script based on your initial one, but figured I'd see if there's an easy fix!

 

Screen Shot 2019-07-09 at 9.39.26 AM.png

Share this post


Link to post

Oops, here is the attached error:

Screen Shot 2019-07-09 at 9.39.26 AM.png

Share this post


Link to post

This error is due to Vectorworks changing how it reads paths between 2018 and 2019? (maybe the switch was earlier, I cannot remember)

 

I believe that you should be able to just copy my read image node and my GetPixRGB node from my file and replace the ones in the halftone file, I'll take a better look in a bit.

Share this post


Link to post

Perfect - running smoothly. Thanks for your help!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×