Jump to content

define new vop node


Recommended Posts

Hi there, I've created a material that contains an inlineCode node with some vex inside. I'd like to be able to create a generic version of this node that can be re used but there are a few problems.

 

when i add inputs to the node they inherit the names of their input, I'd like them to be generic, i.e. "input1" rather than "product" if i connect  the output of a multiply node or "s" if i connect a texture coordinate.

 

Also as the node just creates code any variables contained within are placed in the resulting code verbatim and if i have many copies of the inlineCode node with the same contents then I get clashing variable names.

 

Has anyone done this? or does anybody know where to look for docs on createing new vop node templates that are more flexible.

 

Cheers

 

jon

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