Script to turn off all limits for Surfaces?

Hi all,

I was wondering if there was a ready made script available that turns off the limits on all materials for a selected figure or prop?

Reason I ask: I have seen that when you copy materials over from one asset to another, the limits stay on, it doesn't take the "limits off" setting with it... Quite a pesky thing to turn them off one by one...
 

Thanks a lot,
Kind regards,

Me

Comments

  • FirePro9FirePro9 Posts: 456

    If such a script were to exist you'd have a good chance of finding it here:  https://sites.google.com/site/mcasualsdazscripts/Home

    BTW, I am curious, what do you do with no limits on surface matierials?  I am familiar with no limits for bone rotations but never considered removing limits for surface materials.

  • barbultbarbult Posts: 24,708
    Turning limits off for things like the bump map value can be useful.
  • TotteTotte Posts: 14,043

    Could be done, but materials are such a pain to work with in scripts, very time consuming and fiddly.

  • Thanks Barbult, tunring limits off bump, normal, displacement.... does make sense.

  • A search of the forum reveals this has been asked for multiple times for the same reason, so here is a quick script to do so.

    // DAZ Studio version 4.15.0.2 filetype DAZ Script// Remove all limits from material properties//// Author: Omniflux// Version: 1.0// Date: 2021-09-03(function(){	beginUndo();	try	{		Scene.getSelectedNodeList().forEach (function (oNode) {			oNode.getObject().getCurrentShape().getAllMaterials().forEach (function (oMaterial) {				oMaterial.getPropertyList().forEach (function (oProperty) {					if (oProperty.isClamped && oProperty.isClamped())						oProperty.setIsClamped (false);                });			});		});	}	catch (e)	{		MessageBox.warning (qsTr (e.message), qsTr ("Error"), qsTr ("&OK"), "");	}	acceptUndo ("Remove material limits");})();

     

    dsa
    dsa
    RemoveMaterialLimits.dsa
    673B
  • Thank you :-)

Sign In or Register to comment.