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

Determining the actual class of an object

$
0
0

Hi,

How can I determine the actual class an object? For example: 

var oRoot = Scene.getSelectedNode(1).getSkeleton();
var numProps = oRoot.getNumProperties();

var oProp;
for(var i = 0; i < numProps; ++i)
{
   oProp = oRoot.getProperty(i);

   // determine the class of current oProp
   ???
}

I've tried "typeof" and "oProp.__proto__" and all returns "Object". How can I determine which subclass of DzProperty oProp actually is?

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>