Digital Art Zone

 
     
Get all chlothes (or followers in general) attached to a figure
Posted: 20 October 2012 07:04 AM   [ Ignore ]
Member
Avatar
Rank
Total Posts:  123
Joined  2007-09-12

Is there any way to get alist of the followers of a DzSkeleton in C++? I came up with a method but it iterates all over the scene to get them? Is there a simpler way?

 Signature 

Favourite Figure: Olympia 6
My website: http://mattiascibien.net
My Art Gallery: http://mattiascibien.deviantart.com/
Developer of AutoCam (commercial follow-up of my thesis project, currently on hold).

Profile
 
 
Posted: 21 October 2012 10:39 AM   [ Ignore ]   [ # 1 ]
Member
Rank
Total Posts:  62
Joined  2004-12-26
gravity0 - 20 October 2012 07:04 AM

Is there any way to get alist of the followers of a DzSkeleton in C++? I came up with a method but it iterates all over the scene to get them? Is there a simpler way?

DzFigure has a list of what is grafted to it.  But, to find all following clothes, what you are doing is probably the easiest.

Profile
 
 
Posted: 21 October 2012 12:11 PM   [ Ignore ]   [ # 2 ]
Addict
Avatar
RankRankRankRank
Total Posts:  4545
Joined  2007-09-13

Can you introduce some sort of culling routine?

I’m assuming from your post that DzSkeleton is giving you everything and you only want a specific subset of that.

 Signature 

1432 old posts

My ShareCG gallery.

Just because something costs a lot, doesn’t mean it’s the best…

It just means it’s expensive.

Profile
 
 
Posted: 22 October 2012 05:25 AM   [ Ignore ]   [ # 3 ]
Member
Avatar
Rank
Total Posts:  123
Joined  2007-09-12

Well nope, I have to iterate all over the scene and check if the pointers of the selected skeleton and the chlotes are equal.

 Signature 

Favourite Figure: Olympia 6
My website: http://mattiascibien.net
My Art Gallery: http://mattiascibien.deviantart.com/
Developer of AutoCam (commercial follow-up of my thesis project, currently on hold).

Profile