Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
DESCRIPTION: Script to aid in the redundancy of setting up quick selection sets all the time for the same assets but in different files. Exports a mel script that will set up the identical quick selection set in another scene.
Exporting: 1) Select a quick selection sets in the outliner to be exported 2) Run script - it will export a mel file to recreate the sets
Importing: 1) Run the mel in your new file you want to set up the quick selection sets in 2) It will ask you want to add a prefix. If you're using a referenced asset put in the prefix. If not, leave it blank:)
Features: 1) Checks for referencing data and removes it in the exported selection set 2) Can do multiple selection sets at once 3) Will account for prefixes on import if desired 4) Reports if set members aren't found in imported sets
Thanks: To David Bokser for answering my many questions and Scott Englert for my picking apart some of his scripts