Ugrent, Index in group

Discussions about SOFTIMAGEs© Interactive Creative Environment©
doca
Posts: 11
Joined: 21 Feb 2011, 13:45
Location: Beograd, Srbija

Ugrent, Index in group

Post by doca » 06 Jul 2013, 14:08

Hello,
I am not an ice master, so probably this is going to sound stupid, but I need solution quickly.
Here is the problem:
I have a group with some objects. How can I access to the objects index in a group?
I'am transforming objects in a group by particles, but that process is executed once, and if I lately duplicate same objects in group I have to manually enter index number to take new (respective particle ID) transformation (see attachment). So, I modified compound a little bit (not important now), and I need every new duplicate to take corresponding index number that it has in a group. Arrays somehow?
That's it.
Best,
D
You do not have the required permissions to view the files attached to this post.

User avatar
ace63
Posts: 176
Joined: 07 Jun 2009, 10:30

Re: Ugrent, Index in group

Post by ace63 » 06 Jul 2013, 14:28

Had this problem before - I think what I did was abusing the 'reference to string' node together with 'find in array' to find the object name string in the array of strings of the group member names.

doca
Posts: 11
Joined: 21 Feb 2011, 13:45
Location: Beograd, Srbija

Re: Ugrent, Index in group

Post by doca » 06 Jul 2013, 14:33

ace63 wrote:Had this problem before - I think what I did was abusing the 'reference to string' node together with 'find in array' to find the object name string in the array of strings of the group member names.
Thanks for the fast reply, but can you tell me how to do that? I am not so familiar with strings, arrays... :-)

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: Ugrent, Index in group

Post by rray » 06 Jul 2013, 14:41

Here's an old compound where I've done something similar
from a comment inside
Creates points with instance shape for each object of a group. Masters aren't objects themselves, but objects from the instance master group. Lookup by name with trailing digits stripped. "sphere1" and "sphere2" of group get master "sphere". Can be same group if master object with digit-less name exists within. Source can be clones.
I don't understand right now what I did there but it seems to have something to do with groups and replacing similar-named objects by instances
You do not have the required permissions to view the files attached to this post.
softimage resources section updated Sep 26th 2026

doca
Posts: 11
Joined: 21 Feb 2011, 13:45
Location: Beograd, Srbija

Re: Ugrent, Index in group

Post by doca » 06 Jul 2013, 15:14

rray wrote:Here's an old compound where I've done something similar
from a comment inside
Creates points with instance shape for each object of a group. Masters aren't objects themselves, but objects from the instance master group. Lookup by name with trailing digits stripped. "sphere1" and "sphere2" of group get master "sphere". Can be same group if master object with digit-less name exists within. Source can be clones.
I don't understand right now what I did there but it seems to have something to do with groups and replacing similar-named objects by instances
Thanks rray. But, again, no success. :-(