Iterate thru GS::ObjectState list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2025-07-08 11:50 PM
I'm handling with API_AddOnCommand and I'm trying to send a json to my addon but this json has an array field, that should be read in order to proceed. How can I iterate thru a GS::ObjectState when it's a list?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2025-07-09 03:46 PM
Oh found it in the LibraryManagement_Test.cpp example, which was using for array of strings and I adapted for an array of objects:
GS::Array<GS::ObjectState> arrayObject;
myObject.Get(myFieldName, arrayObject);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2025-07-09 03:46 PM
Oh found it in the LibraryManagement_Test.cpp example, which was using for array of strings and I adapted for an array of objects:
GS::Array<GS::ObjectState> arrayObject;
myObject.Get(myFieldName, arrayObject);