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

Is It Possible To Access The Internal Name From A PP2 In DS4 Via DAZ Script? [How About The OBJ Name

$
0
0

I've recently updated the Poser version of my Smart+ Prop/PropGoto+ freebies - http://www.daz3d.com/forums/discussion/39376/
Part of the update was to use the internal name of the prop to identify Smart+ props like this:

Extract from file 'Smart+ Prop DS.pp2':

version
{
number 6
}
prop SmPlHaRoTestRod
{
geomCustom
...
}
prop SmPlHaRoTestRod
{
name TestRod
...

The "SmPlHaRo" prefix added to the internal name indicates it's a Smart+ prop targeted to the hand, requiring a rod-type grip.
This works fine in Poser 6, 8, and 9 (all the versions I can test with).

I'm working on the equivalent DAZ Studio update now (I'm using the old DAZ Script DSA format since I need to support DS3 still). So I'm using oProp.getLabel() to get the external name and oProp.name() to get the internal name.

DS3 works fine with the above (oProp.getLabel()="TestRod" and oProp.name="SmPlHaRoTestRod" as expected)

But DS4 seems to ignore the internal name and create its own, based on the CR2 name ((oProp.getLabel()="TestRod" but oProp.name="Smart+ Prop DS_18"), and the name looks like the subfolder names that DS creates in its C:\Users\\Documents\DAZ 3D\Studio\My Library\data\ folder which would make sense (I can't find the DS4 equivalent folder)

So the question is simple:
Is there any way to get the Poser prop internal name (as defined in the PP2)from DAZ Script in DS4?


Viewing all articles
Browse latest Browse all 1036

Trending Articles



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