HISE Logo Forum
    • Categories
    • Register
    • Login

    components containing filmstrips are at 50% opacity is there a quick fix? LAF?

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 460 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Felix10870F
      Felix10870
      last edited by

      this is my newbie attempt... not working

      const laf = Engine.createGlobalScriptLookAndFeel();
      laf.registerFunction("setAlpha", function(g, obj)
      {
      g.setOpacity(obj,1.0);
      });

      **thank you

      ScreenShot_20220922074554.png

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Felix10870
        last edited by

        @Felix10870 what do you mean 50% opacity? Because of the grid overlaying it? If yes, then click on the Pen icon, this will show the UI how it will look like...

        Felix10870F 1 Reply Last reply Reply Quote 0
        • Felix10870F
          Felix10870 @Christoph Hart
          last edited by

          @Christoph-Hart ScreenShot_20220922085233.png

          already tried... setting properties from Json next

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Felix10870
            last edited by

            @Felix10870 Is setAlpha a LAF function?

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            Felix10870F 1 Reply Last reply Reply Quote 0
            • Felix10870F
              Felix10870 @d.healey
              last edited by

              @d-healey 'setOpacity' is the only reference to alpha in the API... so I have been plugging in the usual suspects... that is why I posted...

              Felix10870F 1 Reply Last reply Reply Quote 0
              • Felix10870F
                Felix10870 @Felix10870
                last edited by Felix10870

                @Felix10870 setAlpha is in the Script image API section... sorry... I got it from somewhere...

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Felix10870
                  last edited by

                  @Felix10870 I recommend watching my LAF video. The available functions that can be registered show up in the autocomplete popup.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  Felix10870F 1 Reply Last reply Reply Quote 0
                  • Felix10870F
                    Felix10870 @d.healey
                    last edited by

                    @d-healey I have been through them... alot... no reference to opacity... but shouldn't you be able to load any image into any component and get 100% opacity? I'm going to climb this mounatain... let you know how I solve it...

                    Christoph HartC 1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart @Felix10870
                      last edited by

                      Have you set the enabled property to false? This might cause a opacity of 50%

                      Felix10870F 1 Reply Last reply Reply Quote 0
                      • Felix10870F
                        Felix10870 @Christoph Hart
                        last edited by Felix10870

                        @Christoph-Hart Yes... just figured that out... is there away to disable the component while keeping the opacity at 100%... because the slider component could be used as a container for all kinds of animation... can we remove the event listener?

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @Felix10870
                          last edited by

                          @Felix10870 place an invisible panel over the control

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          Felix10870F 1 Reply Last reply Reply Quote 0
                          • Felix10870F
                            Felix10870 @d.healey
                            last edited by

                            @d-healey I was doing that... lol

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            59

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.8k

                            Posts