Digital Art Zone

 
     
[SOLVED]Get Objects Name
Posted: 05 October 2012 05:10 AM   [ Ignore ]
Member
Avatar
Rank
Total Posts:  124
Joined  2007-09-12

I have actually started to work on my plugin for DAZ Studio 4.5.

I need in fact to pass to a functions the name of the objects. The problem is that the name passed is the same even if i changed it (i.e. Genesis while I should have the name i provided in the Scene Tab).

I tried whith DzNode::getName(), DzObject::getName() but I always get the wrong name.

 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: 05 October 2012 06:31 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  15775
Joined  2003-10-09

You want the label, not the name - that’s what shows in the Scene pane. Anything derived from DzObject should have a getLabel() function that returns a string.

 Signature 

DAZ Studio Frequently Asked Questions

Index of free DAZ Studio scripts and plugins list

Profile
 
 
Posted: 05 October 2012 08:41 AM   [ Ignore ]   [ # 2 ]
Member
Avatar
Rank
Total Posts:  124
Joined  2007-09-12

Everything is working fine with getLabel().

Thanks smile

 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