Digital Art Zone

 
     
Zero Displacement Limits
Posted: 14 July 2013 03:47 PM   [ Ignore ]
Administrator
Avatar
RankRankRankRank
Total Posts:  15684
Joined  2003-10-09

http://ovbi.org/~rhaseltine/data/ZeroDisplacementLimits.zip

A simple DAZ Studio script to zero the Minimum and Maximum values for surfaces that have Displacement Strength set to 0, to avoid weird effects when using the SSS Shader for DAZ Studio 4.5 and later.

 Signature 

DAZ Studio Frequently Asked Questions

Index of free DAZ Studio scripts and plugins list

Profile
 
 
Posted: 14 July 2013 06:03 PM   [ Ignore ]   [ # 1 ]
Addict
Avatar
RankRankRankRank
Total Posts:  8322
Joined  2009-05-14

That will come in handy eventually Richard thank you.

 Signature 

Pete

Somethings to Consider when starting to learn CG

My Gallery

My Render Thread and Tutorials

Proud member of the Bald Wizards Club and Co-operative

Facebook

Profile
 
 
Posted: 08 August 2013 06:04 AM   [ Ignore ]   [ # 2 ]
New Member
Total Posts:  7
Joined  2011-12-08

Thank you, Richard.

Profile
 
 
Posted: 09 August 2013 01:45 AM   [ Ignore ]   [ # 3 ]
Addict
Avatar
RankRankRankRank
Total Posts:  6566
Joined  2006-02-20

Sorry - I am always pointing people here - and forgot to say thank you ...
THANK YOU!

 Signature 

I like Bryce, DazStudio, Poser and Vue ... in alphabetical order. And I would probably like Carrara too, if I could find the time to become acquainted with it. Peace?
Poser and Daz Studio Free Resources Wiki: https://poserdazfreebies.orain.org

Profile
 
 
Posted: 09 August 2013 04:18 AM   [ Ignore ]   [ # 4 ]
New Member
Total Posts:  7
Joined  2011-12-08

Again, thanks for the help.

Profile
 
 
Posted: 09 August 2013 07:12 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  15684
Joined  2003-10-09

You’re all welcome.

 Signature 

DAZ Studio Frequently Asked Questions

Index of free DAZ Studio scripts and plugins list

Profile
 
 
Posted: 13 September 2013 06:00 PM   [ Ignore ]   [ # 6 ]
Power Member
Avatar
RankRankRank
Total Posts:  1125
Joined  2005-03-26

Is there a way to script a reset of all non-hidden values in a shader to their defaults in one swell foop—er, fell swoop?

 Signature 

My dA gallery
For God’s sake!  Gallifrey Stands!

And God still reigns.

Profile
 
 
Posted: 14 September 2013 06:01 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  15684
Joined  2003-10-09

Should be possible - using my script above as a starting point, something like

if ( materialList.length > 0 ) {
beginUndo();

var dispControl, maxControl, minControl;

// Go through the materials looking for the
// SSS Displacement Strength setting
var m , n;
for ( n = 0 ; n < materialList.length ; n++ ) {
  var nProp = materialList[ n ].getNumProperties();
  if ( for m = 0 ; m < nProp ; m++ ) {
  // Is the property hidden?
  if ( ! materialList[ n ].getProperty[ m ].isHidden() && materialList[ n ].getProperty[ m ].inherits( “DzFloatProperty” ) {
  materialList[ n ].getProperty[ m ].setValue( materialList[ n ].getProperty[ m ].getDefaultValue() );
  }
  }
}
}[/code[

instead of its original zeroing procedure (I haven’t checked that for functionality - and you’d need to handle other property types yourself in an analogous manner)

 Signature 

DAZ Studio Frequently Asked Questions

Index of free DAZ Studio scripts and plugins list

Profile
 
 
Posted: 10 November 2013 10:29 PM   [ Ignore ]   [ # 8 ]
Member
Avatar
Rank
Total Posts:  100
Joined  2013-09-24
Richard Haseltine - 14 July 2013 03:47 PM

http://ovbi.org/~rhaseltine/data/ZeroDisplacementLimits.zip

A simple DAZ Studio script to zero the Minimum and Maximum values for surfaces that have Displacement Strength set to 0, to avoid weird effects when using the SSS Shader for DAZ Studio 4.5 and later.

Thank you very much Richard, this surely come in play when you have many SSS surface and some with displacement some aren’t

 Signature 

My Deviantart : http://seumda.deviantart.com/

Profile