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

Empty morph deltas

$
0
0
var node = Scene.getPrimarySelection();
var obj = node.getObject();
var morph = obj.findModifier("PHMBrowWidth");
var deltas = morph.getDeltas();
print("Num deltas: "+deltas.getNumDeltas ());

If I run the previous lines of code (on G8F), I get 0 as result of number of deltas by default. But if I dial up the "Brow Width" morph on the character to any value, I get the correct number of deltas of the morph. 

Then if I analyze the figure by script, create an array of morphs from it, and try to get the deltas from all of the morphs one by one, the number of deltas returned is always 0, even if the morphs are all dialed up on the figure. 

Any idea? I'm trying to edit the geometry of all morphs on a figure by script in order to save tons of time...


Viewing all articles
Browse latest Browse all 1067

Trending Articles



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