Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Using save_image with specific layers

edited August 19 in Python scripting

Hi Matthias,

I would like to use the save_image method to be able to take a screenshot of only a specific layer. What should I use to to be able to do that? Do I need to hide the other layers before using the save_image method, if so; how can I do that?

Comments

  • Hi,

    yes, you need to hide all other layers.

    This is how you do this in a script:

    layer_to_show = 45
    datatype_to_show = 0
    
    lv = RBA::LayoutView::current
    lv.each_layer do |l|
      l.visible = l.source_layer == layer_to_show && l.source_datatype == datatype_to_show
    end
    

    Matthias

  • Thank you Matthias, it helped a lot.

Sign In or Register to comment.