Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I created a new graph, dragged a poly sphere's shape, and connected it to a new build_array node.
I'm struggling to figure out how I can query any kind of data from the build_array node using Python. To be specific, let's say I want to find out the length of the build_array.
I tried out this:
cmds.vnnNode("bifrostGraph1", "/build_array", queryPortDefaultValues="array")
# Error: RuntimeError: file <string> line 2: A port named array was not found on build_array #
Which surprised me, because yes, array is a port and it looks like it's the right internal name.
I also tried this:
cmds.vnnNode("bifrostGraph1", "/build_array", queryPortMetaDataValue=("array", "size"))
# Result: u'' #
Which returns an empty string. I know `size` exists, because I can see it in a watchpoint.
So how in the world can I query this? Am I approaching it the wrong way?
Thanks in advanced!
Solved! Go to Solution.