Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

How to delete a morph knowing his name ?

$
0
0

hello,

is there a way to delete a morph knowing his name ?

I'm using this script to detect the name of the group where the morph belong and I get his name using getLabel

var oPaneMgr = MainWindow.getPaneMgr();
var oPane = oPaneMgr.findPane( "DzParametersPane" );
if( oPane ){
	print ("ok")
 var oEditor = oPane.getNodeEditor();
 var aProperties = oEditor.getPropertySelections( true );
 for( var i = 0; i < aProperties.length; i += 1 ){
  print( aProperties[ i ].getLabel() );
  oGroup = aProperties[ i ].getGroup()
  print( "Group : " + oGroup.name )
 }
}

 

thanks


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>