Forum: DAZ|Studio


Subject: Saving an alternate UV Map set with a prop.

3dcheapskate opened this issue on Dec 11, 2012 · 14 posts


Bejaymac posted Thu, 13 December 2012 at 7:30 AM

Scratch some of what I said, I forgot I made the DS4 preset on my TriAx V4, that's where the problem going from DS3 to DS4 was, loading V4 from her CR2 and my DS3 presets work as intended. However the fresh material preset I just made in DS4 with V4 doesn't work in DS3, there is a difference in the code.

DS4

setBusyCursor();
this.m_aNodes = g_oSceneHelper.collectNodes( true, true, true );
beginUndo();
for( var i = 0; i < this.m_aNodes.length; i++ ){
this.m_oNode = this.m_aNodes[ i ];
var oUV;
var oObject = this.m_oNode.getObject();
try{
var oShape = oObject.getCurrentShape();
var oGeom = oShape.getGeometry();
oUV = new DzVertexMap( 1 );

 

DS3

setBusyCursor();
this.m_aNodes = g_oSceneHelper.collectNodes( true, true, true );
beginUndo();
for( var i = 0; i < this.m_aNodes.length; i++ ){
this.m_oNode = this.m_aNodes[ i ];
var aBone, oShape, oObject, oUV;
if( !this.m_oNode.inherits( "DzSkeleton" ) ){ continue; }
aBone = this.m_oNode.findBoneByLabel( "hip" );
if( aBone )
{
try{
oObject = aBone.getObject();
oShape = oObject.getCurrentShape();
oGeom = oShape.getGeometry();
oUV = new DzVertexMap( 1 );

That's the same section of code just before the UV's are defined.