It looks like you're new here. If you want to get involved, click one of these buttons!
Every time I try to save layer properties by using lv.save_layer_props(), it resets the layer colors. I know that I can first save layer properties from gui then load it via script. However, I directly want to inherit layer properties from the gui via python scripting. Is it possible? Thanks in advance!
app = pya.Application.instance() mw = app.main_window() mw.load_layout(layout_path,0) #load the layout to the mainwindow so that you can see it lv = mw.current_view() lyp_path = os.path.join(directory,layer_property_file_name + ".lyp") lv.save_layer_props(lyp_path) #Saves layer properties into the directory defined in lyp_path RESETS THE COLORS :(