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
1543 2 1- popple
- Member
- 10 posts
- Joined: 3月 2017
- Offline
- wesw
- Member
- 50 posts
- Joined: 1月 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 - 2021年4月26日 13:47:36
Wes
- popple
- Member
- 10 posts
- Joined: 3月 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