Setting the value of rotation within a property [Resolved]
Hi, I'm working on a geograft figure and have a morph that "hides" part of the figure.
I have a property that controls the slider and I have adjusted rigging to shape to ensure the bones follow the morph.
Becuse this is simulating the removal of this part of the figure I dont want the morph to be a slider, rather it should be on or off.
To facilitate this I've created a second custom parameter (boolean) that turns the slider to 1 when on and 0 when off and hidden the original. So far so good. To finish this off I also want to reset the joint rotations off all the bones in the affected part back to zero regradless of their current value when this custom parameter is selected on. Is this possible? Looking at the properties panel I can add and subtract but dont seem to be able to set a value.
Thanks in advance
Comments
Yes, you can, in Property Hierarchy, link the joint rotation properties as the Sub-Components of the control dial, and better use Type : ERC [KEYED] to precisely control the rotation value. into 2nd Stage by using Multiply.
Besides, if this part of geograft has individual surface, you don't have to create a morph as well as a control dial to hide it... instead, you may use conditional geograft, i.e. only one toggle property to control shown / hidden as well as zeroing joint rotation values.
Rather than using keys in this case you could just multiply by the Boolean - or its inverse, I was having trouble following. But On is one, multiplying the rotation by one leavces them unchanged; off is zerom, multiplying the rotations by zero makes them zero.
Thanks for the reply Crosswind. I had tried using keyed before but must be doing sometgin wrong becuase it still "adds" to the amount thats on the dial already?
But sorry, I misunderstood the case ! As Richard mentioned above, the correct way is to place the joint rotation properties into 2nd Stage of Sub-Component under the Controller property, by using the calculation of Multiply based on the boolean value.
BTW, are you that LZY who is the content creator ?
Thanks both, is there some documentation on how to do that? I can see I can drag the property to the 2nd stage and set the type to erc multiply. How do I control the value I want to apply? In this case when the property is set to 1 (i.e. a boolean value of true) I would want the rotation values to be multiplied by zero...
I only know this document in here - https://www.renderosity.com/freestuff/items/81207/tutorial-daz-studio-erc-feature which is pretty comprehensive.
As for the question, you have to do it reversedly... With a boolean value, Off means 0, On means 1, so you need to set 1 as the default value on the Control property which means Show, then 0 means Hide (Not to Show). Then you toggle it to Off which means 0, the joint rotation values will be set to 0.
Then, as for controlling that Morph property (I think value 1 is used for Hide, 0 is used for Show), if so, you may use ERC [KEYED] with Key Type: Constant, then define values on it. Then hide this morph property as I dont't think you hope the users to manually tweak its values...
Thanks again both, really appreciated. Got it working...
Great ! You're welcome ~