Stopped working script in DS 4.7 - Props Export - PP2 exporter 20d
![Andrey Pestryakov](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/userpics/862/nKTZQN7A6L0WR.jpg)
There was a good script for DAZ Studio. Worked fine in DS 4.6 - script created PP2 and optimized geometry of reducing the size for OBG.
In DS 4.7 geometry disappears ... Can you fix it?
Post edited by Andrey Pestryakov on
Comments
There was a good script for DAZ Studio. Worked fine in DS 4.6 - script created PP2 and optimized geometry of reducing the size for OBG.
In DS 4.7 geometry disappears ... Can you fix it?
Is any alternative to this script to generate PP2 props from DS 4.7?
Merged duplicate threads.
Is this a link to the original file? You can't repost that without permission, and no one can edit the script and give you the modified version without permission. Someone could tell you how to edit it yourself, however.
I deleted the file.
PP2 Export.dsa by JWAS84 and DUKE533 carries a zero-restriction copyright. Anybody's free to update/distribute.
Portion of the file:
I can't code for Daz to save my soul, but if someone's willing to update it to work with 4.7 I can pass it along.
The last version of it was actually posted on the old forums, that way people could just copy & paste it into an empty DSA, sadly that forum is long gone (as is the archive) but I do have the code from that post and can post it here if anyone wants it.
I can't code for Daz to save my soul, but if someone's willing to update it to work with 4.7 I can pass it along.
I had to put DAZ Studio 4.5, to use this script.
Is it something like this?
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/nodes/convert_figure_to_props/start
No, it creates a .pp2 prop file.
The PP2:
Cool information in here. Thanks for posting the link to the script !
Glad i made a backup of the latest 4.6 before updating to 4.7 ...
Good find for the code! thanks.
i located the problematic section of the code that makes it fail in DS4.8
around line 741 there's a line of code that reads
oNode.setWSScale( DzMatrix3() )
if we replace that line with
//changes by mCasualJacques July 20 2015 ** begin **
// oNode.setWSScale( DzMatrix3() );
oNode.getScaleControl().setValue(1);
oNode.getXScaleControl().setValue(1);
oNode.getYScaleControl().setValue(1);
oNode.getZScaleControl().setValue(1);
//changes by mCasualJacques July 20 2015 ** end **
it appears to work !!!
so i wont need to stay in DS3 when building my props
i'll double check that the code i got has the permissive copyright clause ...
yes !
yes !!!
so i'll post the DS4.5+ compatible version on my site and on a Forum Thread
well actually i better build or obtain a correct DzMatrix3
in case the parent note has non-unity scaling
so i wont use the getXScaleControl().setValue(1) way
it will be
oNode.setWSScale( DzMatrix3(1,0,0,0,1,0,0,0,1,0,0,0) ); if we're in DS4.5
and if we're in DS 3 it will be the old code or this one if it's compatible
and i'll fix the disappearing buttons issue
and there's an error in the props that make their default scale 0 instead of 1,
so when you "zero" most of my props, they disappear because they get scaled to 0% !
so around line 393
it's ready
http://www.daz3d.com/forums/discussion/59598/make-poser-props-pp2exporter-by-duke533-now-works-in-ds4-8
note: the script mcjPackager : https://sites.google.com/site/mcasualsdazscripts2/mcjpackager is really really worth reading about