how to partition by primitives

   1759   2   1
User Avatar
Member
10 posts
Joined: March 2017
Offline
how to access data of upstream to build work items

for example `nprims` of upstream to build `nprims` number of work items
User Avatar
Member
50 posts
Joined: Jan. 2018
Offline
if you want to create 1 workitem per primitive, you can do this by using geometryImport topnode and set the data extraction, "copy from class" to primitives. You can set the source to be your upstream output file.

And you can access any attribute of a cooked workitem in hscript with `@`... so `@sopname` will evaluate to box1 in this example.
Edited by wesw - April 26, 2021 13:47:36

Attachments:
boxprims.jpg (96.4 KB)

Wes
User Avatar
Member
10 posts
Joined: March 2017
Offline
wesw
if you want to create 1 workitem per primitive, you can do this by using geometryImport topnode and set the data extraction, "copy from class" to primitives. You can set the source to be your upstream output file.

And you can access any attribute of a cooked workitem in hscript with `@`... so `@sopname` will evaluate to box1 in this example.
thanks a lot.
  • Quick Links