Jump to content

extrutions using Cd primative attribute


Recommended Posts

Hi Guys,

I've got a poly mesh with primative groups according to Cd values that ive pulled from a cop image. My question is how do I get these faces to extrude according to their Cd value. any help would be greatly appreciated.

cheers,

tom

Link to comment
Share on other sites

In the PolyExtrude SOP, type in the following expression in to Translate Z parameter:

length($CR,$CG,$CB)

where $CR, $CG and $CB return the color of each primitive face

and

length() calculates the length or magnitude of a vector by returning a single floating point value, in this case the amount of color value present.

Hope this is what you are after.

Link to comment
Share on other sites

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.   Paste as plain text instead

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