In TOPs after adding a “Wait For All” node and adding all the attributes to an array I have a really hard time accessing the values.
Does anyone know how I can print all the values in the array with a “pythonscript” node?
Accessing Arrays in TOPs
479 5 1- sd_tony
- Member
- 4 posts
- Joined: July 2023
- Offline
- alexwheezy
- Member
- 318 posts
- Joined: Jan. 2013
- Offline
- sd_tony
- Member
- 4 posts
- Joined: July 2023
- Offline
Hi Alex,
here are the steps:
find all the usd files
in wait for all I append the values to an array
now I have all the filenames in an array on one job
when I print the attribute it is not an array, but only prints the first value
I have tried:
but that doesn't seem to work either
here are the steps:
find all the usd files
in wait for all I append the values to an array
now I have all the filenames in an array on one job
when I print the attribute it is not an array, but only prints the first value
Image Not Found
I have tried:
item = work_item.stringAttribArray("`@filename`") print( item )
but that doesn't seem to work either
Edited by sd_tony - Dec. 6, 2024 06:09:32
- sd_tony
- Member
- 4 posts
- Joined: July 2023
- Offline
- alexwheezy
- Member
- 318 posts
- Joined: Jan. 2013
- Offline
- pietas
- Member
- 6 posts
- Joined: June 2015
- Offline
-
- Quick Links