Object array?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Pancho
Posts: 659
Joined: 19 Sep 2010, 09:28

Object array?

Post by Pancho » 21 May 2011, 10:49

I know that it is possible to extract the data (SRTs, etc.) from the members of a group and it is NOT possible to write this data back to the group.

In case I don't want to write the data for the group members to a custom property on my ICE tree where each group member can get this data (via a custom ID) individually: Is there a way to store names of objects in an array so that I can get data or write data to this array? So far my attempts failed. Is there a workaround or any other ways to write set data for a lot of objects without going the way I described with the groups and evaluating ICE trees on each object?

Cheers
Pancho

Chris_TC
Posts: 411
Joined: 22 Mar 2010, 16:43

Re: Object array?

Post by Chris_TC » 21 May 2011, 12:18

If you plug the Out Name of a Get Group into a Reference to String, you end up with a string array of all your group's object names. However, I have not found a way to convert these strings back into references.

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: Object array?

Post by Hirazi Blue » 21 May 2011, 13:57

Grahame Fuller on the Mailing List:
String to reference won't be happening any time soon because of the way ICE works. It gets all its inputs before doing any evaluation. However, string to reference would require evaluation before knowing what reference to get.
(Quoted from here)
:((
Stay safe, sane & healthy!

Pancho
Posts: 659
Joined: 19 Sep 2010, 09:28

Re: Object array?

Post by Pancho » 21 May 2011, 15:15

So is there another way to translate a group of objects without having them carry an ice tree which reads and sets their individual settings?