PYthon Script - A simple way to get the result / input ?

   2094   2   1
User Avatar
Member
32 posts
Joined: March 2017
Offline
Heya,

New to the land of pdg scripting, trying to get the input / result of a mantra ifd gen on each work item. But stuck in very first steps.

print strData("work_item", "rop")
This gets me the rop parameter that I can see exists in the graph table.

But
print strData("work_item", "Result")
Fails.

Whats the best / easiest way of getting the input in a python script node ?

Any pointers would be much appreciated.
Theodor Groeneboom - www.euqahuba.com | www.rebelunit.no
User Avatar
Member
603 posts
Joined: Sept. 2016
Offline
The easy way to get a work item's input is:

print (work_item.inputResultData)
print (work_item.inputResultDataForTag("file/ifd"))
Edited by chrisgreb - Feb. 26, 2020 14:38:06
User Avatar
Member
32 posts
Joined: March 2017
Offline
chrisgreb
hrisgreb

Thanks Chris, works like a charm. I appreciate it.
Theodor Groeneboom - www.euqahuba.com | www.rebelunit.no
  • Quick Links