Python Node doesn't pick up wedgenum

   1562   1   0
User Avatar
Member
12 posts
Joined: Feb. 2018
Offline
Hey there,

So i have a simple scene, one sphere, one top net with two wedges and a python script. I is supposed to get the wedgenum from the wedge work items. But alas it seems to not work at all.


Please see attached image and hip file

Attachments:
Capture.JPG (185.8 KB)
shpere issue.hip (117.1 KB)

User Avatar
Staff
467 posts
Joined: Aug. 2019
Offline
The work item is already provided to you. Replace

Item = pdg.workItem()
wdg_idx_list = pdg.intDataArray(Item, "wedgenum")

with

wdg_idx_list = pdg.intDataArray(work_item, "wedgenum")
  • Quick Links