Show/hide layer how?

Home Forums General Using Ctrlr Show/hide layer how?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #765
    funk313
    Participant
      • Topics: 4
      • Replies: 2
      • Total: 6

      Hi
      Can somebody please explain how to do this? Ive searched the forum and tried to get under the hood on some of the panels but cant figure out how to do this..
      I dont know anything about LUA either which I expect is the method used. thanx!

      #4969
      dasfaker
      Keymaster
        • Topics: 80
        • Replies: 793
        • Total: 873
        • ★★★

        Layer visible
        [code:7ftw7y04]canvas = panel:getCanvas()
        canvas:getLayerByName("Layer Name"):setPropertyInt("uiPanelCanvasLayerVisibility", 1)[/code:7ftw7y04]

        Layer invisible
        [code:7ftw7y04]canvas = panel:getCanvas()
        canvas:getLayerByName("Layer Name"):setPropertyInt("uiPanelCanvasLayerVisibility", 0)[/code:7ftw7y04]

        #5383
        zeoka
        Participant
          • Topics: 73
          • Replies: 466
          • Total: 539
          • ★★★

          Thank you Dasfaker !

          But what’s [code:7ftw7y04] ?

          Is it possible :

          [code:7ftw7y04]canvas = panel:getCanvas()
          canvas:getLayerByName(“Layer Name”:):setPropertyInt(“uiPanelCanvasLayerVisibility”, 1)[/code:7ftw7y04]

          [code:7ftw7y04]canvas = panel:getCanvas()
          canvas:getLayerByName(“Layer Name” ; “layer name ; layer name ; etc…….):setPropertyInt(“uiPanelCanvasLayerVisibility”, 0)[/code:7ftw7y04] ??

          I’ve a combo with 24 values , 24 buttons and 24 layers  Damn how i could rely all of that ?

          GetModulatorValue exists ? How get a button on and all others off ? i saw on a virus panel

          buttons values 0=0 1=1 , 0=0 2=2 ,etc + a script and a slider+ a script (exactly what i need to start) but

          like i’m noob i don’t know exactly what i do ; i cant get mine because probably there other functions in thoose scripts.

          Any help is greatly appreciated  !

           

           

          #5558
          zeoka
          Participant
            • Topics: 73
            • Replies: 466
            • Total: 539
            • ★★★

            Ok thank you again Dasfaker !

            I have correctly put the the command line

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Using Ctrlr’ is closed to new topics and replies.
          There is currently 0 users and 91 guests online
          No users are currently active
          Forum Statistics
          Threads: 2,495, Posts: 17,374, Members: 77,605
          Most users ever online was 12 on January 22, 2019 3:47 pm
          Ctrlr