Create a single point in APEX

   472   5   1
User Avatar
Member
25 posts
Joined: Nov. 2018
Offline
Is there a way of creating single points and polygons in APEX without using a SOP add node or VEX? Using the SOP add node requires setting up a dict to wire in that has a few extraneous keys and I've read that using VEX in APEX is something that should avoided, even though it is possible.
User Avatar
Member
7995 posts
Joined: July 2005
Offline
Not really. I think VEX in APEX probably needs to be supported.
User Avatar
Member
25 posts
Joined: Nov. 2018
Offline
edward
Not really. I think VEX in APEX probably needs to be supported.

Thanks for getting back Edward. Maybe it is something that will be added? There is an API for it in python and there are methods for setting and getting attributes in APEX Script...
User Avatar
Member
7995 posts
Joined: July 2005
Offline
There's a hack you can right now by using the "sop::attribvop" node: set vexsrc to 2, and snippet to the code you want. I've attached an example.

Attachments:
apexVex.hip (104.9 KB)

User Avatar
Member
25 posts
Joined: Nov. 2018
Offline
edward
There's a hack you can right now by using the "sop::attribvop" node: set vexsrc to 2, and snippet to the code you want. I've attached an example.

Oh wow. Thanks for the example. I'll have to try it out. Where did you hear about That?
User Avatar
Member
7995 posts
Joined: July 2005
Offline
In this forum. https://www.sidefx.com/forum/topic/93402/?page=1#post-407576 [www.sidefx.com]
  • Quick Links