Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sign in to follow this  
jc4d

Set Fill node

Recommended Posts

Hi all,

I can get my head around on how to set a fill color for a rectangle.

I have a node to create a rectangle but when it comes the time to set the fill color I get blocked.

This is the simple setup so far:

14019991.t.jpg

Thanks in advance,

Juan

Edited by jc4d

Share this post


Link to post

Attributes node, simply pass the rectangle through the Attributes node before it continues on. Select the Attributes node and assign the desired attributes you want to apply to the Rectangle to the Attributes node itself.

It's explained briefly here at around 5:11:

Share this post


Link to post

As Jim said you can use the attributes node - that is the simplest way to do it - but if you want to use the Set Fill node, the input for the back color must be three values [r, g, b]. The easiest way to do this is to use a Point3D node from the points section and give the x- y- and z-coordinate a value between 0 and 65535.

This node is a little tricky and should have a better description.

Share this post


Link to post

Thank you both so much, of course the quickest way is like Jim said, and for Sarah tip, I never cross my mind using a 3 point node as RGB components since I thought that is only for XYZ coordinates.

Thanks again,

Juan

Share this post


Link to post

Hi all,

I´m digging now on how to apply a gradient but it seems that there is the possibility that I have found a bug.

I tried Jim´s technique but I can´t change the gradient Rotation in the Attribute node and as you can see in the file the gradient seems to be rotated 141 degrees???, pretty strange.

You can check this by converting the object into group and then seeing the Gradient´s rotation value.

Cheers,

Juan

Share this post


Link to post

Confirmed, its taking the rotation value on the attributes node, but not showing it on the attributes node fill itself. However when I run the script, the generated rectangle is rotated some angle off of 0, but has a strange value like you mention above. Submitting this as a bug now.

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
Sign in to follow this  

 

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.

×