Is there anyway to make a CVEX SOP digital asset?

   4048   6   0
User Avatar
Member
48 posts
Joined: Feb. 2013
Offline
Or are we stuck with using attribwrangle for now?
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
Hi
File -> New Operator Type, then select VEX from the list, Accept, then click the “Code” tab.

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
48 posts
Joined: Feb. 2013
Offline
but neither of the two options work: geometry operator or cvex operator

geometry operator creates a vex sop, cvex creates a shop.

even “Compile VEX code to SOP type” with an attribvop that creates geo gives me the error “ ‘cvex’ does not match the required context ‘sop’ ”
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
I'm not sure i understand. What context do you want your program to run in?

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
48 posts
Joined: Feb. 2013
Offline
I simply want to be able to write in CVEX to create geometry in its own sop without having to use an attribWrangle
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
I see. Didn't realise you wanted to create geo. You can make a CVEX Operator, place it in SHOP and then point to that code from the Vex Setup tab in an Attribute VOP in SOP's. A little hacky i know. You will end up with an asset inside an asset though.

Why don't you want to use an Attribute Wrangle?

-b

Attachments:
cvex_in_sop.hipnc (66.5 KB)

http://www.racecar.no [www.racecar.no]
User Avatar
Member
48 posts
Joined: Feb. 2013
Offline
thanks.

I'm writing a bunch of tools in CVEX so I want to be able to have a node that gets updated everywhere, automatically. Also, attribwrangles don't let you declare structs I don't think, you have to go into the underlying vop
  • Quick Links