SU Layer Files
-
Where is the layer file stored and what is the extension for the SU layer list. And can you edit layer lists directly from that location?
-
@rhankc said:
Where is the layer file stored and what is the extension for the SU layer list. And can you edit layer lists directly from that location?
The layers live within the model file itself. Didier's LayerManager does lots of clever things including import/export of layers...
My specialised script [LayerExIm.rb v1.0] just imports/exports lists of layer names (xxx.layers)...
See here: http://www.sketchucation.com/forums/scf/viewtopic.php?p=15372#p15372
Usage: Select Export and a list of layers is made in the model's folder
called 'model_name.layers'.
Select Import, a browser lets you select the 'xxx.layers' file
and then it's merged into the current model's layers.
You can also write your own layer list, use a plain text editor
[e.g. NotePad.exe] and suffix it .layers; the layer names
should be one per line, use normal text characters [no tabs]... -
I can see where the layer 0 is in the .skb, After writing the list in notepad do you just paste it in at the layer 0 end?
And thanks for the extra layer ext rb. I'll give it a shot.
-
The layer list that is made in Notepad ie: newlayerlist.layers.txt , goes in the Templates folder? Then you rename without the .txt, then use the utility and select import.... oh yueah baby, that works, thanks
-
@unknownuser said:
You can have different 'layers' lists to suit different stages of your work, justas you can have different templates or styles for different types of modelling
Now that's COOL!... Thanks for your help
-
@rhankc said:
I can see where the layer 0 is in the .skb, After writing the list in notepad do you just paste it in at the layer 0 end?
And thanks for the extra layer ext rb. I'll give it a shot.
The skb file is just a backup of the skp file. Writing or pasting stuff manually into the model's file without deeeeeeeep knowledge of what you are doing WILL mess up the model completely ! Don't be tempted to try it... unless you read and write binary code - it's NOT a simple text format...
Use my LayerExIm.rb script tool to import a list of layer names via the Ruby API interface - it knows how to make new layers/names and insert them into the data base properly. You can first export a list from an existing skp that has the layer names you need, or simply write a notepad.exe based text list of the layer names - one per line, normal charcters, no tabs... (start with it called MyLayers.txt BUT afterwards change the file's suffix to MyLayers.layers when you've done so the importer can see it... Then use my Layer Import tool, select the list and the layers will appear in the model. If that model file were put into the Templates folder and its name selected under Preferences as the default template then you'll always start with that set of layers in any new skp.
Purging the model will remove any layers that are 'empty'. If you want to get them back reimport the .layers list... You can have different 'layers' lists to suit different stages of your work, just as you can have different templates or styles for different types of modelling...
Advertisement