Jump to content

Returning a string/Array of Strings in CVEX (Material Style Sheets)


Recommended Posts

Hi,
 
This is Nandan from SPin Vfx.
 
I am working on Material Style sheets in Houdini 16.5.
 
I want to add add subdivision groups under Render Polygon as Subdivision (Mantra) on the rendering geo.
 
I see I can create a Render Property override on the geo in the style sheet and set it to one.
To specify the groups for subdivision (which is also a render property on the geo) I wanted to write an inline script in cvex to return an array of string to fill the subdivision parameter.
 
My question is:
 
1) Can that be possible? Can I return a string from cvex and populate the subdivision group parm on the geo using style sheets. I do not want to hard code it, I want to return it from cvex
2) Should I be returning an Array of Strings from the cvex funtion, if there is more than a single group.
3) Can I get any reference to working example?
 

Any help will be much appreciated.

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