Where do I start ? Creating a Parameter slider for a Surface attribute
Olo_Ordinaire
Posts: 742
Sorry if this is the wrong place to ask this. I'm looking for the documentation / examples of how to reveal an attribute of an item's surface out in the Parameters tab.
Instead of burrowing down through the surfaces attributes and sub-menus, I want one or two things to be controllable from the Parameters tab -- in the same manner as morph sliders are.
Can someone point the way ?
Thanks in advance.
Olo
Comments
That would probably be done with ERC I think.
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/userguide/creating_content/rigging/tutorials/creating_erc_pt1/start
If you prefer a video tutorial, https://www.daz3d.com/creating-content-for-daz-studio goes into detail on creating ERC dials and then some lol.
Thanks @TheKD ! That looks like a good place to start.
When you say 'Surface', do you mean a material in the surface pane? If so, you need these scripts.
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/elements/post_load_material_proxy_create/start
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/elements/post_load_material_proxy_link_properties/start
They basically allow you to set up a channel for a material in the Parameters pane so it can be used with ERC.
Thank you. Those are interesting. So, it looks like the sliders on a custom object are not just "set" or "created" when the designer creates the thing, but are created via script code with the object is loaded into a scene ?
P.S. And many thanks, @maclean for all those beautiful props!
It depends on the type of property. Using ERC, you can a create a custom slider which combine various properties into one. For example, a morph which is triggered by another morph, or by a rotation slider, etc. But the scripts I linked above were specifically written by Rob Whisenant at DAZ to allow the creation of proxy properties which aren't normally available to the user - ie. linking a surface material to a parameter property. I used them in Everyday Appliances (and some other things I can't remember offhand). One switches the fridge light on when the door opens, and another switches the microwave light on when the door closes.
Glad you like my products! It's always good to know!