Thank you for providing the instructions.
Using Transforms, I defined the rotation angle of each slice, then I created a sequence that contains all the slices. And I got no errors this time in the code you provided, but I don’t get the 3D volume. Am I missing a step?
Also, I noticed, when I apply the rotation to each slice, only the last slice’s rotation is displayed (the other slices are not rotated even though I defined their rotation angle).