Shift + Right click to reset UI variable

  • Posts: 137
1 year 11 months ago - 1 year 11 months ago #1 by TreyM
Not sure how simple this is to do, but could something be implemented via a combo input (such as shift + right click or anything else tbh) to reset a UI variable to shader default?

If it's inefficient to read the shader after compilation, perhaps the default values could be stored in the user saved ini alongside the modified values. I'm not sure since I'm not really any kind of programmer.

Please Log in or Create an account to join the conversation.

  • Posts: 3671
1 year 11 months ago #2 by crosire
This isn't easy to do and would require some ugly hacks I'd much rather avoid. ReShade doesn't preserve defaults. They are gone as soon as you change the value.
The following user(s) said Thank You: TreyM

Please Log in or Create an account to join the conversation.

  • Posts: 137
1 year 11 months ago #3 by TreyM
:( That's too bad. I have an HSL shader setup here that cries every time I have to reset the values.

Please Log in or Create an account to join the conversation.

  • Posts: 1
1 year 11 months ago - 1 year 11 months ago #4 by Durante_
@TreyM Where did you get this HSL shader? Could you share it, please? It seems amazing!

Please Log in or Create an account to join the conversation.

  • Posts: 137
1 year 10 months ago #5 by TreyM
It was written by my friend kingeric1992. I'll see about getting him to release it.

Please Log in or Create an account to join the conversation.

  • Posts: 156
1 year 10 months ago - 1 year 10 months ago #6 by Fu-Bama

TreyM wrote: :( That's too bad. I have an HSL shader setup here that cries every time I have to reset the values.

Warning: Spoiler! [ Click to expand ]

Maybe you could put default value info in ui_label name? Like "Red (default #BF4040)"
Just an idea

Please Log in or Create an account to join the conversation.

  • Posts: 137
1 year 10 months ago #7 by TreyM
That's already been done. it's not ideal, and that isn't the point. It's still a massive pain to reset every single value.

Please Log in or Create an account to join the conversation.

  • Posts: 137
1 year 7 months ago #8 by TreyM

Durante_ wrote: @TreyM Where did you get this HSL shader? Could you share it, please? It seems amazing!


The shader has now been released here: Advanced HSL Shifting

Please Log in or Create an account to join the conversation.

  • Posts: 154
1 year 7 months ago - 1 year 7 months ago #9 by seri14
As an alternative, it can solve by 2 changes.
  1. Clarify that ReShade does not save completely disabled effect settings

    (checked MagicDOF)
    Techniques=MagicDOF
    [DOF.fx]
    ...
    <<EOF
    (unchecked MagicDOF)
    Techniques=
    <<EOF
  2. at load preset, ignore the disabled effect settings
disable technique. press the reload button.

more information: Changed technique settings to be initializable for each effect

Please Log in or Create an account to join the conversation.

  • Posts: 3671
1 year 4 months ago #10 by crosire
Link for pull request which adds support for this (for tracking purpose): github.com/crosire/reshade/pull/64
The following user(s) said Thank You: OtisInf

Please Log in or Create an account to join the conversation.