Digital Art Zone

 
     
Extending DzNode
Posted: 13 October 2012 06:41 AM   [ Ignore ]
Member
Avatar
Rank
Total Posts:  108
Joined  2007-09-12

Hello,
I have found out that for my plugin I need to detect wether a DzNode (in particular a DzSkeleteon) has finished editing. I have solved the problem by extending the DzNode class and adding a new signal into it that gets emitted when finishedEdit() is called.

My question now is how can I use my extended class in the plugin since I need that my override is called by every DzNode in the scene. I hope that I have explained my problem correctly.

 Signature 

Favourite Figure: Victoria 5
My Art Gallery: http://mattiascibien.azurewebsites.net/3d-art/
Developer of CameraReady for DAZ Studio (thesis project).

Profile
 
 
Posted: 15 October 2012 11:50 AM   [ Ignore ]   [ # 1 ]
Member
Rank
Total Posts:  62
Joined  2004-12-26

What you are attempting is not going to work.  There is no mechanism to replace all skeletons with your node sub class.  Depending on what you are trying to do however there are other signals to listen for: “drawnDataChanged()”, and “transformChanged()” on DzNode.  “drawnDataChanged()”, “cachedGeomUpdated()” on object also.

Profile
 
 
Posted: 16 October 2012 05:56 AM   [ Ignore ]   [ # 2 ]
Member
Avatar
Rank
Total Posts:  108
Joined  2007-09-12

cachedGeomUpdated()? I have looked for it in the docs but it is not there. Autocompletion shows it by the way.

 Signature 

Favourite Figure: Victoria 5
My Art Gallery: http://mattiascibien.azurewebsites.net/3d-art/
Developer of CameraReady for DAZ Studio (thesis project).

Profile