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
Ugrent, Index in group
-
doca
- Posts: 11
- Joined: 21 Feb 2011, 13:45
- Location: Beograd, Srbija
Ugrent, Index in group
You do not have the required permissions to view the files attached to this post.
-
ace63
- Posts: 176
- Joined: 07 Jun 2009, 10:30
Re: Ugrent, Index in group
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
Thanks for the fast reply, but can you tell me how to do that? I am not so familiar with strings, arrays...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.
-
rray
- Moderator
- Posts: 1810
- Joined: 26 Sep 2009, 13:51
- Location: Bonn, Germany
Re: Ugrent, Index in group
Here's an old compound where I've done something similar
from a comment inside
from a comment inside
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 instancesCreates 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.
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
Thanks rray. But, again, no success.rray wrote:Here's an old compound where I've done something similar
from a comment inside
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 instancesCreates 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.