i use the script in the document below
and it has the error
The Slicer API is kept being improved. Therefore, if you use a code snippet from the script repository, make sure that you use examples that are for your Slicer version.
If you use the latest documentation (https://slicer.readthedocs.io/en/latest/) then you need to use the latest Slicer Preview Release.
If you use a different Slicer version then choose the corresponding documentation version in the lower-left corner in documentation page:
If you use the example corresponding to your Slicer version and you get an error such as module 'slicer' has no attribute ...
then most likely you are not running the script in the Slicer application’s Python environment, but you are using the Python executable. The Python executable does not import any of the application classes, so features that depend on these classes, such as DICOM import/export are not available. You need to run your script in the Slicer application executable as shown here.
thank you lassoan,but how to find the 4.11 version document now,the base framework we use is Slicer 4.11,it’s hard to change it to 5.x
By using such an old version you are ignoring all our efforts that we invested into improving Slicer in the past few years. Please upgrade to the current stable version. If something prevents you from doing that then let us know, maybe we can help.
Before 4.13 we stored Slicer documentation on this wiki: https://www.slicer.org/wiki/Documentation/4.10/Developers
thank you lassoan
where can i find the slicer release note for every version?