Open hgretar opened 4 years ago
How do you set_orientation()?
I create a screen in build_beamline
beamLine.screenKB = rscreens.Screen(beamLine, center=[0, 60000,10],x=[1, 0, 0], z=[0, -np.sin(angle), np.cos(angle)])
where the "angle" is the variable I would like to change. In plot_generator I do the following:
beamLine.screenKB.z=[0, -np.sin(new_angle), np.cos(new_angle)]
got it to work by using set_orientation(). Thanks for the info.
I've been using plot_generator to record the size of a focused beam as a function of both screen position and screen rotation. The script works well when moving the screen but when I want to change the rotation it does not reset the angle of the screen.