Wed, Nov 20, 7:58 AM CST

Renderosity Forums / DAZ|Studio



Welcome to the DAZ|Studio Forum

Forum Moderators: wheatpenny Forum Coordinators: Guardian_Angel_671, Daddyo3d

DAZ|Studio F.A.Q (Last Updated: 2024 Nov 20 6:51 am)



Subject: DS3: Applying a texture to ALL materials in the selected object?


3dcheapskate ( ) posted Sat, 17 September 2011 at 1:17 AM · edited Fri, 15 November 2024 at 7:53 AM

I've created a DS material (.dsb) and I've realised that I can make it apply to ALL materials in the selected object if I right-click the icon for the script, select 'Open in DAZ Script IDE...', scroll down to the last function in the file 'DsActions.prototype.setMaterialProperties()', and within the 'switch(sID)' statement move the material data from the 'case "materialname":' to the 'default:', not forgetting to delete  delete the 'case "materialname":' afterwards. I can copy the edited text and save the result as a .dsa file.

Two questions:

  1. Is this (i.e. putting the material setup in the 'default') the best way to do it?

  2. How do I convert the resultant .dsa back to a .dsb?

TIA

(posted the same question for P6 in the Poser forum)


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).



RHaseltine ( ) posted Sat, 17 September 2011 at 8:35 AM

What you are doing is pretty much creating a shader preset - those, by default, apply only to selected surfaces though you can override that by holding down the cmd(Mac)/ctrl(Win) key when launching the preset. You should have .dsb as a format otpion in the Save as dialogue (and .dse, encrypted files that non-one can read (including you, so don't ever do this to a working file - but if you have custom code you want to keep to yourself you can save a distribution file as .dse).


3dcheapskate ( ) posted Sat, 17 September 2011 at 10:44 AM

Thanks Richard, using a shader preset instead seems to do the trick. And since there's no need to edit the script I can save it straight off as a binary.

For some reason I'd got it into my head that 'materials' used image maps, but shaders were procedural. So what exactly is the distiction between shaders and materials then?


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).



mishamcm ( ) posted Sat, 17 September 2011 at 11:09 AM

A material preset is tied to a particular material zone(s) on a particular object, while a shader can be applied to any material zone on any object.  Both can be image-based, procedural, or a combination.


3dcheapskate ( ) posted Sun, 18 September 2011 at 7:45 AM

Thanks, it's all beginning to make some sort of sense now.


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).



3dcheapskate ( ) posted Tue, 20 September 2011 at 9:06 PM

Just released a new set of textures, and I've included separate material presets for a specific model, and shader presets for other models as advised here. Hopefully I've got it right now!


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).



Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.