Many times I have scene completed with many models properly located with trasnforms and I should like to save them as STL to manage outside Slicer. I shouldn´t like to harden them because sometimes a little position fix is needed later.
It should be very usefull to be able to save models with/without transform in Save Panel as:
Scene save is primarily for data saving. There are various modules that are better suited for data export.
For example, you can export models from the Data module’s subject hierarchy tree using right-click menu if you install Slicer Morph extension. If needed, the behavior can be tuned (e.g., make sure transform is applied, allow export an entire folder, etc).
Clone models and harden transforms is the way I´m working nowadays using Scene Save. The trouble is when many models have to be experted from the scene.
I´ve install Slicer Morph extension and export models directly in Data Module is a really usefull way to save data as STL.
If the plugin should add the option I´ve proposed, it should be even better solution for this task.
Note that you can customize entire Slicer’s behavior to make you highly productive using short Python code snippets. For example, the entire “Export as” feature is essentially 30 lines of Python code. You can start from that and modify it to fit your needs (e.g., clone the node and harden the transform). If it works well for you then you can contribute it back to SlicerMorph (and in some form the export feature will be integrated into the Slicer core).
Original yellow model come back to original position but is still trasnformed??? Cloned model is OK. If I import saved model, it is in hardened position as expected too.
What am I doing worng with OriginalModel_Yellow? I think I´m just cloning it but don´t looks like.
Ok. I answare myself.
I think is something related with Slicer version. In new 4.13 when you clone a node, new cloned node is not related to original node transform.
I´ve add 2 lines to code to apply transform to cloned node and when I harden it there is no change in the original node.
it works for me! @lassoan, who can I share modded file ExportAs.py?
The proper way of proposing changes to source code is via github (fork the repository into your github account, make the changes there, and then create a pull request). Since changes affect a single file, you can do all these steps with a few clicks on the github website: click the edit button here, make the changes in the code, and click “Propose changes” button at the bottom.