how to access data of upstream to build work items
for example `nprims` of upstream to build `nprims` number of work items
how to partition by primitives
1759 2 1- popple
- Member
- 10 posts
- Joined: March 2017
- Offline
- wesw
- 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.
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
Wes
- popple
- Member
- 10 posts
- Joined: March 2017
- Offline
weswthanks a lot.
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.
-
- Quick Links