Get the active Layer object in the project. The active Layer object corresponds to the active layer in the active window (graph, worksheet, matrix, or layout)
ActiveLayer()
The active Layer.
#With graph active import PyOrigin Layer=PyOrigin.ActiveLayer() #Reset the layer name and prthe new name Layer.SetName('RightY') NewName=Layer.GetName() print('The new name for layer is %s' % (NewName))