Hi there,
I've been trying to figure it out for a while now without sucess so thought I'd ask here.. I'd like to be able to query certain PDG attributes at various points in a TOPs graph in a Python expression, so I can use the data to set things on channels etc.
For example if I have 2 wedge nodes stacked, so that in total they are producing 9 individual wedges, how can I procedurally get that wedge count of 9 in a Python expression?
One way I thought was to just query the number of work items on the second wedge node.. or would a better way be to get the entire list of the ‘wedgeIndex’ attribute and find the max value in that list?
If so, how would I go about doing that in a Python expression?
Also if there's any Python expression examples you guys could point me to it would be super helpful.. for example this thread was great: https://www.sidefx.com/forum/topic/68258/?page=1#post-292979 [www.sidefx.com]
..with the post feom tpetrick showing how to get the list of wedge attributes for a current work item.
This is almost what I need but instead I need the total number of wedges in the graph, so I don't think I can get that from a single work item query like in the example from that thread.
Thanks for any help!