Digital Art Zone

 
     
DazScript question re/Pose Controls
Posted: 23 October 2012 08:46 AM   [ Ignore ]
Member
Rank
Total Posts:  54
Joined  2010-09-22

I’m trying to manipulate a pose control from a Daz Script and am unable to find where they are located in the Scene/Node hierarchy. 

I am looking for the controller for “CTRLBreastsFlatten”, but it isn’t listed under the modifiers for the Genesis object.  The code below spits out a list of just about every other control/morph/etc on my Genesis object, but none of the CTRL* controllers are in the list :

var genesis Scene.findNodeByLabel("Genesis");
for (var 
0genesis.getObject().getNumModifiers(); i++) {
 
print (genesis.getObject().getModifier(i).getLabel());

I suspect they aren’t listed because they aren’t technically morphs, but rather controllers for other morphs.  I’ve dug through the script API at length but can’t seem to find them anywhere.  Can someone point me in the right direction?

Thanks

 

Profile
 
 
Posted: 23 October 2012 09:00 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRank
Total Posts:  343
Joined  2003-10-09

DAZ Studio > v4.x > Reference Guide > Scripting > API Reference > Samples # Properties

-Rob

 Signature 

- Documentation Center
- Install Manager
- DAZ Studio 4.x
- DSON Importer
- DSON File Format Specification

Profile
 
 
Posted: 23 October 2012 09:03 AM   [ Ignore ]   [ # 2 ]
Member
Rank
Total Posts:  54
Joined  2010-09-22

Disregard my question, just found the answer.  The CTRL controllers are properties, not modifiers.  To get to them use the following code :

var genesis Scene.findNodeByLabel("Genesis");
for (var 
0genesis.getNumProperties(); i++) {
 
print (genesis.getProperty(i).getLabel());
Profile