Zero specified node Pose script
TimingisEverything
Posts: 112
Hello, I'm trying to zero the pose of 2 specific nodes (leye, reye) could somebody assist me with this script?
Comments
Just the transforms, or are you wanting to zero morphs shaping those areas - and if so, which figure is it? Getting the nodes if you have the figure or any aprt of it selected is fairly simple -if your node doesn't .inherit( "DzSkeleton" ) then .getSkeleton(), then on that .fingNodeChild( "Name" , true ), then use the .setXRotControl() etc. to get the parameters and .setValue( 0 ) to zero them.
I mistyped -should have been findNodeChild, which works on names and not labels. And it's getXRotControl and so on that you want
Thank you for helping me with this Richard, I still recieve a error when using this code. I copied the exact code you posted.
my error log reads
F:/OLD HD/DAZ4/Content/ABCDAZ/Testscript.duf (1,1): Syntax error - expected '{' or '['
Error reading file, see log for more details.
Hmm, works for me pasted into the ScriptIDE window - try that with the code from your file (Window>Panes(Tabs)>Script IDE and click the Execute button)
nevermind my mistake, it was because I saved it to a .duf file instead of .dsa.
It works perfectly, Many thanks for helping me with this!