How to Use Layers: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Pware (talk | contribs)
mNo edit summary
Pware (talk | contribs)
 
(84 intermediate revisions by the same user not shown)
Line 1: Line 1:
The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''Trainz Plus''' (in '''Surveyor Classic''' mode) and '''TRS22'''.
<table width=1000 bgcolor=#000000 cellpadding=2>
<table>
<tr valign="top">
<tr valign="top">
<td>
<td>
__TOC__
<table width=996 bgcolor=#ffffff cellpadding=2>
<tr valign="middle">
<td width=35>[[image:Information.png|35px|link=]]</td>
<td><span style="font-size: 15px;">The information in this Wiki Page explains how to create and manage layers in '''T:ANE''', '''TRS19''', '''TRS22''' and '''Trainz Plus''' using '''Surveyor Classic''' (all Trainz versions) and '''Surveyor 2.0''' ('''TRS22PE''' and '''Trainz Plus''').</span></td>
</tr>
</table>
</td>
</td>
<td>
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<td colspan=2><span style="font-size: 17px;"><b>In Summary:</b></span></td>
</tr>
</tr>
</table>
<br>
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td width=729>&#160;</td>
<td>'''Layers are a ''Surveyor'' tool that allows you to better manage the objects that are placed in your Trainz World.'''<td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>[[image:NextDown.png|link=#stepWhat|alt=Next Down|Next Down]]</td>
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>
<td>'''Layers are a ''Driver'' tool that allows you to change what the players see as they drive around your Trainz World.'''<td>
__TOC__
</tr>
</td>
</table>
<td>
<br>
<span style="font-weight: 700; Font-size: 15px;">Some Helpful Tips</span><br>
<span style="font-weight: 700; Font-size: 15px;">Some Helpful Tips</span><br>
<table bgcolor="black" width=600>
<table bgcolor="black" width=600>
<tr>
<tr>
<td>
<td>
<table bgcolor="white" width=596>
<table bgcolor=#ffffe0 width=596>
<tr>
<tr>
<td bgcolor="black" colspan=2>
<td bgcolor="black" colspan=2>
Line 30: Line 37:
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td width=25>[[image:PencilTips.PNG|link=]]</td>
<td>'''Use Route layers for all those objects that will appear in every Session based on the Route'''</td>
<td>'''Use Route layers for all those objects that will appear in every Session based on the Route'''</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>'''When you edit Route layers, <u>always</u> save the Route'''</td>
<td>'''When you edit Route layers, <u>always</u> save the Route'''</td>
</tr>
</tr>
Line 45: Line 52:
<tr>
<tr>
<td>
<td>
<table bgcolor="white" width=596>
<table bgcolor=#ffffe0 width=596>
<tr>
<tr>
<td bgcolor="black" colspan=2>
<td bgcolor="black" colspan=2>
Line 51: Line 58:
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td width=25>[[image:PencilTips.PNG|link=]]</td>
<td>'''Use Session layers for all those objects that will ONLY appear in the current Session'''</td>
<td>'''Use Session layers for all those objects that will ONLY appear in the current Session'''</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>'''When you edit Session layers, <u>always</u> save the Session'''</td>
<td>'''When you edit Session layers, <u>always</u> save the Session and avoid using <span style="font-size: 15px;">"Default"</span> as the Session name'''</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>'''Avoid using <span style="font-size: 15px;">"Default"</span> as the Session name'''</td>
</tr>
</tr>
</table>
</table>
Line 70: Line 73:
<tr>
<tr>
<td>
<td>
<table bgcolor="white" width=596>
<table bgcolor=#ffffe0 width=596>
<tr>
<tr>
<td bgcolor="black" colspan=2>
<td bgcolor="black" colspan=2>
<span style="font-size: 17px; color: white; font-weight: 700;">&#160;When Editing Layers&#160;</span></td>
<span style="font-size: 17px; color: white; font-weight: 700;">&#160;When Editing&#160;</span></td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td width=25>[[image:PencilTips.PNG|link=]]</td>
<td>'''Lock the layers that you are not currently editing'''</td>
<td>'''Lock the layers that you are not currently editing'''</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>'''Never add track objects (signals, switches, etc) to a layer that is higher up the layer list than the track layer'''</td>
<td>'''Always be aware of which layer is the <span style="font-size: 15px;">Active Layer</span>'''</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</table>
<br>
<table bgcolor="black" width=600>
<tr>
<td>
<table bgcolor=#ffffe0 width=596>
<tr>
<td bgcolor="black" colspan=2>
<span style="font-size: 17px; color: white; font-weight: 700;">&#160;When Creating&#160;</span></td>
</tr>
<tr valign="top">
<td width=25>[[image:PencilTips.PNG|link=]]</td>
<td>'''Place all track and track objects (Track Marks and Triggers can be exceptions) into the <i>route-layer</i> and always keep it as the top level layer'''</td>
</tr>
<tr valign="top">
<td>[[image:PencilTips.PNG|link=]]</td>
<td>'''For TRS19PE and later, it is strongly recommended that you place all rolling stock into a session layer to be saved with the session and not the route'''</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
Line 93: Line 117:
<table> <!-- BEGIN Nav Buttons Table -->
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<tr valign="top">
<td width=729><span id="stepWhat"></span>&nbsp;</td>
<td width=629><span id="stepWhat"></span>
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
='''What Are Layers?'''=
<td width=75>&nbsp;</td>
</td>
<td width=75>[[file:NextDown.png|link=#stepToolS20|alt=Next Down|Next Down]]</td>
<td width=50>&#160;</td> <!-- skip Down -->
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
<td width=50>&#160;</td> <!-- skip Up -->
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>&#160;</td>
<td width=75>[[image:NextDown.png|link=#stepToolsS10|alt=Next Down|Next Down]]</td>
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
</table> <!-- END Nav Buttons Table -->


='''What Are Layers?'''=
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<br>
Layers can contain any objects, visible and invisible, that can be placed into a layout in '''Surveyor Classic''' using the '''Object''', '''Track''' and '''Train''' tools and using the '''Placement Tool''' in '''Surveyor 2.0'''. The layers and their contents can be hidden from view or locked against alteration whenever required. Their main use is in the development of a Route and a Session but they can also be used as a way of providing some additional novelty during a Driver session.<br>
 
<table bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[image:NotePad.PNG|link=]]</td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">Effect Layers Notes:'''</span><br>
<td>'''Layers are a ''Surveyor'' tool that allow you to better manage the objects that are placed in your Trainz World.'''</td>
----
The special ground effects layers, '''Clutter''', '''TurfFX''' and more recently '''Water''', are not discussed here. They are more like '''Textures''' than '''Layers''' but some aspects of their use and operations are similar to the layers covered here. These special ground effects layers are saved as part of a '''Route''' but are not associated with any '''Route Layer'''.
</td>
</tr>
</tr>
</table>
Almost all of what you will see in a Trainz World will be found in layers, and mostly in the '''Route Layers''' and '''Session Layers'''.<br>
<table width=900>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>[[image:BlueDot10x10.png|link=]]</td>
<td>'''Route Layers''' will contain the objects that will appear in '''ALL''' the sessions created using the current route</td>
<td>'''Layers are a ''Driver'' tool that allow you to change what the players see as they drive around your Trainz World.'''</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>'''Session Layers''' will contain the objects that will only appear in the current session</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
 
<table width=1000>
='''<span style="background-color: cyan;">&#160;The Layers Tool in Surveyor Classic (S10)&#160;</span>'''=
 
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:SurveyorToolMenuLayers.JPG|150px]]</td>
<td><br><br><br><br><br><br><br><br><br><br><br><br><br>[[file:RightArrowRed.JPG|link=]]
<td>Click the '''Layers Tool''' (or press <span style="font-weight: 700; font-size: 17px; color: white; background-color: black;">&#160;F6&#160;</span>) to open up its properties.<br>
[[file:LayersTools.JPG|480px]]</td>
<td>
<td>
Layers can contain any objects, visible and invisible, that can be placed into a layout in '''Surveyor Classic''' using the '''Object''', '''Track''' and '''Train''' tools or using the '''Placement Tool''' in '''Surveyor 2.0'''. The layers and their contents can be hidden from view (in both '''Surveyor''' and in '''Driver''') or locked against alteration whenever required. Their main use is in the development of a Route and a Session but they can also be used as a way of providing some additional novelty during a '''Driver''' session.</td>
</tr>
</table>
<br>
<br>
 
<table width=1000 bgcolor=#000000 cellpadding=2>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#ffffb0 cellpadding=2>
<table bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:NotePad.PNG|link=]]</td>
<td>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
<td><span style="font-size: 17px; font-weight: 700;">Effect Layers Notes:'''</span><br>
----
----
The layers are organised into two groups:-
The special ground effects layers, '''Clutter''', '''TurfFX''' and more recently '''Water''' and '''Color''', are not discussed here. In many ways they are more like '''Ground Textures''' but some aspects of their use is similar to the layers covered here. These special ground effects layers are saved as part of a '''Route''' but are not associated with any '''Route Layer'''.<br><br>
*'''Route Layers''' in the top group, and  
The special ground '''Effect Layers''' as used in '''Surveyor 2.0''' are covered in the '''Trainz Wiki Page [[image:WikiLink.PNG|link=]]&#160;[[How to Use S20 Tools#skip Effect Layers|How to Use S20 Tools]]'''</td>
*'''Session Layers''' in the lower group.  
Each group can contain multiple layers - the scroll bars next to the layer names shown on the left indicate that there are more layers in each group than can fit into the display window area.</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
Line 160: Line 162:
</tr>
</tr>
</table>
</table>
<br>


=='''<span style="background-color: cyan;">&#160;Loading a Route and Loading a Session&#160;</span>'''==
Almost all of what you will see in a Trainz World will be found in layers, and mostly in the '''Route Layers''' and '''Session Layers'''.<br>


<table cellpadding=4 bgcolor=#c1e7e7 width="730"> <!-- BEGIN top level -->
<table width=900>
<tr valign="top">
<tr valign="top">
<td colspan=2><span style="font-size: 17px;"><b>In Summary:</b></span></td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Route Layers''' will contain the objects that will appear in '''ALL''' the sessions created using the current route</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Route Layers are saved with the Route. Session Layers are saved with the Session.<td>
<td>'''Session Layers''' will contain the objects that will only appear in the current session</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''If you edit a Session Layer and later load just the Route then those edits will not appear.'''</td>
<td>'''Effect Layers''' ('''TRS19''', '''Trainz Plus''' and '''TRS22''') will contain the '''TurfFX''', '''Clutter''', '''Water''' and (in '''Trainz Plus''' routes using '''HD''') '''Color''' effects created using the current route</td>
</tr>
</tr>
</table> <!-- END top level -->
</table>
<br>
<br>
<table cellpadding=4 bgcolor="Aquamarine"> <!-- BEGIN Trainz Wiki Link -->
 
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<tr valign="top">
<td>[[image:LinkWiki.PNG|link=]]</td>
<td width=629><span id="stepToolsS10"></span>
<td>
='''The Layers Tool in Surveyor Classic (S10)'''=
More information on creating, loading and saving '''Routes''' and '''Sessions''' can be found on the '''Trainz Wiki Page''' at '''[[Route_and_Session_Basics|Route and Session Basics]]'''
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipLoadingS10|Skip Down]]</td> <!-- skip Down -->
<td width=50>&#160;</td> <!-- skip Up -->
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>[[image:NextUp.png|link=#stepWhat|alt=Next Up|Next Up]]</td>
<td width=75>[[image:NextDown.png|link=#stepToolsS20|alt=Next Down|Next Down]]</td>
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</tr>
</table> <!-- END Trainz Wiki Link -->
</table> <!-- END Nav Buttons Table -->
 
<table width=1000>
<tr valign="top">
<td>[[image:SurveyorToolMenuLayers.JPG|150px]]</td>
<td><br><br><br><br><br><br><br><br><br><br><br><br><br>[[image:RightArrowRed.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Layers Tool''' (or press <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;F6&#160;</span>) to open up its properties.<br>
[[image:LayersTools.JPG|480px]]</td>
<td>
<br>
<br>
The layers you see will depend on whether you have loaded a '''Route''' by itself (with no "child" Session) or a '''Session''' and its "parent" Route.
<table bgcolor=#000000 cellpadding=2 width=400>
 
<tr valign="top">
<table> <!-- BEGIN top level -->
<td>
<table bgcolor=#ffffb0 cellpadding=2 width=396>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersToolsRoute.JPG|link=]]</td>
<td>[[image:NotePad.PNG|link=]]</td>
<td>[[file:LayersToolsSession.JPG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
<td>The first image on the left gives an example of the layers that can appear if a '''Route only''' is loaded into Surveyor. These are the layers that are saved with the Route. '''Note that a default "session-layer" is present'''.
----
<table cellpadding=4 bgcolor=#c1e7e7> <!-- BEGIN 2nd level -->
The layers are organised into two groups:-
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''An empty default "session-layer" is always created in the Session Layers Group when only the Route is loaded into Surveyor.'''</td>
<td>'''Route Layers''' in the top group, and</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''If you load just the Route and edit its "session-layer" then those edits will not appear the next time you load just the Route''' because an empty "session-layer" is created each time a Route is loaded without a Session.
<td>'''Session Layers''' in the lower group</td>
</td>
</tr>
</tr>
</table> <!-- END 2nd level -->
</table>
The second image on the left gives an example of the layers that can appear if a '''Session based on that Route''' is loaded into Surveyor. It shows Route Layers and Session Layers.<br><br>


In both cases, the '''Route Layers''' are identical because the same Route has been loaded. A Session contains its own layers, the '''Session Layers''', that are loaded and saved with the Session but are not loaded or saved with the Route.<br>
Each group can contain multiple layers - the scroll bars next to the layer names shown on the left indicate that there are more layers in each group than can fit into the display window area.</td>
 
<table bgcolor=#000000> <!-- BEGIN 2nd level Black Border -->
<tr valign="top">
<td>
<table bgcolor=#ffffe0> <!-- BEGIN 2nd level Tip -->
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>If you load a '''Session''' and do not want to edit any of the '''Route layers''' then click the '''Lock Route Layers''' icon on the Layers Tool
<table> <!-- BEGIN 3rd level -->
<tr>
<td>[[file:LayersToolButtonsLOCKALL.JPG|link=]]</td>
<td>Click the '''Lock Button'''
</td>
</tr>
</tr>
</table> <!-- END 3rd level -->
</table>
</td>
</tr>
</table> <!-- END 2nd level Tip-->
</td>
</td>
</tr>
</tr>
</table>
</table>
<br> <!-- END 2nd level Black Border -->
</td>
</tr>
</table> <!-- END top level -->
<br>
<br>
<table bgcolor="red" cellpadding=2>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#fcbcbc cellpadding=2>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px;">Layers can be:-</span>
<td><span style="font-size: 17px; font-weight: 700;">If you load a <span style="text-decoration: underline;">ROUTE</span> but not the SESSION then only <span style="text-decoration: underline;">edit the Route Layers</span></span></td>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=60>'''Created'''</td>
<td>&#160;</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=60>'''Deleted'''</td>
<td>&#160;</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=60>'''Hidden'''</td>
<td>&#160;</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=60>'''Locked'''</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Merged'''</td>
<td>&#160;</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Moved'''</td>
<td>&#160;</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Renamed'''</td>
<td colspan=3>&#160;</td>
</tr>
</table>
<span style="font-weight: 700; font-size: 15px;">Objects can be:-</span>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''assigned''' to a layer</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td><span style="font-size: 17px;">'''If you edit a <span style="text-decoration: underline;">SESSION</span> or its layers then always <span style="text-decoration: underline;">save the Session</span>'''</span></td>
<td>'''bound''' to a second layer</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td><span style="font-size: 17px;">'''When you save a new <span style="text-decoration: underline;">SESSION</span> always give it a name, do <span style="text-decoration: underline;">NOT</span> leave it as "Default"</span>
<td>'''moved''' between layers</td>
</tr>
</table>
The following sections show how these tasks can be done using '''Surveyor Classic'''</td>
</tr>
</table>
</td>
</td>
</tr>
</tr>
Line 255: Line 286:
</tr>
</tr>
</table>
</table>
<br>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipLoadingS10"></span>
=='''Loading a Route and Loading a Session (S10)'''==
</td>
<td width=50>[[image:SkipDown.png|link=#skipCreatingS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#stepToolsS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</table> <!-- END Nav Buttons Table -->


=='''<span style="background-color: cyan;">&#160;Creating a New Route&#160;</span>'''==
<table width=1000 bgcolor="lightcyan" cellpadding=2>
 
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersNewRoute.JPG|link=]]</td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>
<td>'''Route Layers''' are saved with the '''Route'''. '''Session Layers''' are saved with the '''Session'''</td>
<table>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersNewRoute.JPG|link=]]</td>
<td>[[image:BlueDot10x10.png|link=]]</td>
<td>
<td>'''If you edit a Session Layer and later load just the Route then those edits will not appear.'''</td>
<table bgcolor=#000000 width=604>
</tr>
</table>
<br>
<table cellpadding=2 bgcolor="Aquamarine"> <!-- BEGIN Trainz Wiki Link -->
<tr valign="top">
<td width=50>[[image:LinkWiki.PNG|link=]]</td>
<td>More information on creating, loading and saving '''Routes''' and '''Sessions''' can be found on the '''Trainz Wiki Page'''
<table>
<tr valign="top">
<td width=10>[[image:BlackDot10x10.png|link=]]</td>
<td>'''[[Route_and_Session_Basics|Route and Session Basics]]</td>
</tr>
</table>
</td>
</tr>
</table> <!-- END Trainz Wiki Link -->
<br>
The layers you see will depend on whether you have loaded a '''Route''' by itself (with no "child" Session) or a '''Session''' and its "parent" Route.
 
<table width=1000> <!-- BEGIN top level -->
<tr valign="top">
<td>[[image:LayersToolsRoute.JPG|link=]]</td>
<td>[[image:LayersToolsSession.JPG|link=]]</td>
<td>The first image on the left gives an example of the layers that can appear if a '''Route only''' is loaded into Surveyor. These are the layers that are saved with the Route. '''Note that a default "session-layer" is present'''.
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#ffffb0 width=600>
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:NotePad.PNG|link=]]</td>
<td width=25>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
----
----
*When a brand new route is created it will come with two layers, a single '''route-layer''' and a single '''session-layer'''.
*Both layers will be empty (the baseboard with its grid is saved with the route but is not in any layer).
</td>
</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td colspan=2>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<table width=600 bgcolor=#ffffe0>
<td>An empty default '''session-layer''' is always created in the Session Layers Group when only the Route is loaded into Surveyor</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''A layer can be renamed at anytime by double clicking on its name with the left mouse button and typing a new name'''
<td>If you load just the Route and edit its '''session-layer''' then those edits will not appear the next time you load just the Route because a new empty '''session-layer''' is created each time a Route is loaded without a Session</td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
Line 299: Line 361:
</tr>
</tr>
</table>
</table>
The second image on the left gives an example of the layers that can appear if a '''Session based on that Route''' is loaded into Surveyor. It shows Route Layers and Session Layers.<br><br>


=='''<span style="background-color: cyan;">&#160;The "Active Layer"&#160;</span>'''==
In both cases, the '''Route Layers''' are identical because the same Route has been loaded. A Session contains its own layers, the '''Session Layers''', that are loaded and saved with the Session but are not loaded or saved with the Route.<br>


<table cellpadding=4 bgcolor=#c1e7e7>
<table bgcolor=#000000> <!-- BEGIN 2nd level Black Border -->
<tr valign="top">
<tr valign="top">
<td colspan=2><span style="font-size: 17px;"><b>In Summary:</b></span></td>
<td>
</tr>
<table bgcolor=#ffffe0> <!-- BEGIN 2nd level Tip -->
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>'''The ''Active Layer'' is the selected (highlighted) layer.'''</td>
<td>If you load a '''Session''' and do not want to edit any of the '''Route layers''' then <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Lock Route Layers''' icon on the '''Layers Tool'''
<table> <!-- BEGIN 3rd level -->
<tr>
<td>[[image:LayersToolButtonsLOCKALL.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Lock Button'''
</td>
</tr>
</tr>
<tr valign="top">
</table> <!-- END 3rd level -->
<td>[[file:DotPoint.JPG|link=]]</td>
</td>
<td>When you load the '''Route only''' into Surveyor, the '''first Route layer''' will be the '''Active Layer'''</td>
</tr>
</tr>
<tr valign="top">
</table> <!-- END 2nd level Tip-->
<td>[[file:DotPoint.JPG|link=]]</td>
</td>
<td>When you load a '''Session''' into Surveyor, the '''first Session layer''' will be the '''Active Layer'''</td>
</tr>
</tr>
</table>
</table>
In the image above, the '''route-layer''' is the '''Active Layer'''. You can change the '''Active Layer''' at any time by clicking on the name of another layer.
<br> <!-- END 2nd level Black Border -->
<br>
</td>
 
</tr>
<table width=900>
</table> <!-- END top level -->
<tr valign="top">
<br>
<td width=484>
<table bgcolor="red" cellpadding=2>
<table bgcolor=#000000 width=464>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#ffffb0 width=460>
<table bgcolor=#fcbcbc cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:NotePad.PNG|link=]]</td>
<td>[[image:Stop.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
<td><span style="font-size: 17px; font-weight: 700;">If you load a <span style="text-decoration: underline;">ROUTE</span> but not the SESSION then only <span style="text-decoration: underline;">edit the Route Layers</span></span></td>
----
The '''Active Layer''' is the "working layer" which is:-
*where new objects will be added to the layout
*the layer that is automatically selected for merging and deleting
</td>
</tr>
</tr>
</table>
<tr valign="top">
</td>
<td>[[image:Stop.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''If you edit a <span style="text-decoration: underline;">SESSION</span> or its layers then always <span style="text-decoration: underline;">save the Session</span>'''</span></td>
</tr>
</tr>
</table>
</td>
<td width=12>&nbsp;</td>
<td width=484>
<table bgcolor="red" width=464>
<tr valign="top">
<tr valign="top">
<td>
<td>[[image:Stop.PNG|link=]]</td>
<table bgcolor=#fcbcbc width=460>
<td><span style="font-size: 17px;">'''When you save a new <span style="text-decoration: underline;">SESSION</span> always give it a name, do <span style="text-decoration: underline;">NOT</span> leave it as "Default"</span>
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>'''Trainz''' does not identify which is the '''Active Layer''' in '''Surveyor''' and this often leads to problems such as objects being added to the wrong layer.<br>
See [[file:PageLink.PNG|link=]] '''[[#Adding Objects To Layers|Adding Objects To Layers]]''' below for more information.
</td>
</td>
</tr>
</tr>
Line 359: Line 411:
</tr>
</tr>
</table>
</table>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipCreatingS10"></span>
=='''Creating a New Route (S10)'''==
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipActiveS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipLoadingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table>
</table> <!-- END Nav Buttons Table -->
<br>
=='''<span style="background-color: cyan;">&#160;Adding a New Layer&#160;</span>'''==


<table>
<table>
<tr>
<tr valign="top">
<td>[[file:LayersToolButtonsADD.JPG|link=]]</td>
<td>[[image:LayersNewRoute.JPG|link=]]</td>
<td>Click the '''Add Button'''</td>
<td>
</tr>
<table bgcolor=#000000 width=604>
</table>
<tr valign="top">
 
<td>
An '''Add layer''' dialogue window will appear.
<table bgcolor=#ffffb0 width=600>
 
<tr valign="top">
<td>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
----
<table>
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersAddLayer.JPG|link=]]</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>
<td>When a brand new route is created it will come with two layers, a single '''route-layer''' and a single '''session-layer'''</td>
<table cellpadding=4 bgcolor=#ffffff>
<tr>
<td colspan="2">
----</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Steps.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td><span style="font-size: 17px;">'''Steps:'''</span><br>
<td>Both layers will be empty (the baseboard with its grid is saved with the route but is not in any layer)</td>
#Enter a name for the new layer
#Select the layer group, '''Route''' or '''Session''', where it will be placed
#Click the [[file:Tick.PNG|link=]] icon</td>
</tr>
</tr>
<tr>
</table>
<td colspan="2">
</td>
----</td>
</tr>
</tr>
</table>
<table bgcolor=#000000>
<tr valign="top">
<tr valign="top">
<td>
<td colspan=2>
<table bgcolor=#ffffe0>
<table width=600 bgcolor=#ffffe0>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>You can easily rename the layer or move it to the other layer group if you change your mind.</td>
<td>'''A layer can be renamed at anytime by a''' <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Double Left Click</span> '''on its name and entering a new name'''
</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
Line 411: Line 469:
</table>
</table>


=='''<span style="background-color: cyan;">&#160;Deleting a Layer&#160;</span>'''==
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipActiveS10"></span>
=='''The "Active Layer" (S10)'''==
</td>
<td width=50>[[image:SkipDown.png|link=#skipAddingS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipCreatingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</table> <!-- END Nav Buttons Table -->


<table bgcolor="red" width=300>
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<table bgcolor=#fcbcbc width=296>
<td>The '''Active Layer''' is the selected (highlighted) layer</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>[[image:BlueDot10x10.png|link=]]</td>
<td><span style="font-size: 15px; font-weight: 700;">WARNING:</span><br>
<td>When you load the '''Route only''' into Surveyor, the '''first Route layer''' will be the '''Active Layer'''</td>
'''Deleting Layers''' cannot be undone
</td>
</tr>
</tr>
</table>
<tr valign="top">
</td>
<td>[[image:BlueDot10x10.png|link=]]</td>
<td>When you load a '''Session''' into Surveyor, the '''first Session layer''' will be the '''Active Layer'''</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table>
<table width=1000>
<tr>
<tr valign="top">
<td>[[file:LayersToolButtonsDELETE.JPG|link=]]</td>
<td>In the image above, the '''route-layer''' is the '''Active Layer'''. You can change the '''Active Layer''' at any time by a <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the name of another layer.</td>
<td>Select the layer to be deleted and click the '''Delete Button'''. <span style="background-color: yellow; font-weight: 700;"> If you don't select a layer to delete then Trainz will select the current Active Layer. </span></td>
</tr>
</tr>
</table>
</table>
<br>
 
<table bgcolor="red" width=900>
<table width=1000>
<tr valign="top">
<td>
<table bgcolor=#000000 width=500>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#fcbcbc width=896>
<table bgcolor=#ffffb0 width=496>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>[[image:NotePad.PNG|link=]]</td>
<td>'''Deleting a layer will delete ALL the objects placed in that layer''' except objects that are "Bound" to that layer. See [[file:PageLink.PNG|link=]] '''[[#The Bound Layer|The Bound Layer]]''' section below.</td>
<td colspan=2><span style="font-size: 17px;">'''Notes:'''</span><br>
----
The '''Active Layer''' is the "working layer" which is:-</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>In '''TRS19''' and later '''Trainz''' versions there will be a delay when deleting a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes.<br>
<td>where new objects will be added to the layout</td>
<span style="color: white; background-color: red; font-weight: 700;">&nbsp;Resist any urge to click the Cancel button&nbsp;</span><br>
This delay will occur '''every time''' a layer is deleted.</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Due to a "bug" '''deleting a layer that contains a ruler will not delete the ruler'''. It will be hidden from view but it may reappear if another layer with the same name as the deleted layer is created or it will, eventually, reappear in the '''route-layer'''.
<td>the layer that is automatically selected for merging and deleting
</td>
</td>
</tr>
</tr>
Line 458: Line 530:
</tr>
</tr>
</table>
</table>
 
</td>
If the layer being deleted is empty, then the following dialogue window will appear:-
<td width=12>&#160;</td>
 
<table>
<tr>
<td>[[file:LayerDeleteEmpty.JPG|link=]]</td>
<td>
<td>
<table cellpadding=4 bgcolor=#ffffff>
<table bgcolor="red" width=488>
<tr>
<td colspan="2">
----</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Choices.PNG|link=]]</td>
<td>
<td><span style="font-size: 17px;">'''Choices:'''</span><br>
<table bgcolor=#fcbcbc width=484>
*Click '''Yes''' to delete the layer
<tr valign="top">
*Click '''No''' to cancel the delete operation</td>
<td>[[image:Stop.PNG|link=]]</td>
</tr>
<td>'''Trainz''' does not identify which is the '''Active Layer''' in '''Surveyor''' and this often leads to problems such as objects being added to the wrong layer.<br>
<tr>
See [[image:PageLink.PNG|link=]] '''[[#Adding Objects To Layers|Adding Objects To Layers]]''' below for more information.
<td colspan="2">
</td>
----</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
Line 484: Line 550:
</tr>
</tr>
</table>
</table>
<br>


If the layer being deleted is NOT empty, then the following dialogue window will appear:-
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
 
<table>
<tr>
<td>[[file:LayerDeleteNotEmpty.JPG|link=]]</td>
<td>
<table cellpadding=4 bgcolor=#ffffff>
<tr>
<td colspan="2">
----</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Choices.PNG|link=]]</td>
<td width=629><span id="skipAddingS10"></span>
<td><span style="font-size: 17px;">'''Choices:'''</span><br>
=='''Adding Another Layer (S10)'''==
*Click '''Merge''' to merge this layer and its contents into another layer. See '''Merging Layers''' below for more information
</td>
*Click '''Delete''' to delete the layer and its contents
<td width=50>[[image:SkipDown.png|link=#skipDeletingS10|Skip Down]]</td>
*Click '''Cancel''' to cancel the delete operation</td>
<td width=50>[[image:SkipUp.png|link=#skipActiveS10|Skip Up]]</td>
</tr>
<td width=46>&#160;</td>
</table>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
<table width=1000>
<tr>
<tr>
<td colspan="2">
<td>[[image:LayersToolButtonsADD.JPG|link=]]</td>
----
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Add Button'''</td>
</td>
</tr>
</tr>
</table>
</table>


=='''<span style="background-color: cyan;">&#160;Merging Layers&#160;</span>'''==
An '''Add layer''' dialogue window will appear.


<table bgcolor="red" width=300>
<table width=1000>
<tr valign="top">
<td>[[image:LayersAddLayer.JPG|link=]]</td>
<td>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#fcbcbc width=296>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Name and Place the New Layer:-</span></td>
<td><span style="font-size: 15px; font-weight: 700;">WARNING:</span><br>
'''Merging Layers''' cannot be undone
</td>
</tr>
</tr>
</table>
<tr valign="top">
</td>
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
</tr>
<td>Enter a name for the new layer</td>
</table>
<br>
<table>
<tr>
<td>[[file:LayersToolButtonsMERGE.JPG|link=]]</td>
<td>Select the layer to be merged into another layer and click the '''Merge Button'''. <span style="background-color: yellow; font-weight: 700;"> If you don't select a layer to merge then Trainz will select the current Active Layer. </span></td>
</tr>
</tr>
</table>
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<tr valign="top">
<td colspan=2><span style="font-size: 17px;"><b>In Summary:</b></span></td>
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>Select the layer group, '''Route''' or '''Session''', where it will be placed</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:DotPoint3.JPG|link=]]</td>
<td>'''Merging a layer into another layer will move ALL the objects from the first layer into the second layer.''' The first layer, which is now empty, will then be deleted. </td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Tick.PNG|link=]] icon to '''accept''' the change<br>
<span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Cross.PNG|link=]] icon to '''reject''' the change</td>
</tr>
</tr>
<tr valign="top">
</table>
<td>[[file:DotPoint.JPG|link=]]</td>
</td>
<td>'''Once layers have been merged they cannot be separated.'''</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table bgcolor="red" width=900>
<table bgcolor=#000000>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#fcbcbc>
<table bgcolor=#ffffe0>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>In '''TRS19''' and later '''Trainz''' versions there will be a delay when merging a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes.<br>
<td>You can easily rename the layer or move it to the other layer group if you change your mind.</td>
<span style="color: white; background-color: red; font-weight: 700;">&nbsp;Resist any urge to click the Cancel button&nbsp;</span><br>
</tr>
This delay will occur '''every time''' a layer is merged.
</table>
</td>
</td>
</tr>
</tr>
Line 564: Line 619:
</tr>
</tr>
</table>
</table>
<br>


The layer merge dialogue window will appear as shown below:-
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipDeletingS10"></span>
=='''Deleting a Layer (S10)'''==
</td>
<td width=50>[[image:SkipDown.png|link=#skipMergingS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipAddingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</table> <!-- END Nav Buttons Table -->


<table>
<table bgcolor="red" width=300>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersMergeInto.JPG|link=]]</td>
<td>
<td>
<table cellpadding=4 bgcolor=#ffffff>
<table bgcolor=#fcbcbc width=296>
<tr>
<td colspan="2">
----</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Steps.PNG|link=]]</td>
<td>[[image:Stop.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Steps:'''</span><br>
<td><span style="font-size: 15px; font-weight: 700;">WARNING:</span><br>
#Select the '''destination layer''' for the merge
'''Deleting Layers''' cannot be undone
#Click the [[file:Tick.PNG|link=]] icon
</td>
The '''Merge into:''' list shows all the available layers with no distinction between Route Layers and Session Layers</td>
</tr>
<tr>
<td colspan="2">
----</td>
</tr>
</tr>
</table>
</table>
Line 592: Line 648:
</tr>
</tr>
</table>
</table>
 
<br>
=='''<span style="background-color: cyan;">&#160;Locking Layers&#160;</span>'''==
<table width=1000>
 
<tr>
<table bgcolor=#000000>
<td>[[image:LayersToolButtonsDELETE.JPG|link=]]</td>
<tr valign="top">
<td>Select the layer to be deleted and <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the '''Delete Button'''. <span style="background-color: yellow; font-weight: 700;"> If you don't select a layer to delete then Trainz will select the current Active Layer. </span></td>
<td>
<table bgcolor=#ffffe0>
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>It is good practice to '''LOCK ALL LAYERS that you are not currently editing.''' This will avoid the all too common problem of accidentally adding objects to the wrong layer.
</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table cellpadding=4 bgcolor=#c1e7e7>
<table bgcolor="red" width=1000>
<tr valign="top">
<td>
<table bgcolor=#fcbcbc width=996>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:Stop.PNG|link=]]</td>
<td>If you '''LOCK''' or '''UNLOCK''' a Route Layer while editing a Session then you will have made a change to the Route and will be asked to save both the Route and the Session when you exit Surveyor.</td>
<td>'''Deleting a layer will delete ALL the objects placed in that layer''' except objects that are "Bound" to that layer. See [[image:PageLink.PNG|link=]] '''[[#The Bound Layer|The Bound Layer]]''' section below.</td>
</tr>
</tr>
</table>
<br>
===<span style="background-color: cyan;">&#160;Locking Individual Layers&#160;</span>===
'''To LOCK an individual layer, click on the ''Open Padlock'' icon next to its name.''' The layer being locked does not have to be the current '''Active Layer'''.
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:Stop.PNG|link=]]</td>
<td>'''The objects in a LOCKED layer cannot be moved (around the layout) or deleted''' but they can be moved to other layers.</td>
<td>In '''TRS19''' and later '''Trainz''' versions there will be a delay when deleting a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes.<br>
<span style="color: white; background-color: red; font-weight: 700;">&#160;Resist any urge to <span style="color: white;">Left Click</span> on the <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Cancel&#160;</span> button&#160;</span><br>
This delay will occur '''every time''' a layer is deleted.</td>
</tr>
</tr>
</table>
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersRouteTreesActive.JPG|link=]]</td>
<td>[[image:Stop.PNG|link=]]</td>
<td>[[file:LayersRouteTreesActiveLocked.JPG|link=]]</td>
<td>In '''TANE''': Due to a "bug" '''deleting a layer that contains a ruler will not delete the ruler'''. It will be hidden from view but it may reappear if another layer with the same name as the deleted layer is created or it will, eventually, reappear in the '''route-layer'''.
<td><br>
*The first image on the left shows two Route Layers, both UNLOCKED with their Padlock icons '''Open'''. One layer, "Trees", is highlighted showing that it is the currently active layer.
*The second image on the left shows the same two layers after the "Trees" layer has been LOCKED.
*A locked layer can be UNLOCKED by clicking its Closed Padlock icon.<br><br>
</td>
</td>
</tr>
</tr>
</table>
</table>
If you attempt to add a scenery object to a locked layer you will receive the following message:-
</td>
<table>
<tr valign="top">
<td>[[file:LayersRouteTreesActiveLockedError.JPG|link=]]<br>
*Click the [[file:Tick.PNG|link=]] icon to UNLOCK the layer</td>
</tr>
</tr>
</table>
</table>


===<span style="background-color: cyan;">&#160;Locking ALL Route Layers&#160;</span>===
If the layer being deleted is empty, then the following dialogue window will appear:-


<table>
<table width=1000>
<tr>
<tr valign="top">
<td>[[file:LayersToolButtonsLOCKALL.JPG|link=]]</td>
<td>[[image:LayerDeleteEmpty.JPG|link=]]</td>
<td>Click the '''Lock Button'''</td>
<td>
</tr>
<table cellpadding=2 bgcolor=#000000>
</table>
<tr valign="top">
 
<td>
This will LOCK ALL the layers in the Route Layers Group. The Session Layers Group will not be affected.
<table cellpadding=2 bgcolor=#ffffff>
 
The Route Layers Group can be UNLOCKED by clicking the '''Lock Button''' again.
 
=='''<span style="background-color: cyan;">&#160;Moving a Layer&#160;</span>'''==
 
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<tr valign="top">
<td colspan=2><span style="font-size: 17px;"><b>Main Points:</b></span></td>
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Options:</span> Choose one of the following:-</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td width=25>[[image:Ablue.png|link=]]</td>
<td>Layers can be moved up or down<br>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Yes&#160;</span> to delete the layer, <span style="font-weight: 700; font-size: 15px;">OR</span></td>
* within the same layer group (e.g. '''Route''' or '''Session''')
* between the two groups</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:Bblue.png|link=]]</td>
<td>A layer containing track objects (e.g. signals, switches, etc) '''CANNOT''' be placed above the layer containing the track</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;No&#160;</span> to cancel the delete operation</td>
</tr>
</tr>
</table>
</table>
<br>
<table bgcolor="red" width=900>
<tr valign="top">
<td>
<table bgcolor=#fcbcbc width=896>
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td>
In '''TRS19''' and later '''Trainz''' versions there will be a delay when moving a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes<br>
<span style="color: white; background-color: red; font-weight: 700;">&nbsp;Resist any urge to click the Cancel button&nbsp;</span><br>
This delay will occur '''every time''' a layer is moved.
</td>
</td>
</tr>
</tr>
Line 692: Line 708:
</tr>
</tr>
</table>
</table>
<br>
 
In the example shown below a layer created in the Route Layers Group is being moved into the Session Layers Group.
If the layer being deleted is '''NOT''' empty, then the following dialogue window will appear:-
<table>
 
<table width=1000>
<tr>
<td>[[image:LayerDeleteNotEmpty.JPG|link=]]</td>
<td>
<table cellpadding=2 bgcolor=#000000>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersMove1.JPG|link=]]</td>
<td>[[file:LayersMove3.JPG|link=]]</td>
<td>
<td>
<table cellpadding=4 bgcolor=#ffffff>
<table cellpadding=2 bgcolor=#ffffff>
<tr>
<tr valign="top">
<td colspan="2">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Options:</span> Choose one of the following:-</td>
----</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Steps.PNG|link=]]</td>
<td width=25>[[image:Ablue.png|link=]]</td>
<td><span style="font-size: 17px;">'''Steps:'''</span><br>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Merge&#160;</span> to merge this layer and its contents into another layer (see '''Merging Layers''' below for more information), <span style="font-weight: 700; font-size: 15px;">OR</span></td>
#Select the layer to be moved and hold down the left mouse button
#Drag the layer up or down to its new position
</td>
</tr>
</tr>
<tr>
<tr valign="top">
<td colspan="2">
<td>[[image:Bblue.png|link=]]</td>
----</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Delete&#160;</span> to delete the layer and its contents, <span style="font-weight: 700; font-size: 15px;">OR</span></td>
</tr>
</tr>
</table>
*The move can be between layer groups as shown left or within groups to move the layer to a higher or lower position in the group.
*The only situation where layer order within a layer group makes any difference is when adding track objects (e.g. signals, track signs, etc) to a track.
<br>
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:Cblue.png|link=]]</td>
<td>When adding track objects to a track, the '''object being added must be in the same layer or in a layer below''' the layer containing the track. For more information, see the section [[file:PageLink.PNG|link=]] '''[[#The "route-layer"|The "route-layer"]]''' below.</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Cancel&#160;</span> to cancel the operation</td>
</tr>
</tr>
<tr valign="top">
</table>
<td>[[file:DotPoint.JPG|link=]]</td>
</td>
<td>If you attempt to move a layer containing track objects, such as signals, to a position above the layer containing the track, you will get an error message.</td>
</tr>
</tr>
</table>
</table>
Line 734: Line 742:
</table>
</table>


=='''<span style="background-color: cyan;">&#160;Hiding Layers&#160;</span>'''==
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
 
To hide or show a layer click the '''Eye Icon''' next to its name.
 
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersHideNone.JPG|link=]]</td>
<td width=629><span id="skipMergingS10"></span>
<td>
=='''Merging Layers (S10)'''==
*In the image shown left the two trees are in different Route Layers
*All the layers have their '''Eye Icons''' set to '''Show'''
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipLockingS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipDeletingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersHideTree.JPG|link=]]</td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>
<td>'''Merging''' a layer into another layer will move '''ALL''' the objects from the first layer into the second layer. The first layer, which is now empty, will then be '''deleted'''</td>
*In the image shown left the '''Trees''' layer has its '''Eye Icon''' set to '''Hide'''<br><br>
</tr>
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:BlueDot10x10.png|link=]]</td>
<td>'''If you attempt to add an object to a hidden layer you will receive a warning message.'''</td>
<td>'''Once layers have been merged they cannot be separated.'''</td>
</tr>
</tr>
</table>
<br>
<table bgcolor="red" width=300>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>
<td>'''Layers that are hidden when saved in ''Surveyor'' will also be hidden when loaded in ''Driver''.'''<td>
<table bgcolor=#fcbcbc width=296>
<tr valign="top">
<td>[[image:Stop.PNG|link=]]</td>
<td><span style="font-size: 15px; font-weight: 700;">WARNING:</span><br>
'''Merging Layers''' cannot be undone
</td>
</tr>
</tr>
</table>
</table>
Line 763: Line 781:
</tr>
</tr>
</table>
</table>
 
<br>
=='''<span style="background-color: cyan;">&#160;Adding Objects To Layers&#160;</span>'''==
<table width=1000>
 
<tr>
When an object (such as a scenery item, consist, track or track object) is added to the layout it is automatically placed in the currently '''Active Layer'''.  Unfortunately, '''Surveyor Classic (S10)''' does not indicate which layer is the '''Active Layer''' unless you open the Layers Tool to look. This can lead to objects being placed into the wrong layers and while these objects can later be moved to another layer (see the section [[file:PageLink.PNG|link=]] '''[[#Moving Objects To Other Layers|Moving Objects To Other Layers]]''' below) it would be better to correctly set the '''Active Layer''' first.
<td>[[image:LayersToolButtonsMERGE.JPG|link=]]</td>
<br><br>
<td>Select the layer to be merged into another layer and <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Merge&#160;</span> button. <span style="background-color: yellow; font-weight: 700;"> If you don't select a layer to merge then Trainz will select the current Active Layer. </span></td>
<table bgcolor=#000000>
</tr>
</table>
<br>
<table bgcolor="red" width=900>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#ffffe0>
<table bgcolor=#fcbcbc>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:Stop.PNG|link=]]</td>
<td>It is good practice to '''LOCK ALL LAYERS that you are not currently editing.''' This will avoid the all too common problem of accidentally adding objects to the wrong layer.
<td>In '''TRS19''' and later '''Trainz''' versions there will be a delay when merging a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes.<br>
<span style="color: white; background-color: red; font-weight: 700;">&#160;Resist any urge to <span style="color: white;">Left Click</span> on the <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Cancel&#160;</span> button&#160;</span><br>
This delay will occur '''every time''' a layer is merged.
</td>
</td>
</tr>
</tr>
Line 782: Line 805:
</table>
</table>
<br>
<br>
<table cellpadding=4 bgcolor=#c1e7e7>
 
The layer merge dialogue window will appear as shown below:-
 
<table width=1000>
<tr valign="top">
<td>[[image:LayersMergeInto.JPG|link=]]</td>
<td>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Merge Two Layers:-</span></td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>Select the '''destination layer''' for the merge</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Tick.PNG|link=]] icon to '''accept''' the change<br>
<span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Cross.PNG|link=]] icon to '''reject''' the change</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td colspan=2>The '''Merge into:''' list shows all the available layers with no distinction between Route Layers and Session Layers</td>
<td>'''You cannot add objects to a layer that is LOCKED.'''</td>
</tr>
</tr>
</table>
</table>
 
</td>
If you attempt to add a scenery object to a locked layer you will receive the following message:-
<table>
<tr valign="top">
<td>[[file:LayersRouteTreesActiveLockedError.JPG|link=]]<br>
*Click the [[file:Tick.PNG|link=]] icon to '''UNLOCK the layer'''.</td>
</tr>
</tr>
</table>
</table>
<br>
</td>
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>When adding track objects (signals, speed signs, etc) to a track, the '''objects being added must be in the same layer as the track or in a layer below the track layer'''. For more information, see the section [[file:PageLink.PNG|link=]] '''[[#The "route-layer"|The "route-layer"]]''' above.</td>
</tr>
</tr>
</table>
</table>
<br>
 
<table bgcolor=#000000 width=1000>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<tr valign="top">
<td>
<td width=629><span id="skipLockingS10"></span>
<table bgcolor=#ffffb0 width=996>
=='''Locking Layers (S10)'''==
<tr valign="top">
<td>[[file:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
----
There are many features of '''Trainz Routes''' and '''Sessions''' that are '''NOT stored in layers'''. In some cases while the objects themselves may be placed in layers, their settings or properties are not. These include:-
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
*landforms
*textures
*'''TurfFX''' and '''Clutter''' ground effects
*trackside camera '''settings'''
*weather conditions
*time of day
*session rules and driver commands
*signal and junctions '''settings'''
*rolling stock loads
*industry '''settings'''
*portal settings
*passenger station '''settings'''
*navigation points
*interlocking tower '''settings''' [[file:BugMini.PNG|link=]]
</div>
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipMovingS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipMergingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>Landforms, textures, effect layers (TurfFX, Clutter) and some Environment settings are saved as part of the '''Route''' while all the others are saved as part of a '''Session'''</td>
<td>If you '''LOCK''' or '''UNLOCK''' a Route Layer while editing a Session then you will have made a change to the Route and will be asked to save both the Route and the Session when you exit Surveyor</td>
</tr>
</tr>
</table>
<br>
<table width=1000 bgcolor=#000000>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>
<td>When you enter or edit the name of a route layer scenery object, such as a station name board, that change will be treated as a change to the '''Session''' but the new or edited name will still be saved as a property of the scenery object in a '''Route''' layer. When you save, you will be given the option of saving the '''Session''' as well as the '''Route'''. You can ignore the offer to save the '''Session''' if you have not edited any objects in a '''Session Layer''', the '''Session Layers''' themselves (e.g. moved, merged, deleted or renamed) or other '''Session''' properties (e.g. commodity levels or loads). <span style="background-color: yellow; font-weight: 700;">&nbsp;If uncertain, always save the Session&nbsp;</span>
<table bgcolor=#ffffe0>
</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Bug.png|link=|30px]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>A bug has been reported in the '''Interlocking Towers''' (and the '''Enhanced Interlocking Towers''') where the path and settings are initially saved in the '''Route''' but any later edits and changes are then saved in the '''Session'''. The workaround for this is to always load the '''Session''' when working with '''IT''' and '''EIT''' assets. This problem has not been resolved in the latest versions of '''Trainz'''.
<td>It is good practice to '''LOCK ALL LAYERS that you are not currently editing.''' This will avoid the all too common problem of accidentally adding objects to the wrong layer.</td>
</td>
</tr>
</tr>
</table>
</table>
Line 850: Line 873:
</table>
</table>
<br>
<br>
===Locking Individual Layers (S10)===


=='''<span style="background-color: cyan;">&#160;Deleting Objects From Layers&#160;</span>'''==
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>'''The objects in a LOCKED layer cannot be moved (around the layout) or deleted''' but they can be moved to other layers.</td>
</tr>
</table>
<br>
'''To LOCK an individual layer,''' <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> '''on the [[image:LayerUnLocked_S20.png|link=]] Open Padlock icon next to its name.''' The layer being locked does not have to be the current '''Active Layer'''.


<table bgcolor=#000000 width=900>
<table width=1000>
<tr valign="top">
<tr valign="top">
<td>[[image:LayersRouteTreesActive.JPG|link=]]</td>
<td>[[image:LayersRouteTreesActiveLocked.JPG|link=]]</td>
<td>
<td>
<table bgcolor=#ffffe0>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>The first image on the left shows two Route Layers, both '''UNLOCKED''' with their Padlock icons '''Open'''. One layer, "Trees", is highlighted showing that it is the currently active layer</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>The second image on the left shows the same two layers after the "Trees" layer has been LOCKED</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>
<td>A locked layer can be '''UNLOCKED''' by a <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on its [[image:LayerLocked_S20.png|link=]] '''Closed Padlock''' icon.</td>
*It is good practice to '''LOCK ALL LAYERS that you are not currently editing.''' This will avoid the all too common problem of accidentally deleting objects from the wrong layer.
*An exception to this "good practice" is when managing rulers. Unless you have used a dedicated ruler layer for all rulers it can be difficult to discover which layer contains a particular ruler. If rulers are not added to a dedicated layer then you will need to unlock and unhide all the layers first before you can use the '''Delete Ruler''' tool.
</td>
</tr>
</tr>
</table>
</table>
Line 869: Line 907:
</table>
</table>
<br>
<br>
<table cellpadding=4 bgcolor=#c1e7e7>
If you attempt to add a scenery object to a locked layer you will receive the following message:-
<table width=1000>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:LayersRouteTreesActiveLockedError.JPG|link=]]</td>
<td>'''You cannot delete objects from a layer that is LOCKED.'''</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Tick.PNG|link=]] icon to '''accept''' the change and add the object<br>
<span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Cross.PNG|link=]] icon to '''reject''' the change</td>
</tr>
</tr>
</table>
</table>
<br>
 
Unfortunately '''Trainz''' does not give you a warning message when you attempt to delete an object from a locked layer, the object just refuses to be deleted.
===Locking ALL Route Layers (S10)===
<br>
 
<table bgcolor=#000000>
<table>
<tr valign="top">
<tr>
<td>
<td>[[image:LayersToolButtonsLOCKALL.JPG|link=]]</td>
<table bgcolor=#ffffe0>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the '''Lock Button'''</td>
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>If you cannot delete an object then check:-
*that the objects layer and bound layer (if it has been set) are unlocked
*that you are using the correct delete tool (e.g. such as attempting to delete a tree with the spline, signal or rolling stock delete tool) - it happens!
</td>
</tr>
</tr>
</table>
</table>
This will LOCK ALL the layers in the Route Layers Group. The Session Layers Group will not be affected.
The Route Layers Group can be UNLOCKED by a <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the '''Lock Button''' again.
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipMovingS10"></span>
=='''Moving a Layer (S10)'''==
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipHidingS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipLockingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table>
</table> <!-- END Nav Buttons Table -->
<br>
 
=='''<span style="background-color: cyan;">&#160;Moving Objects To Other Layers&#160;</span>'''==


<table>
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersObjectProperties.JPG|link=]]</td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>
<td>Layers can be moved up or down within the same layer group (e.g. '''Route''' or '''Session''') or between the two groups</td>
<table cellpadding=4 bgcolor=#ffffff>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Steps.PNG|link=]]</td>
<td>[[image:BlueDot10x10.png|link=]]</td>
<td><span style="font-size: 17px;">'''Steps:'''</span><br>
<td>Track Objects (signals, switches, etc) should be in the same layer as the Track or in a layer below the Track layer</td>
To move individual objects from one layer to another:-
#Open the '''Properties''' window ('''?''' button in the '''Object Tools''') of the object to be moved
#Click the '''Layer''' or one of the '''scroll buttons'''
#Select the new layer
#Click the [[file:Tick.PNG|link=]] icon
</td>
</tr>
<tr>
<td colspan="2">
----</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table cellpadding=4 bgcolor=#c1e7e7>
<table bgcolor="red" width=1000>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>
<td>'''You can move an object into and out of a locked layer'''</td>
<table bgcolor=#fcbcbc width=996>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:Stop.PNG|link=]]</td>
<td>Rulers cannot be moved to a different layer because they do not have a properties window. If it is necessary to move a ruler to another layer, it must be manually created in the desired layer (using the '''Add Ruler''' tool), then the pre-existing ruler must be deleted (using the '''Delete Ruler''' tool). </td>
<td>
In '''TRS19''' and later '''Trainz''' versions there will be a delay when moving a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes<br>
<span style="color: white; background-color: red; font-weight: 700;">&#160;Resist any urge to <span style="color: white;">Left Click</span> on the <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&#160;Cancel&#160;</span> button&#160;</span><br>
This delay will occur '''every time''' a layer is moved.
</td>
</tr>
</tr>
<tr valign="top">
</table>
<td>[[file:DotPoint.JPG|link=]]</td>
</td>
<td>Multiple scenery objects can be simultaneously moved to another layer by using the '''Bulk Asset Update/Replacement''' tool from the '''Surveyor Tools Menu'''. The exception to this is spline objects (including track splines) which must be moved segment by segment</td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td>[[file:LayersObjectPropertiesChangeLayer.JPG|link=]]</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
 
In the example shown below a layer created in the Route Layers Group is being moved into the Session Layers Group.
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<td width=729><span id="stepToolS20"></span>&nbsp;</td>
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>[[file:NextUp.png|link=#stepWhat|alt=Next Up|Top]]</td>
<td width=75>[[file:NextDown.png|link=#stepRouteSession|alt=Next Down|Next Down]]</td>
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
='''<span style="color: white; background-color: blue;">&#160;The Layers Palette in Surveyor 2.0 (S20)&#160;</span>'''=
 
In '''Surveyor 2.0 (S20)''', currently only available to '''Trainz Plus Subscription''' holders, the '''Layers''' are found in the '''Layers Palette'''. The palettes are displayed (or hidden) from the Surveyor '''Windows Menu'''.
<br>
<table width=1000>
<table width=1000>
<tr valign="top">
<tr valign="top">
<td>[[image:WindowsMenu_S20.png|link=|alt=Windows Menu]]<td>
<td>[[image:LayersMove1.JPG|link=]]</td>
<td>[[image:LayersMove3.JPG|link=]]</td>
<td>
<td>
If no '''Layers Palette''' is shown on the screen then open the '''Windows Menu'''. Every available palette is listed.
<table bgcolor=#000000 cellpadding=2>
* '''Visible''' palettes are shown with a '''Tick'''
* '''Hidden''' palettes are shown without a '''Tick'''
Click on a palette name to toggle its state between '''visible''' and '''hidden'''.<br>
<table>
<tr valign="top">
<tr valign="top">
<td>[[image:LayersPalette_S20_ListsClosed.png|link=|alt=Layers Palette in S20]]</td>
<td>
<td>The '''Layers Palette''' will show all the layers in their groups ('''Effect''', '''Route''' and '''Session''') plus the '''Ground Height''' and '''Ground Textures''' special "layers". In the image on the left all the layer groups have been minimised.<br>
<table bgcolor=#ffffff cellpadding=2>
<br>
<table>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Move a Layer:-</span></td>
<td>The '''Route Layers Group''', along with the '''Ground Height''', '''Ground Textures''' and '''Effect Layers''', are saved and loaded with the Route</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>The '''Session Layers Group''' are saved and loaded with the Session</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the layer to be moved</td>
</tr>
</tr>
</table>
<tr valign="top">
</td>
<td>[[image:DotPoint2.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click and Drag</span> the layer up or down to its new position</td>
</tr>
</tr>
</table>
</table>
Line 982: Line 996:
</tr>
</tr>
</table>
</table>
=='''<span style="color: white; background-color: blue;">&#160;Lock the Route Layer Group&#160;</span>'''==
<br>
<br>
All the layers in the '''Route Layer Group''' can be locked against accidental alteration.<br>
<table bgcolor=#000000 cellpadding=2>
The '''Route Layer Group''' has a padlock icon next to its name - shown as [[image:LayerUnLocked_S20.png|link=]] (unlocked).  '''Left''' click on this icon to lock '''ALL''' the layers in the '''Route Layer Group'''. The icon will change to [[image:LayerLocked_S20.png|link=]] (locked) - click again to unlock all its layers.
<tr valign="top">
<br>
<td>
<br>
<table bgcolor=#ffffb0 cellpadding=2>
=='''<span style="color: white; background-color: blue;">&#160;Open a Layer Group&#160;</span>'''==
<tr valign="top">
<br>
<td>
To the left of each '''Layer Group''' name is a small arrow. '''Left''' click on the arrow to open up the group.<br>
<table>
<table width=1000>
<tr valign="top">
<tr valign="top">
<td>[[image:LayersPalette_S20_SessionLayersOpen.png|link=|alt=Layers palette with session layers open]]</td>
<td width=25>[[image:NotePad.PNG|link=]]</td>
<td>The image on the left shows that the '''Session Layers Group''' is open and its individual layers are now displayed. To close or minimise the group '''Left''' click on the arrow again.<br>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
The image shows that the '''Session Layers Group''' contains 3 individual layers:-
----
* the top layer is always named '''session-layer''' and is always present even in a new route where you have not yet added anything
* likewise, the top layer in the '''Route Layers Group''' is always named '''route-layer''' and is also always present
* there are two user created layers named '''Track Markers''' and '''Rail Workers''' (layer names are chosen by the creator and do not necessarily indicate their contents or purpose)
<br>
<br>
=='''<span style="color: white; background-color: blue;">&#160;Add a New Layer&#160;</span>'''==
<br>
You cannot create new layer groups but you can add new layers to a existing group.<br>
Each Layer Group has a [[image:LayerAdd_S20.png|link=]] icon next to its name. '''Left''' click on the icon to add and name a new layer to that group. If you are adding a new '''Effect Layer''' then you will also have to identify the type of effect - '''TurfFX''', '''Clutter''' or '''Water'''.
</td>
</td>
</tr>
</tr>
</table>
<br>
<br>
=='''<span style="color: white; background-color: blue;">&#160;Renaming a Layer&#160;</span>'''==
<table width=1000>
<tr valign="top">
<tr valign="top">
<td width=120>[[image:LayerRename_S20.png|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Right''' click on a layer name and select '''Rename Layer..''' from the popup menu.<br><br>
<td>The move can be between layer groups as shown left
You will be asked to enter a new name for the layer.</td>
<table bgcolor=#fcbcbc cellpadding=2>
<tr valign="top">
<td>[[image:Stop.PNG|link=]]</td>
<td><span style="font-size: 15px; font-weight: 700;">WARNING:</span><br>
Moving layers between the '''Session''' and '''Route''' groups will change where those layers are saved - in the '''Route''' or in the '''Session'''</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
=='''<span style="color: white; background-color: blue;">&#160;Deleting a Layer&#160;</span>'''==
<table width=1000>
<tr valign="top">
<td width=120>[[image:LayerDelete_S20.png|link=]]</td>
<td>'''Right''' click on a layer name and select '''Delete Layer''' from the popup menu.<br>
You will be given a warning that you are about to delete a layer.
*if you confirm the delete order then the layer and '''<u>all its contents</u>''' will be deleted
*depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the deleting operation
*the deleted layer and its contents can be restored (after the delete has completed) using the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Ctrl&#160;</span> <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Z&#160;</span> keys
</td>
</td>
</tr>
</tr>
</table>
<br>
<br>
=='''<span style="color: white; background-color: blue;">&#160;Moving a Layer&#160;</span>'''==
Layers can be individually moved up and down within the same layer group or between the '''Route Layers Group''' and the '''Session Layers Group'''. <br>
<table bgcolor=#000000 width=900 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<table bgcolor=#ffffb0 width=896 cellpadding=2>
<td>The move can be to a higher or lower position in the same group. The only situation where layer order within a group makes any difference is when track objects (e.g. signals, switches, track signs, etc) are not in the same layer as the track
<table>
<tr valign="top">
<tr valign="top">
<td>[[image:NotePad.PNG|link=]]</td>
<td width=10>[[image:RedDot10x10.png|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
<td>track objects '''must be in the same layer as the track or in a layer below''' the layer that contains the track. For more information, see the section [[image:PageLink.PNG|link=]] '''[[#The "route-layer"|The "route-layer"]]''' below
----
</td>
</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>[[image:redDot10x10.png|link=]]</td>
<td>Moving a layer between the '''Session Layer Group''' and the '''Route Layer Group'''  will move the layer and its contents between the Route and the Session and this will affect where the layer and its contents are saved</td>
<td>If you attempt to move a layer containing track objects, such as signals, to a position above the layer containing the track, you will get an error message
</td>
</tr>
</tr>
<tr valign="top">
</table>
<td>[[image:DotPoint.JPG|link=]]</td>
</td>
<td>There is no advantage in moving a layer '''within''' the same layer group except when preparing for a layer merge operation (see '''Merging a Layer''' below)</td>
</tr>
</tr>
<tr valign="top">
</table>
<td>[[image:DotPoint.JPG|link=]]</td>
</td>
<td>layers in the '''Effect Layers Group''' cannot be moved</td>
</tr>
</tr>
<tr valign="top">
</table>
<td>[[image:DotPoint.JPG|link=]]</td>
</td>
<td>layers from the other groups cannot be moved into the '''Effect Layers Group'''</td>
</tr>
</tr>
</table>
</table>
Line 1,066: Line 1,049:
</tr>
</tr>
</table>
</table>
<br>


'''Left''' click on a layer name and, while holding the left button down, drag the layer up or down to its new position.
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
*depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the move operation
*the move can be reversed (after it has completed) by using the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Ctrl&#160;</span> <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Z&#160;</span> keys
<br>
<br>
=='''<span style="color: white; background-color: blue;">&#160;Merging a Layer&#160;</span>'''==
<table>
<tr valign="top">
<tr valign="top">
<td width=120>[[image:LayerMerge_S20.png|link=]]</td>
<td width=629><span id="skipHidingS10"></span>
<td>'''Right''' click on a layer name and select '''Merge Layer Up''' from the popup menu.<br>
=='''Hiding Layers (S10)'''==
*the selected layer will be merged with the layer '''immediately above''' it
*you may need to move the layer being merged into the correct position before the merge (see '''Moving a Layer''' above)
*depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the merge operation
*the merged layers and their contents can be restored (after the merge has completed) back into two separate layers by using the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Ctrl&#160;</span> <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Z&#160;</span> keys
*layers in the '''Effect Layers Group''' cannot be merged. In place of '''Merge Layer Up''', the '''Effect Layers''' will have a '''Edit Layer''' command
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipAddingObjectsS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipMovingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table>
</table> <!-- END Nav Buttons Table -->
<br>
 
<br>
To hide or show a layer <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Eye Icon''' next to its name.
=='''<span style="color: white; background-color: blue;">&#160;Hiding Layers&#160;</span>'''==
 
Each individual layer has an '''Eye''' icon that controls the state ('''visible''' or '''hidden''') of that layer. '''Left''' click on the icon to toggle its state between '''visible''' and '''hidden'''.<br>
<table width=1000>
If the '''Eye''' is:-
:[[image:LayerEyerOpen_S20.png|link=]] open then layer is '''visible''' in both Surveyor and Driver
:[[image:LayerEyerClosed_S20.png|link=]] closed then layer is '''hidden'''  in both Surveyor and Driver
<br>
<br>
=='''<span style="color: white; background-color: blue;">&#160;Locking Layers&#160;</span>'''==
Each individual layer has a '''Padlock''' icon that controls the state ('''locked''' or '''unlocked''') of that layer. '''Left''' click on the icon to toggle its state between '''locked''' and '''unlocked'''.<br>
If the '''Padlock''' is:-
:[[image:LayerUnLocked_S20.png|link=]] open then the layer is '''unlocked''' and can be edited
:[[image:LayerLocked_S20.png|link=]] closed then the layer is '''locked''' and cannot be edited
<table bgcolor=#000000 width=900 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>
<td>[[image:LayersHideNone.JPG|link=]]</td>
<table bgcolor=#ffffb0 width=896 cellpadding=2>
<td>In the image shown left the two trees are in different Route Layers and all the layers have their [[image:LayerEyeOpen_S20.png|link=]] '''Eye''' icons open (set to '''Show''')
</td>
</tr>
<tr valign="top">
<td>[[image:LayersHideTree.JPG|link=]]</td>
<td>In the image shown left the '''Trees''' layer has its [[image:LayerEyeClosed_S20.png|link=]] '''Eye''' icon closed (set to '''Hide''')<br><br>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[image:NotePad.PNG|link=]]</td>
<td width=25>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span>
----
----
<table>
<table>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Locking a layer will protect its contents from being individually selected, deleted and physically moved</td>
<td>If you attempt to add an object to a hidden layer you will receive a warning message</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[image:DotPoint.JPG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>New assets cannot be added to a locked layer</td>
<td>Layers that are hidden when saved in '''Surveyor''' will also be hidden when loaded in '''Driver'''</td>
</tr>
</tr>
<tr valign="top">
</table>
<td>[[image:DotPoint.JPG|link=]]</td>
</td>
<td>Locked layers can still be deleted, renamed, moved and merged</td>
</tr>
</tr>
</table>
</table>
Line 1,127: Line 1,103:
</tr>
</tr>
</table>
</table>
<br>
 
<br>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
=='''<span style="color: white; background-color: blue;">&#160;Setting the Active Layer&#160;</span>'''==
<br>
<table width=1000>
<tr valign="top">
<tr valign="top">
<td>[[image:LayersPalette_S20_ActiveLayer.png|link=|alt=Active layer selected]]</td>
<td width=629><span id="skipAddingObjectsS10"></span>
<td>the '''Active Layer''' is the layer where new objects will be automatically added when using the '''Placement Tool'''. The active layer is shown in the palette with its name on a blue background. In the image on the left the '''Rail Workers''' layer is the current '''Active Layer'''.<br>
=='''Adding Objects To Layers (S10)'''==
 
The name of the current '''Active Layer''' is also shown in the '''Layer Palette Title Bar'''.<br>
 
To set a new '''Active Layer''', '''Double Left''' click on a layer name.
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipDeletingObjectsS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipHidingS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table>
</table> <!-- END Nav Buttons Table -->
<br>
 
<br>
<table width=1000>
=='''<span style="color: white; background-color: blue;">&#160;Move an Object to a New Layer&#160;</span>'''==
<br>
<table cellpadding=4 bgcolor=#ffffff width=1000>
<tr valign="top">
<tr valign="top">
<td colspan=2>The '''Info Palette''' will show the layer assigned to the currently selected object. An object is selected by using the '''Free Move Tool''' (the <span style="font-weight:700; font-size: 17px; color: white; background-color: black;">&#160;S&#160;</span> key) or the '''Fine Adjustment Tool''' (the <span style="font-weight:700; font-size: 17px; color: white; background-color: black;">&#160;D&#160;</span> key) found in the '''Tools Palette'''.<br>
<td>When an object (such as a scenery item, consist, track or track object) is added to the layout it is automatically placed in the currently '''Active Layer'''.  Unfortunately, '''Surveyor Classic (S10)''' does not indicate which layer is the '''Active Layer''' unless you open the Layers Tool to look. This can lead to objects being placed into the wrong layers and while these objects can later be moved to another layer (see the section [[image:PageLink.PNG|link=]] '''[[#Moving Objects To Other Layers|Moving Objects To Other Layers]]''' below) it would be better to correctly set the '''Active Layer''' first.</td>
</tr>
</table>
<br>
<br>
To the left of the layer name is a small arrow object.</td>
<table bgcolor=#000000>
</tr>
<tr valign="top">
<tr valign="top">
<td>
<td>
[[image:TrackmarkInfo_S20.png|link=|alt=Info palette]]<br><br>
<table bgcolor=#ffffe0>
[[image:TrackmarkLayerInfo_S20.png|link=|alt=Layer control]]
</td>
<td>
<table>
<tr valign="top">
<tr valign="top">
<td>[[image:Tools_S20.png|link=|alt=Tools and keymap for S20]]<br>
<td>[[image:PencilTips.PNG|link=]]</td>
# click the small arrow next to the layer name. This will open the layer properties for the selected object
<td>It is good practice to '''LOCK ALL LAYERS that you are not currently editing.''' This will avoid the all too common problem of accidentally adding objects to the wrong layer.
# click the '''Layer''' drop down box to select a new layer for the object
# if required, click the '''Binding''' drop down box to select a new binding layer for the object
# if required, click the <span style="font-weight: 700; font-size: 17px; color: white; background-color: black;">&#160;Lock Layer&#160;</span> button to lock the selected layer. If the layer is already locked then this will be shown as an <span style="font-weight: 700; font-size: 17px; color: white; background-color: black;">&#160;Unlock Layer&#160;</span> button
</td>
</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</table>
<br>
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>'''You cannot add objects to a layer that is LOCKED'''</td>
</tr>
</tr>
</table>
</table>


<table> <!-- BEGIN Nav Buttons Table -->
If you attempt to add a scenery object to a locked layer you will receive the following message:-
<table width=1000>
<tr valign="top">
<tr valign="top">
<td width=729><span id="stepRouteSession"></span>&nbsp;</td>
<td>[[image:LayersRouteTreesActiveLockedError.JPG|link=]]</td>
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Tick.PNG|link=]] icon to '''accept''' the change and add the object<br>
<td width=75>[[file:NextUp.png|link=#stepWhat|alt=Next Up|Top]]</td>
<span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Cross.PNG|link=]] icon to '''reject''' the change</td>
<td width=75>[[file:NextDown.png|link=#stepBound|alt=Next Down|Next Down]]</td>
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
='''Route Layers vs Session Layers'''=
 
This topic has filled endless threads in the '''Trainz Forums''' with arguments raging on both sides.
 
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<td colspan=2><span style="font-size: 17px;"><b>In Summary:</b></span></td>
</tr>
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>In general, there are no "cast iron" rules that dictate what should be placed in the '''Route Layers Group''' and what should be placed in the '''Session Layers Group''' (for an exception see '''TRS19 Platinum Edition, Trainz Plus, TRS22 Notes''' below). Each Route and Session will be different and different creators have different ways of working. The main question to be asked is how many different '''Sessions''' will be created using a particular '''Route'''?</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table cellpadding=4 bgcolor=#ffffb0>
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:NotePad.PNG|link=]]</td>
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
<td>When adding track objects (signals, speed signs, etc) to a track, the '''objects being added must be in the same layer as the track or in a layer below the track layer'''. For more information, see the section [[image:PageLink.PNG|link=]] '''[[#The "route-layer"|The "route-layer"]]''' below</td>
----
*'''For a Route with only a single Session''' - everything can safely go into the '''Route Layers Group'''
:Many creators only ever build a single Session for each of their Routes and do not use Session Layers at all (but they still have to save the session separately from the route).
*'''For a Route with multiple (2 or more) Sessions''' - certain things will probably need to go into the '''Session Layers Group''' for each Session.
:Many creators build multiple Sessions for each Route and rely on the Session Layers to create the differences between their Sessions.
*Many scenery assets actually have their properties stored in the Session, even when the assets themselves are in a Route layer. Editing the properties of these assets is considered to be a '''change to the Session'''. Unless you have a particular reason for saving the edited data (such as a change to commodities) you can '''usually''' ignore the offer to save the Session. These assets include:-
**junction switches - the left/right switch direction is stored in the Session (but the '''default''' switch direction is stored in the Route)
**industries - the commodities and quantities loaded/unloaded are stored in the Session
**industry enabled wagons - the commodities and quantities carried are stored in the Session
**consist locations ('''TRS19 Platinum Edition''', '''Trainz Plus''' and '''TRS22''') - this is stored in the Session (unless you need to save their new locations, you can safely ignore the offer to save the Session)
**named route objects ('''TRS19 Platinum Edition''', '''Trainz Plus''' and '''TRS22''') - while the name is stored in the Route, adding or changing the name is treated as a change to the Session
</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table cellpadding=4 bgcolor=#ffffb0>
<table bgcolor=#000000 width=1000>
<tr valign="top">
<td>[[file:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">TRS19 Platinum Edition, Trainz Plus, TRS22 Notes:</span><br>
----
*The '''recommended''' practice in these versions of Trainz is to place all consists in a '''session layer''' and '''NOT''' in a '''route layer'''. Because these versions have the '''Unified Driver Surveyor''' Interface, placing a train in a route layer after switching from Driver to Surveyor can cause problems. For example:
**If active Driver consists (i.e. those under manual or AI control) are in a route layer and you switch from Driver to Surveyor to edit the route and save the route edit, then those consists will be saved in their new positions, not their starting positions for the session.
*Recent experiments using the '''Unified Driver Surveyor''' Interface have indicated that when portals produce trains they will be placed into the same layer as the portal - so if a train that is in a '''Session layer''' enters a portal that is in a '''Route layer''' and is later returned to the layout, it will be returned in the same '''Route layer''' as the portal. This has ''possibly always been the case'' with portals but has not been noticed until the arrival of the '''Unified Driver Surveyor''' Interface
For more details see the Trainz Wiki page [[image:WikiLink.PNG|link=]]'''[[How_to_Use_the_UDS_Interface|How to Use the UDS Interface]]'''</td>
</tr>
</table>
<br>
=='''The Route Layers Group'''==
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>The '''Route Layer Group''' should be used for everything that will always appear in '''Driver Mode''' regardless of which Session is playing.''' </td>
</tr>
</table>
There is nothing stopping you from placing everything in the "route-layer" of the '''Route Layers Group''' and never having to worry about dealing with layers ever again - some creators prefer to work this way. However, layers do provide you with a way of organising your scenery objects to make them more manageable, particularly in more complicated layouts. Some examples:-
*A '''Special Objects''' layer or layers that can be used to hold certain scenery objects. For example all the trees or a particular building. This can be very useful when you need to hide those objects to locate or place other objects. Trackside cameras in particular can be very difficult to find when placed in a forest.
*A '''Platform Objects''' layer can be used to hold all platform items such as seats, luggage, luggage trolleys, people, lamp posts, etc. Because these items are placed on top of a platform object they can be very difficult to move or delete without first moving the platform. The layer containing the platform can be locked allowing these objects to be easily moved or deleted.
*'''Hiding and Showing Objects''' in '''Driver Mode'''. There is a Session Rule and a Driver Command that can hide and show layers during the running of a Session. For example: a rail worker can be placed in a separate layer and positioned next to a track lever while shunting operations are underway but can be removed from the scene by hiding that layer when shunting has been completed.
*A '''Test Layer''' for experimenting. Not sure if a particular object is right for your layout? Place it in a temporary layer which you can hide and show to see any differences it makes. This is particularly useful if you are deciding between different types of grasses, for example, placed throughout the layout. If the objects prove to be unsuitable then they can all be deleted by deleting the layer. If they are suitable then the layer can be merged with another or left as a new layer.
*A '''Ruler Layer''' if you are using rulers. Although rulers obey layer behavior (lock and hide) just like all other objects and splines, they have no properties window to show their layer or allow you to change that layer. Consider placing all rulers in a dedicated layer to make their management easier. <span style="background-color: red; color: white; font-weight: 700;">&nbsp;NOTE:&nbsp;</span>&nbsp;Due to a bug in TANE/TRS19, deleting a dedicated '''Ruler Layer''' will not delete the rulers but will '''temporarily''' hide them from view. Rulers will still have to be deleted individually.
 
<table bgcolor=#000000>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#ffffe0>
<table bgcolor=#ffffb0 width=996>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:NotePad.PNG|link=]]</td>
<td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
*'''It is a good idea to place ALL the consists in the same layer''' particularly if they are going to be coupled together during the running of a Session.
----
*A very useful development tool is the '''Bound Layer'''. See [[file:PageLink.PNG|link=]] '''[[#The Bound Layer|The Bound Layer]]''' section below.
There are many features of '''Trainz Routes''' and '''Sessions''' that are '''NOT stored in layers'''. In some cases while the objects themselves may be placed in layers, their settings or properties are not. These include:-
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
*landforms
*textures
*legacy water, '''TurfFX''' and '''Clutter''' prior to '''Trainz Plus'''
*trackside camera '''settings'''
*weather conditions
*time of day
*session rules and driver commands
*signal and junctions '''settings'''
*rolling stock loads
*industry '''settings'''
*portal settings
*passenger station '''settings'''
*navigation points
*interlocking tower '''settings''' [[image:BugMini.PNG|link=]]
</div>
</td>
</td>
</tr>
</tr>
</table>
<tr valign="top">
</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Landforms, textures, effect layers and legacy water are saved as part of the '''Route'''</td>
</tr>
</tr>
</table>
===The "route-layer"===
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''To avoid any confusion over which layer is the original "route-layer", this is one layer that should not be renamed or moved from the top position.'''</td>
<td>Environment Settings are saved in both the '''Route''' and the '''Session''' - see the '''Trainz Wiki Page'''&#160;[[image:WikiLink.PNG|link=]]&#160;'''[[How_to_Use_Environment_Tools|Environment Tools]]''' for more details</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>When you enter or edit the name of a route layer scenery object, such as a station name board, that change will be treated as a change to both the '''Route''' and the '''Session'''. The new or edited name will still be saved as a property of the scenery object in the '''Route''' layer but you will be given the option of saving the '''Session''' as well as the '''Route'''. You can ignore the offer to save the '''Session''' if you have not edited any objects in a '''Session Layer''', the '''Session Layers''' themselves (e.g. moved, merged, deleted or renamed) or other '''Session''' properties (e.g. commodity levels or loads). <span style="background-color: yellow; font-weight: 700;">&#160;If uncertain, always save the Session as well as the Route&#160;</span>
</td>
</tr>
<tr valign="top">
<td>[[image:Bug.png|link=|30px]]</td>
<td>A bug has been reported in the '''Interlocking Towers''' (and the '''Enhanced Interlocking Towers''') where the path and settings are initially saved in the '''Route''' but any later edits and changes are then saved in the '''Session'''. The workaround for this is to always load the '''Session''' when working with '''IT''' and '''EIT''' assets.</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
While all layers are equal, the "route-layer" is special.


<table bgcolor="red" width=900>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td>
<table bgcolor=#fcbcbc width=896>
<tr valign="top">
<tr valign="top">
<td>[[file:Stop.PNG|link=]]</td>
<td width=629><span id="skipDeletingObjectsS10"></span>
<td>'''Track objects''', such as signals, junctions and track signs, ''cannot'' be placed in any layer that is above the layer containing the track that they are attached to. If the '''route-layer''' is used for all the track and track objects and this layer is left as the top layer then this will never be a problem.
=='''Deleting Objects From Layers (S10)'''==
</td>
</td>
<td width=50>[[image:SkipDown.png|link=#skipMovingObjectsS10|Skip Down]]</td>
<td width=50>[[image:SkipUp.png|link=#skipAddingObjectsS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table>
</table> <!-- END Nav Buttons Table -->
</td>
 
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>'''You cannot delete objects from a layer that is LOCKED'''</td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table bgcolor=#000000 cellpadding=2>
<table width=1000 bgcolor=#000000>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#ffffe0>
<table bgcolor=#ffffe0>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>It is '''recommended''' that the following objects should be placed in the '''route-layer''':-
<td>
*Track and interactive industries with track
<table>
*Track infrastructure (turntables, bridges, tunnels, etc)
<tr valign="top">
*Signals and track signs (speed limits, warnings, distance, etc)
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
*Junctions and switches
<td>It is good practice to '''LOCK ALL LAYERS that you are not currently editing.''' This will avoid the all too common problem of accidentally deleting objects from the wrong layer</td>
..and that the "route-layer" be placed at the top of the '''Route Layers Group'''.
</tr>
</td>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>In '''TANE''' and '''TRS19''' rulers are an exception to this "good practice". Unless you have used a dedicated ruler layer for all rulers it can be difficult to discover which layer contains a particular ruler. If rulers are not added to a dedicated layer then you will need to unlock and unhide all the layers first before you can use the '''Delete Ruler''' tool. In '''Trainz Plus''' and '''TRS22''' rulers are treated like any other spline object and this is not an issue.</td>
</tr>
</tr>
</table>
</table>
Line 1,300: Line 1,252:
</tr>
</tr>
</table>
</table>
 
</td>
=='''The Session Layers Group'''==
 
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>The '''Session Layers Group''' should be used for everything that will only be seen in the '''''currently loaded Session'''''.</td>
</tr>
</tr>
</table>
</table>
 
<br>
If you are creating more than one Session based around a particular Route, then you will probably make use of the Session Layers.
Unfortunately '''Trainz''' does not give you a warning message when you attempt to delete an object from a locked layer, the object just refuses to be deleted.
 
<br>
<table cellpadding=4 bgcolor=#ffffb0>
<tr valign="top">
<td>[[file:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
----
Session Layers can contain:-
*Scenery objects that will only appear in one or some of the Sessions.
:For example: If you have placed human figures and equipment for a track work crew alongside the track and want them to be seen in a daylight Session but not in a night Session, then place them in one of the Session Layers of the daylight Session only. Likewise, station staff holding lamps would be placed in one of the Session Layers of the night Session only.
*Consists used in a Session.
</td>
</tr>
<tr valign="top">
<td colspan=2>
<table bgcolor=#000000>
<table bgcolor=#000000>
<tr valign="top">
<tr valign="top">
Line 1,330: Line 1,263:
<table bgcolor=#ffffe0>
<table bgcolor=#ffffe0>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:PencilTips.PNG|link=]]</td>
<td>
<td>If you cannot delete an object then check:-
*'''It is a good idea to place ALL the consists in the same Session Layer and this is strongly <u>recommended</u> for Trainz Plus and TRS22 which have the UDS interface'''. It is also important if different consists are going to be coupled together during the running of a Session
<table>
*'''When you first save a Session, give it a distinctive and informative name.''' Avoid the temptation to use '''Default''' as the name of your Session as you can easily end up with several Sessions all called '''Default'''
<tr valign="top">
</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>that the objects layer and bound layer (if it has been set) are unlocked</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>that you are using the correct delete tool (e.g. such as attempting to delete a tree with the spline, signal or rolling stock delete tool) - it happens!</td>
</tr>
</tr>
</table>
</table>
Line 1,345: Line 1,283:
<br>
<br>


===The "session-layer"===
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
 
An empty '''session-layer''' will be automatically created when you:-
*load a route without also loading a session, or
*create a new route
If you add anything to the '''session-layer''' or add new layers to the '''Session Layers Group''' and do not save the session before you exit from '''Trainz''' then these changes will be lost.
<br>
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<tr valign="top">
<td width=729><span id="stepBound"></span>&nbsp;</td>
<td width=629><span id="skipMovingObjectsS10"></span>
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
=='''Moving Objects To Other Layers (S10)'''==
<td width=75>[[file:NextUp.png|link=#stepRouteSession|alt=Next Up|Top]]</td>
</td>
<td width=75>[[file:NextDown.png|link=#stepDriver|alt=Next Down|Next Down]]</td>
<td width=50>[[image:SkipDown.png|link=#stepToolsS20|Skip Down]]</td>
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
<td width=50>[[image:SkipUp.png|link=#skipDeletingObjectsS10|Skip Up]]</td>
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
</table> <!-- END Nav Buttons Table -->


='''The Bound Layer'''=
<table width=1000>
 
<tr valign="top">
This is a little used and probably little understood layer feature. It allows you to attach an object to two different layers so it can have the properties (locked/unlocked and show/hide) of both layers. The bound layer was introduced as a development tool, its sole use is as a tool in the building of routes and sessions.
<td>[[image:LayersObjectProperties.JPG|link=]]<br>
 
[[image:LayersObjectPropertiesChangeLayer.JPG|link=]]
<table cellpadding=4 bgcolor=#c1e7e7 width=900>
</td>
<td>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps To Move an Object to Another Layer:-:</span></td>
<td>'''An object will be LOCKED and cannot be deleted or moved if its layer OR its <span style="text-decoration: underline;">bound layer</span> is locked.'''
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>'''An object will be HIDDEN if its layer OR its <span style="text-decoration: underline;">bound layer</span> is hidden.'''
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Properties''' window ('''?''' button in the '''Object Tools''') of the object to be moved</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>'''Rulers cannot be bound to another layer.'''
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the '''Layer''' or one of the '''scroll buttons'''</td>
</tr>
</tr>
</table>
<br>
Some applications:-
*Temporarily locking an object by binding it to a locked layer while allowing other objects in the same unlocked layer to be moved or deleted. A simple but very effective development technique is to create a Route layer called "Locked" and then lock it. If you need to temporarily stop an object from being deleted or moved then it can be bound to the "Locked" layer.
*Temporarily hiding an object by binding it to a hidden layer (this will require the hidden layer to be made visible so the object can be unbound).
<br>
<table bgcolor=#000000 width=900>
<tr valign="top">
<tr valign="top">
<td>
<td>[[image:DotPoint3.JPG|link=]]</td>
<table bgcolor=#ffffe0 width=896>
<td>Select the new layer</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>[[image:DotPoint4.JPG|link=]]</td>
<td>If you are going to be working with multiple objects that will be bound to a locked or hidden layer then a simple strategy is to:-
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Tick.PNG|link=]] icon to '''accept''' the change<br>
#Create a new empty layer called "Locked" or "Hidden" and lock or hide that layer, according to your needs
<span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the [[image:Cross.PNG|link=]] icon to '''reject''' the change</td>
#Bind the individual objects to that layer as required
#When editing, testing or whatever you are doing has been completed simply delete the new layer. All objects that have been bound to that layer will have their '''Bound Layer''' property reset to '''none''' so the hidden objects will reappear and the locked objects will be unlocked
</td>
</tr>
</tr>
</table>
</table>
Line 1,402: Line 1,332:
</table>
</table>
<br>
<br>
 
<table bgcolor=#000000 cellpadding=2>
<table bgcolor=#000000 width=900>
<tr valign="top">
<tr valign="top">
<td>
<td>
<table bgcolor=#ffffe0 width=896>
<table bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[file:PencilTips.PNG|link=]]</td>
<td>
<td>If you need to remove an object from a route but cannot alter the route (e.g. it is payware or under another users kuid) then create a new hidden session layer and change the bound layer of the object to the hidden layer. This will be treated as a change to the session only and Trainz will not ask you to save the route as well as the session.
<table>
<tr valign="top">
<td width=25>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
----
</td>
</td>
</tr>
</tr>
</table>
<tr valign="top">
</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''You can move an object into and out of a locked layer'''</td>
</tr>
</tr>
</table>
<br>
=='''<span style="background-color: cyan;">&#160;Setting the Bound Layer in Surveyor Classic (S10)&#160;</span>'''==
<table>
<tr valign="top">
<tr valign="top">
<td>[[file:LayersBoundLayer.JPG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td><br>
<td>In '''TANE''' and '''TRS19''' rulers cannot be moved to a different layer because they do not have a properties window. If it is necessary to move a ruler to another layer, it must be manually created in the new layer (using the '''Add Ruler''' tool), then the pre-existing ruler must be deleted (using the '''Delete Ruler''' tool)</td>
<table cellpadding=4 bgcolor=#ffffff>
<tr>
<td colspan="2">
----</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Steps.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td><span style="font-size: 17px;">'''Steps:'''</span><br>
<td>Multiple scenery objects can be simultaneously moved to another layer by using the '''Bulk Asset Update/Replacement''' tool from the '''Surveyor Tools Menu'''. The exception to this is spline objects (including track splines) which must be moved segment by segment &#9785;</td>
In the '''Properties Window''' of an object:-
#Click the '''Bounding Layer''' box or one of its '''scroll buttons'''
#Select the layer to be used as the '''Bound Layer''' for the object (an object cannot be bound to its own layer)
The effects of the binding can be reversed by setting the '''Bound Layer''' back to '''''<none>'''''.</td>
</tr>
</tr>
<tr>
</table>
<td colspan="2">
</td>
----</td>
</tr>
</tr>
</table></td>
</table>
</td>
</tr>
</tr>
</table>
</table>
<br>
</td>
<table cellpadding=4 bgcolor=#c1e7e7>
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>'''When a layer is deleted any objects bound to that layer will have their ''Bound Layer'' reset to ''<none>'''''
</tr>
</tr>
</table>
</table>
<br>
<br>


=='''<span style="color: white; background-color: blue;">&#160;Setting the Bound Layer in Surveyor 2.0 (S20)&#160;</span>'''==
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<td width=629><span id="stepToolsS20"></span>
='''The Layers Palette in Surveyor 2.0 (S20)'''=
</td>
<td width=50>&#160;</td> <!-- skip Down -->
<td width=50>[[image:SkipUp.png|link=#skipMovingObjectsS10|Skip Up]]</td>
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>[[image:NextUp.png|link=#stepToolsS10|alt=Next Up|Next Up]]</td>
<td width=75>[[image:NextDown.png|link=#stepRouteSession|alt=Next Down|Next Down]]</td>
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</table> <!-- END Nav Buttons Table -->


<table>
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<tr valign="top">
<td>[[image:BindingLayerSet_S20.png|link=|alt=Set Binding]]</td>
<td>
<td><br>
<table width=996 bgcolor=#ffffff cellpadding=2>
<table cellpadding=4 bgcolor=#ffffff>
<tr>
<td colspan="2">
----</td>
</tr>
<tr valign="top">
<tr valign="top">
<td>[[file:Steps.PNG|link=]]</td>
<td align="center"><span style="font-size: 15px;">'''Surveyor 2.0''' is only available in '''Trainz Plus''' and '''TRS22 Platinum'''</span></td>
<td><span style="font-size: 17px;">'''Steps:'''</span><br>
Select an object using either the '''Free Move Tool''' or the '''Fine Adjustment Tool''' from the '''Tools Palette'''. In the '''Info Palette''' of the object:-
#Open the '''Layer''' properties of the object
#Click the '''Bounding''' box or one of its '''scroll buttons'''
#Select the layer to be used as the '''Bound Layer''' for the object (an object cannot be bound to its own layer)
The effects of the binding can be reversed by setting the '''Bound Layer''' back to '''''<none>'''''.</td>
</tr>
</tr>
<tr>
</table>
<td colspan="2">
</td>
----</td>
</tr>
</table></td>
</tr>
</tr>
</table>
</table>
<br>
<br>
<table cellpadding=4 bgcolor=#c1e7e7>
<table width=1000>
<tr valign="top">
<tr valign="top">
<td>[[file:DotPoint.JPG|link=]]</td>
<td>'''Layers''' are found in the '''Layers Palette'''.<br>
<td>'''When a layer is deleted any objects bound to that layer will have their ''Bound Layer'' reset to ''<none>'''''
<table width=500>
<tr valign="top">
<td>[[image:LayersPalette_S20_ListsClosed.png|link=|alt=Layers Palette in S20]]</td>
<td>The '''Layers Palette''' will show all the layers in their groups ('''Effect''', '''Route''' and '''Session''') plus the '''Ground Height''' and '''Ground Textures''' which are "special layers". In the image on the left all the layer groups have been minimised (the "arrow" symbol in front of each group name is pointing to the right).</td>
</tr>
</tr>
</table>
</table>
<br>
<table width=500>
 
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<tr valign="top">
<td width=729><span id="stepDriver"></span>&nbsp;</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td>The '''Route Layers Group''', along with the '''Ground Height''', '''Ground Textures''' and '''Effect Layers''', are saved and loaded with the Route</td>
<td width=75>[[file:NextUp.png|link=#stepRouteSession|alt=Next Up|Top]]</td>
<td width=75>[[file:NextDown.png|link=#bottom|alt=Next Down|Next Down]]</td>
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
<tr valign="top">
 
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
='''Layers in Driver Mode'''=
<td>The '''Session Layers Group''' are saved and loaded with the Session</td>
 
During the running of a Session in '''Driver Mode''' visible layers can be hidden and invisible layers revealled according to the events that occur during the Session.
 
<table>
<tr valign="top">
<td>[[file:LayersDriveShow.JPG|link=]][[file:LayersDriveHide.JPG|link=]]</td>
<td>The two '''Driver Mode''' scenes shown on the left illustrate this feature.
*In the first image on the left, all layers are visible
*In the second image on the left, two of the layers have been hidden
 
The trigger for this change was the arrival of a train at the platform.</td>
</tr>
</tr>
</table>
</table>
This effect could be achieved in two different ways:-
#'''A Driver Command''' - specific to a particular driver, or
#'''A Session Rule''' - specific to a particular driver, consist, or any driver/consist<br>
=='''Using a Driver Command'''==
The driver command [[file:WikiLink.PNG|link=]] '''[[Driver_Commands_List#Layer_Control|Layer Control]]''' hides and shows named layers.<br>
[[file:LayerControlExample.png|link=]]<br>
=='''Using Session Rules'''==
<br>
<br>
<table cellpadding=4 bgcolor=#ffffff>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td><span style="font-weight: 700; font-size: 15px;">Layers can be:-</span>
<table>
<tr valign="top">
<tr valign="top">
<td width="58">[[file:RulesWiki.PNG|link=]]</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width="640"><span style="font-size: 17px;">'''Rules Used:'''</span><br>
<td width=60>'''Created'''</td>
----</td>
<td>&#160;</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=60>'''Deleted'''</td>
<td>&#160;</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=60>'''Hidden'''</td>
<td>&#160;</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td width=60>'''Locked'''</td>
</tr>
</tr>
</table>
*'''[[Session_Rule_List_with_Parameters#Show/Trackside_Check_Rule|Trackside Check Rule]]''' - to trigger the event
*'''[[Session_Rule_List_with_Parameters#Show/Hide_Layer_Rule|Show/Hide Layer Rule]]''' - to hide layers
*'''[[Session_Rule_List_with_Parameters#Message_Popup_Rule|Message Popup Rule]]''' - to open a browser window with a message
<br>
<table cellpadding=4 bgcolor=#ffffff>
<tr valign="top">
<tr valign="top">
<td width="58">[[file:screenshot.PNG|link=]]</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td width="640"><span style="font-size: 17px;">'''Session Editor Screenshot:'''</span><br>
<td>'''Merged'''</td>
----</td>
<td>&#160;</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Moved'''</td>
<td>&#160;</td>
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Renamed'''</td>
<td colspan=3>&#160;</td>
</tr>
</tr>
</table>
</table>
<span style="font-weight: 700; font-size: 15px;">Objects can be:-</span>
<table>
<table>
<tr>
<tr valign="top">
<td>[[file:LayersDriveHideRules.JPG|link=]]</td>
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''assigned''' to a layer</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''bound''' to a second layer</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''moved''' between layers</td>
</tr>
</table>
The following sections show how these tasks can be done using '''Surveyor 2.0'''</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</table>
<br>
</td>
<table cellpadding=4 bgcolor=#ffffff>
<td>
<table bgcolor=#000000 width=500 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffb0 width=496 cellpadding=2>
<tr valign="top">
<td width=22>[[image:NotePad.PNG|link=]]</td>
<td width=374><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
----
</td>
</tr>
<tr valign="top">
<td colspan=2>
If the '''Layers Palette''' is not shown on the screen, then:-
<table>
<tr valign="top">
<td width=175>[[image:WindowsMenu_S20.png|link=|alt=Windows Menu]]</td>
<td>
<table bgcolor=#ffffff>
<tr valign="top">
<tr valign="top">
<td width="58">[[file:explanation.PNG|link=]]</td>
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Display Palettes:-</span></td>
<td width="640"><span style="font-size: 17px;">'''Description:'''</span><br>
</tr>
<tr valign="top">
<td width=20>[[image:DotPoint1.JPG|link=]]</td>
<td>open (<span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span>) the [[image:SurveyorWindowIcon.png|link=]] '''Window Menu''' from the menu icons at the top of the screen</td>
</tr>
<tr valign="top">
<td>&#160;</td>
<td>
<table>
<tr valign="top">
<td width=10>[[image:BulletTick.png|link=]]</td>
<td>visible palettes have ticks next to their names</td>
</tr>
<tr valign="top">
<td>[[image:BulletNoTick.png|link=]]</td>
<td>invisible (hidden) palettes have no ticks next to their names</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>if the '''Layers Palette''', or any required palette, does not have a tick next to its name then <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the name of the palette or on the empty [[image:BulletNoTick.png|link=]] box next to its name. This will add a [[image:BulletTick.png|link=]] and make the palette visible</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
=='''Lock the Route Layer Group (S20)'''==
 
All the layers in the '''Route Layer Group''' can be locked against accidental alteration.
 
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2>The '''Route Layer Group''' has a padlock icon next to its name - shown as [[image:LayerUnLocked_S20.png|link=]] (unlocked)</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the '''unlocked''' icon to lock '''ALL''' the layers in the '''Route Layer Group'''
:The icon will change to [[image:LayerLocked_S20.png|link=]] (locked)</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the '''locked''' icon to unlock all its layers</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
=='''Open a Layer Group (S20)'''==
 
To the left of each '''Layer Group''' name is a small arrow. <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the arrow to open up the group.<br>
<table width=1000>
<tr valign="top">
<td>[[image:LayersPalette_S20_SessionLayersOpen.png|link=|alt=Layers palette with session layers open]]</td>
<td>The image on the left shows that the '''Session Layers Group''' is open and its individual layers are now displayed. To close or minimise the group <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the arrow again.
<table>
<tr valign="top">
<td colspan=2>The image shows that the '''Session Layers Group''' contains 3 individual layers:-</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>the top layer is always named '''session-layer''' and is always present even in a new route where you have not yet added anything</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>likewise, the top layer in the '''Route Layers Group''' is always named '''route-layer''' and is also always present</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>there are two user created layers named '''Track Markers''' and '''Rail Workers''' (layer names are chosen by the creator and do not necessarily indicate their contents or purpose)</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
=='''Add a New Layer (S20)'''==
 
<table width=1000>
<tr valign="top">
<td>You cannot create new layer groups but you can add new layers to a existing group.<br>
Each Layer Group has a [[image:LayerAdd_S20.png|link=]] icon next to its name. <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the icon to add and name a new layer to that group. If you are adding a new '''Effect Layer''' then you will also have to identify the type of effect - '''TurfFX''', '''Clutter''', '''Water''' or '''Color''' (the '''Color''' effect layer is only visible in <span style="background-color: yellow;">'''HD''' routes created using '''Trainz Plus'''</span>).</td>
</tr>
</table>
<br>
=='''Renaming a Layer (S20)'''==
 
<table width=1000>
<tr valign="top">
<td width=120>[[image:LayerRename_S20.png|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Right Click</span> on a layer name and select <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Rename Layer..&#160;</span> from the popup menu.<br><br>
You will be asked to enter a new name for the layer.</td>
</tr>
</table>
<br>
=='''Deleting a Layer (S20)'''==
 
<table width=1000>
<tr valign="top">
<td width=120>[[image:LayerDelete_S20.png|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Right Click</span> on a layer name and select <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Delete Layer&#160;</span> from the popup menu.<br>
You will be given a warning that you are about to delete a layer.
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>if you confirm the delete order then the layer and '''<u>all its contents</u>''' will be deleted</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the deleting operation</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>the deleted layer and its contents can be restored (after the delete has completed) using the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Ctrl&#160;</span> <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Z&#160;</span> keys</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
=='''Moving a Layer (S20)'''==
 
Layers can be individually moved up and down within the same layer group or between the '''Route Layers Group''' and the '''Session Layers Group'''. <br>
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<td>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
----
</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Moving a layer between the '''Session Layer Group''' and the '''Route Layer Group'''  will move the layer and its contents between the Route and the Session and this will affect where the layer and its contents are saved - in the '''Route''' or in the '''Session'''</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>There is no advantage in moving a layer '''within''' the same layer group except when preparing for a layer merge operation (see '''Merging a Layer''' below)
<table bgcolor=#fcbcbc width=896>
<tr valign="top">
<td>[[image:Stop.PNG|link=]]</td>
<td>Layers containing '''Track objects''', such as signals, junctions and track signs, ''cannot'' be moved to a position that is above the layer containing the track that they are attached to. If the '''route-layer''' is used for all the track and track objects and this layer is left as the top layer in the route layer group then this will never be a problem.
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>layers in the '''Effect Layers Group''' cannot be moved</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>layers from the other groups cannot be moved into the '''Effect Layers Group'''</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table 1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Move a Layer:-</span></td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on a layer name</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">&#160;Left Click and Drag&#160;</span> the layer up or down to its new position.
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the move operation</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>the move can be reversed (after it has completed) by using the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Ctrl&#160;</span> <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Z&#160;</span> keys</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<span id="MergeLayersS20"></span>
=='''Merging a Layer (S20)'''==
 
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<td width=25>[[image:NotePad.PNG|link=]]</td>
<td>In '''S20''' layers can only be merged with the layer directly above. To merge layers separated by other layers you will need to move one of the layers before the merge.</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000>
<tr valign="top">
<td width=120>[[image:LayerMerge_S20.png|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Right Click</span> on a layer name and select <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Merge Layer Up&#160;</span> from the popup menu.
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>the selected layer will be merged with the layer '''immediately above''' it</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>you may need to move the layer being merged into the correct position before the merge (see '''Moving a Layer''' above)</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the merge operation</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>the merged layers and their contents can be restored (after the merge has completed) back into two separate layers by using the <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Ctrl&#160;</span> <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Z&#160;</span> keys</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>layers in the '''Effect Layers Group''' cannot be merged. In place of <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Merge Layer Up&#160;</span> the '''Effect Layers''' will have an <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Edit Layer&#160;</span> command</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
 
=='''Hiding Layers (S20)'''==
 
<table width=1000>
<tr valign="top">
<td>
Each individual layer has an '''Eye''' icon that controls the visible state of that layer. <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the icon to toggle its state between '''visible''' and '''hidden'''. If the '''Eye''' is:-
:[[image:LayerEyeOpen_S20.png|link=]] open then layer is '''visible''' in both Surveyor and Driver
:[[image:LayerEyeClosed_S20.png|link=]] closed then layer is '''hidden'''  in both Surveyor and Driver</td>
</tr>
</table>
<br>
=='''Locking Layers (S20)'''==
 
<table width=1000>
<tr valign="top">
<td>
Each individual layer has a '''Padlock''' icon that controls the state ([[image:LayerLocked_S20.png|link=]] '''Locked''' or [[image:LayerUnLocked_S20.png|link=]] '''Unlocked''') of that layer. <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the icon to toggle its state between '''Locked''' and '''Unlocked'''.<br>
If the '''Padlock''' is:-
:[[image:LayerUnLocked_S20.png|link=]] open then the layer is '''Unlocked''' and can be edited
:[[image:LayerLocked_S20.png|link=]] closed then the layer is '''Locked''' and cannot be edited</td>
</tr>
</table>
 
<table bgcolor=#000000 width=900 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffb0 width=896 cellpadding=2>
<tr valign="top">
<td>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
----
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Locking a layer will protect its contents from being individually selected, deleted and physically moved</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>New assets cannot be added to a locked layer</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Locked layers can still be deleted, renamed, moved and merged</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
=='''Setting the Active Layer (S20)'''==
 
<table width=1000>
<tr valign="top">
<td>[[image:LayersPalette_S20_ActiveLayer.png|link=|alt=Active layer selected]]</td>
<td>the '''Active Layer''' is the layer where new objects will be automatically added when using the '''Placement Tool''' and pasting or painting a '''Scrapbook'''. The active layer is shown in the palette with its name on a light grey background. In the image on the left the '''Rail Workers''' layer is the current '''Active Layer'''.<br>
 
The name of the current '''Active Layer''' is also shown in the '''Layer Palette Title Bar'''.<br>
 
To set a new '''Active Layer''', <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the layer name.
</td>
</tr>
</table>
<br>
=='''Move an Object to Another Layer (S20)'''==
 
<table cellpadding=2 bgcolor=#ffffff width=1000>
<tr valign="top">
<td colspan=2>The '''Info Palette''' will show the layer assigned to the currently selected object. An object is selected by using the '''Free Move Tool'''&#160;[[image:S20_FreeMoveToolIcon.png|link=|20px]] (the <span style="font-weight:700; font-size: 17px; color: white; background-color: black;">&#160;S&#160;</span> key) or the '''Fine Adjustment Tool'''&#160;[[image:S20_FineAdjustmentToolIcon.png|link=|20px]] (the <span style="font-weight:700; font-size: 17px; color: white; background-color: black;">&#160;D&#160;</span> key) found in the '''Tools Palette'''.<br>
<br>
To the left of the layer name is a small arrow object.</td>
</tr>
<tr valign="top">
<td>
[[image:TrackmarkInfo_S20.png|link=|alt=Info palette]]<br><br>
[[image:TrackmarkLayerInfo_S20.png|link=|alt=Layer control]]
</td>
<td>
<table>
<tr valign="top">
<td>[[image:Tools_S20.png|link=|alt=Tools and keymap for S20]]</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Move an Object to Another Layer:-</span></td>
</tr>
<tr valign="top">
<td colspan=2>
<table>
<tr valign="top">
<td>
<table width=490>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>Using either the '''Free Move Tool'''&#160;[[image:S20_FreeMoveToolIcon.png|link=|20px]] (the <span style="font-weight:700; font-size: 17px; color: white; background-color: black;">&#160;S&#160;</span> key) or the '''Fine Adjustment Tool'''&#160;[[image:S20_FineAdjustmentToolIcon.png|link=|20px]] (the <span style="font-weight:700; font-size: 17px; color: white; background-color: black;">&#160;D&#160;</span> key) <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the object to be moved. Its details, including the name of its current layer, will appear in the <span style="font-weight: 700; font-size: 15px; color: white; background-color: #797979;">&#160;Info&#160;Palette&#160;</span>. The layer must '''NOT''' be locked.</td>
</tr>
</table>
</td>
<td>
<table width=490>
<tr valign="top">
<td>
<table bgcolor=#ffffe0 cellpadding=2>
<tr valign="top">
<td width=25>[[image:PencilTips.PNG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px;">Moving Multiple Objects</span></td>
</tr>
<tr valign="top">
<td colspan=2>You can select and move multiple objects to another layer in '''Surveyor 2.0''' but all the selected objects must be in the '''SAME''' layer and that layer must '''NOT''' be locked</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint2.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the small arrow next to the layer name. This will open the layer properties for the selected object</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint3.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Layer''' drop down box and <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> on the name of the new layer for the object</td>
</tr>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Optional Steps:</span></td>
</tr>
<tr valign="top">
<td>[[image:Ablue.png|link=]]</td>
<td>if required, <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Binding''' drop down box to select a new binding layer for the object</td>
</tr>
<tr valign="top">
<td>[[image:Bblue.png|link=]]</td>
<td>if required, <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the <span style="font-weight: 700; font-size: 17px; color: white; background-color: black;">&#160;Select Layer&#160;</span> button to set this layer as the '''Active Layer'''. If the layer is already the '''Active Layer''' then this button will be greyed out and cannot be selected</td>
</tr>
<tr valign="top">
<td>[[image:Cblue.png|link=]]</td>
<td>if required, <span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the <span style="font-weight: 700; font-size: 17px; color: white; background-color: black;">&#160;Lock Layer&#160;</span> button to lock the selected layer. If the layer is already locked then this will be shown as an <span style="font-weight: 700; font-size: 17px; color: white; background-color: black;">&#160;Unlock Layer&#160;</span> button and can be clicked to unlock the layer</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<td width=629><span id="stepRouteSession"></span>
='''Route Layers vs Session Layers'''=
</td>
<td width=50>[[image:SkipDown.png|link=#skipRouteGroup|Skip Down]]</td> <!-- skip Down -->
<td width=50>&#160;</td> <!-- skip Up -->
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>[[image:NextUp.png|link=#stepToolsS20|alt=Next Up|Top]]</td>
<td width=75>[[image:NextDown.png|link=#stepBound|alt=Next Down|Next Down]]</td>
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
This topic has filled endless threads in the '''Trainz Forums''' with arguments raging on both sides.
 
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>In general, there are no "cast iron" rules that dictate what should be placed in the '''Route Layers Group''' and what should be placed in the '''Session Layers Group''' (for an exception see '''TRS19 Platinum Edition, Trainz Plus, TRS22 Notes''' below)</td>
</tr>
</table>
 
<table width=1000>
<tr valign="top">
<td>Each Route and Session will be different and different creators have different ways of working. The main question to be asked is how many different '''Sessions''' will be created using a particular '''Route'''?</td>
</tr>
</table>
 
<table cellpadding=2 bgcolor=#ffffb0 width=1000>
<tr valign="top">
<td width=25>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
----
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''For a Route with only a single Session''' - everything can safely go into the '''Route Layers Group'''
:Many creators only ever build a single Session for each of their Routes and do not use Session Layers at all (but they still have to save the session separately from the route)</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''For a Route with multiple (2 or more) Sessions''' - certain things will probably need to go into the '''Session Layers Group''' for each Session.
:Many creators build multiple Sessions for each Route and rely on the Session Layers to create the differences between their Sessions</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Many scenery assets actually have their properties stored in the Session, even when the assets themselves are in a Route layer. Editing the properties of these assets is considered to be a '''change to the Session'''.  Unless you have a particular reason for saving the edited data (such as a change to commodities) you can '''usually''' ignore the offer to save the Session. These assets include:-
<table>
<tr valign="top">
<td width=10>[[image:RedDot10x10.png|link=]]</td>
<td>junction switches - the left/right switch direction is stored in the Session (but the '''default''' switch direction is stored in the Route). See '''Tips:''' below</td>
</tr>
<tr valign="top">
<td>[[image:RedDot10x10.png|link=]]</td>
<td>industries - the commodities and quantities loaded/unloaded are stored in the Session</td>
</tr>
<tr valign="top">
<td>[[image:RedDot10x10.png|link=]]</td>
<td>industry enabled wagons - the commodities and quantities carried are stored in the Session</td>
</tr>
<tr valign="top">
<td>[[image:RedDot10x10.png|link=]]</td>
<td>consist locations ('''TRS19 Platinum Edition''', '''Trainz Plus''' and '''TRS22''') - this is stored in the Session. Unless you need to save their new locations, you can safely ignore the offer to save the Session</td>
</tr>
<tr valign="top">
<td>[[image:RedDot10x10.png|link=]]</td>
<td>named route objects ('''TRS19 Platinum Edition''', '''Trainz Plus''' and '''TRS22''') - while the name is stored in the Route, adding or changing the name is treated as a change to the Session. If the name is all that you have changed then you can safely ignore the offer to save the Session</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding=2 bgcolor=#ffffb0 width=1000>
<tr valign="top">
<td>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">TRS19 Platinum Edition, Trainz Plus, TRS22 Notes:</span><br>
----
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>The '''recommended''' practice in these versions of Trainz is to place all consists in a '''session layer''' and '''NOT''' in a '''route layer'''. Because these versions have the '''Unified Driver Surveyor''' Interface, placing a train in a route layer after switching from Driver to Surveyor can cause problems. For example:-
<table>
<tr valign="top">
<td>[[image:RedDot10x10.png|link=]]</td>
<td>If active Driver consists (i.e. those under manual or AI control) are in a route layer and you switch from Driver to Surveyor to edit the route and save the route edit, then those consists will be saved in their new positions, not their starting positions for the session</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Recent experiments using the '''Unified Driver Surveyor''' Interface have indicated that when portals produce trains they will be placed into the same layer as the portal - so if a train that is in a '''Session layer''' enters a portal that is in a '''Route layer''' and is later returned to the layout, it will be returned in the same '''Route layer''' as the portal. This has ''possibly always been the case'' with portals but has not been noticed until the arrival of the '''Unified Driver Surveyor''' Interface</td>
</tr>
<tr valign="top">
<td colspan=2>For more details see the '''Trainz Wiki Page'''&#160;[[image:WikiLink.PNG|link=]]'''[[How_to_Use_the_UDS_Interface|How to Use the UDS Interface]]'''</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffe0 cellpadding=2>
<tr valign="top">
<td width=25>[[image:PencilTips.PNG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px;">Setting Different Switch Directions in Routes and Sessions</span><br>
A switch, when added to a route, can be set to a '''default''' direction and all sessions created using that route can use that default switch direction. However, you can set the switch to a different direction in one or more sessions without changing its default direction in the route.</td>
</tr>
<tr valign="top">
<td colspan=2>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Save the Default Switch Direction in the Route:-</span></td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>Set the switch to the desired direction for the route. If the switch is already in that direction then change something in the route (e.g. move a tree a few centimetres) to make sure that the route has been edited</td>
<td rowspan=3>[[image:RouteSARSaveExistingNoSession.png|link=]]</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>Save (<span style="font-weight: 700; font-size: 15px;"><span style="color: white; background-color: black;">&#160;Ctrl&#160;</span>&#160;+&#160;<span style="color: white; background-color: black;">&#160;S&#160;</span></span> or select <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Save&#160;</span> from the [[image:SurveyorSystemIcon.png|link=]] '''System Menu''')</td>
<!-- extra row in rowspan -->
</tr>
<tr valign="top">
<td>[[image:DotPoint3.JPG|link=]]</td>
<td>In the '''Save Dialogue Window''', make sure that the options
<table>
<tr valign="top">
<td>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Overwrite existing route and'''</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Do not save session'''</td>
</tr>
</table>
...are selected and then save</td>
</tr>
</table>
</td>
<!-- extra row in rowspan -->
</tr>
</table>
<br>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Save a Different Switch Direction in a Session:-</span></td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>Set the switch to the desired direction for the Session</td>
<td rowspan=3>[[image:SessionSARSaveExistingNoRoute.png|link=]]</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>Save (<span style="font-weight: 700; font-size: 15px;"><span style="color: white; background-color: black;">&#160;Ctrl&#160;</span>&#160;+&#160;<span style="color: white; background-color: black;">&#160;S&#160;</span></span> or select <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;Save&#160;</span> from the [[image:SurveyorSystemIcon.png|link=]] '''System Menu''')</td>
<!-- extra row in rowspan -->
</tr>
<tr valign="top">
<td>[[image:DotPoint3.JPG|link=]]</td>
<td>The Save Dialogue Window '''SHOULD''' only contain the options
<table>
<tr valign="top">
<td>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Overwrite existing session'''</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Create new session'''</td>
</tr>
</table>
Select one of the options and then save</td>
<!-- extra row in rowspan -->
</tr>
</table>
</td>
</tr>
</table>
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipRouteGroup"></span>
=='''The Route Layers Group'''==
</td>
<td width=50>[[image:SkipDown.png|link=#skipSessionGroup|Skip Down]]</td> <!-- skip Down -->
<td width=50>[[image:SkipUp.png|link=#stepRouteSession|Skip Up]]</td> <!-- skip Up -->
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>The '''Route Layer Group''' should be used for everything that will always appear in '''Driver Mode''' regardless of which Session is playing.''' </td>
</tr>
</table>
<br>
<table width=1000>
<tr valign="top">
<td>There is nothing stopping you from placing everything in the '''"route-layer"''' of the '''Route Layers Group''' and never having to worry about dealing with layers ever again - some creators prefer to work this way. However, layers do provide you with a way of organising your scenery objects to make them more manageable, particularly in more complicated layouts.
<br>
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2>Some examples:-</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>A '''Special Objects''' layer or layers that can be used to hold certain scenery objects. For example all the trees or a particular building. This can be very useful when you need to hide those objects to locate or place other objects. Trackside cameras in particular can be very difficult to find when placed in a forest</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>A '''Platform Objects''' layer can be used to hold all platform items such as seats, luggage, luggage trolleys, people, lamp posts, etc. Because these items are placed on top of a platform object they can be very difficult to move or delete without first moving the platform. The layer containing the platform can be locked allowing these objects to be easily moved or deleted</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''Hiding and Showing Objects''' in '''Driver Mode'''. There is a Session Rule and a Driver Command that can hide and show layers during the running of a Session. For example: a rail worker can be placed in a separate layer and positioned next to a track lever while shunting operations are underway but can be removed from the scene by hiding that layer when shunting has been completed</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>A '''Test Layer''' for experimenting. Not sure if a particular object is right for your layout? Place it in a temporary layer which you can hide and show to see any differences it makes. This is particularly useful if you are deciding between different types of grasses, for example, placed throughout the layout. If the objects prove to be unsuitable then they can all be deleted by deleting the layer. If they are suitable then the layer can be merged with another or left as a new layer</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>In '''TANE''' and '''TRS19''' it is a good idea to add a '''Ruler Layer''' if you are using rulers. In '''TANE''' and '''TRS19''' rulers obey layer behaviour (lock and hide), just like all other objects and splines, but have no properties window to show their layer or allow you to change their layer. Consider placing all '''TANE''' and '''TRS19''' rulers in a dedicated layer to make their management easier. <span style="background-color: red; color: white; font-weight: 700;">&#160;NOTE:&#160;</span>&#160;Due to a bug in TANE/TRS19, deleting a dedicated '''Ruler Layer''' will not delete the rulers but will '''temporarily''' hide them from view. Rulers will still have to be deleted individually.<br>
In '''Trainz PLus''' and '''TRS22''' these issues have been overcome and rulers are '''Spline Objects''' and have all the properties of splines.</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table bgcolor=#000000>
<tr valign="top">
<td>
<table bgcolor=#ffffe0>
<tr valign="top">
<td>[[image:PencilTips.PNG|link=]]</td>
<td>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''It is a good idea to place ALL the consists in the same layer''' particularly if they are going to be coupled together during the running of a Session</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>A very useful development tool is the '''Bound Layer'''. See [[image:PageLink.PNG|link=]] '''[[#The Bound Layer|The Bound Layer]]''' section below</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
===The "route-layer"===
 
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>To avoid any confusion over which layer is the original '''"route-layer"''', this is one layer that '''should not be renamed or moved from the top position'''</td>
</tr>
</table>
<br>
While all layers are equal, the '''"route-layer"''' is special.
 
<table bgcolor="red" width=900>
<tr valign="top">
<td>
<table bgcolor=#fcbcbc width=896>
<tr valign="top">
<td>[[image:Stop.PNG|link=]]</td>
<td>'''Track objects''', such as signals, junctions and track signs, ''cannot'' be placed in any layer that is above the layer containing the track that they are attached to. If the '''route-layer''' is used for all the track and track objects and this layer is left as the top layer then this will never be a problem.
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffe0>
<tr valign="top">
<td>[[image:PencilTips.PNG|link=]]</td>
<td>It is '''recommended''' that the following objects should be placed in the '''route-layer''':-
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Track and interactive industries with track</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Track infrastructure (turntables, bridges, tunnels, etc)</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Signals and track signs (speed limits, warnings, distance, etc)</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Junctions and switches</td>
</tr>
<tr valign="top">
<td colspan=2>..and that the '''"route-layer"''' is at the top of the '''Route Layers Group'''</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
 
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipSessionGroup"></span>
=='''The Session Layers Group'''==
</td>
<td width=50>[[image:SkipDown.png|link=#stepBound|Skip Down]]</td> <!-- skip Down -->
<td width=50>[[image:SkipUp.png|link=#skipRouteGroup|Skip Up]]</td> <!-- skip Up -->
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>The '''Session Layers Group''' should be used for everything that will only be seen in the '''''currently loaded Session'''''.</td>
</tr>
</table>
<br>
If you are creating more than one Session based around a particular Route, then you will probably make use of the Session Layers.
 
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffb0 cellpadding=2>
<tr valign="top">
<td>
<table>
<tr valign="top">
<td width=25>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
----
Session Layers can contain:-
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Scenery objects that will only appear in one or some of the Sessions.
:For example: If you have placed human figures and equipment for a track work crew alongside the track and want them to be seen in a daylight Session but not in a night Session, then place them in one of the Session Layers of the daylight Session only. Likewise, station staff holding lamps would be placed in one of the Session Layers of the night Session only</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Consists used in a Session</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000 bgcolor=#000000>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffe0>
<tr valign="top">
<td>[[image:PencilTips.PNG|link=]]</td>
<td>
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''It is a good idea to place ALL the consists in the same Session Layer and this is strongly <u>recommended</u> for Trainz Plus and TRS22 which have the UDS interface'''. It is also important if different consists are going to be coupled together during the running of a Session</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>'''When you first save a Session, give it a distinctive and informative name.''' Avoid the temptation to use '''Default''' as the name of your Session as you can easily end up with several Sessions all called '''Default'''</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
 
===The "session-layer"===
 
<table width=1000>
<tr valign="top">
<td>
<table width=400>
<tr valign="top">
<td colspan=2>An empty '''session-layer''' will be automatically created when you:-</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>load a route without also loading a session, or</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>create a new route</td>
</tr>
</table>
</td>
<td>
<table width=600 bgcolor=#ff0000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#fcbcbc cellpadding=2>
<tr valign="top">
<td>[[image:Stop.PNG|link=]]</td>
<td><span style="font-size: 15px; font-weight: 700;">WARNING:</span><br>
If you edit or add anything to the '''session-layer''' or add new layers to the '''Session Layers Group''' and do not save the session then those changes will be lost when you exit
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<td width=629><span id="stepBound"></span>
 
='''The Bound Layer'''=
</td>
<td width=50>[[image:SkipDown.png|link=#skipBoundS10|Skip Down]]</td> <!-- skip Down -->
<td width=50>[[image:SkipUp.png|link=#skipSessionGroup|Skip Up]]</td> <!-- skip Up -->
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>[[image:NextUp.png|link=#stepRouteSession|alt=Next Up|Top]]</td>
<td width=75>[[image:NextDown.png|link=#stepDriver|alt=Next Down|Next Down]]</td>
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>In '''Trainz Plus''' and '''TRS22''' the '''Bound Layer''' is often referred to as the '''Binding Layer'''</td>
</tr>
</table>
<br>
<table width=1000>
<tr valign="top">
<td>This is a little used and probably little understood layer feature. It allows you to attach an object to two different layers so it can have the properties (locked/unlocked and show/hide) of both layers. The bound/binding layer was introduced as a development tool, its sole use is as a tool in the building of routes and sessions.</td>
</tr>
</table>
<br>
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>'''An object will be LOCKED and cannot be deleted or moved if its layer OR its <span style="text-decoration: underline;">bound/binding layer</span> is locked.'''</td>
</tr>
<tr valign="top">
<td>[[image:BlueDot10x10.png|link=]]</td>
<td>'''An object will be HIDDEN if its layer OR its <span style="text-decoration: underline;">bound/binding layer</span> is hidden.'''</td>
</tr>
<tr valign="top">
<td>[[image:BlueDot10x10.png|link=]]</td>
<td>'''In TRS19 and TANE Rulers cannot be bound to another layer.'''</td>
</tr>
</table>
<br>
<table width=1000>
<tr valign="top">
<td>
<table bgcolor=#000000 width=454 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff width=450 cellpadding=2>
<tr valign="top">
<td width=150 align="center">'''Assigned<br>Layer'''</td>
<td rowspan=9 bgcolor="black" width=1></td> <!-- Row count -->
<td width=150 align="center">'''Bound/Binding<br>Layer'''</td>
<td rowspan=9 bgcolor="black" width=1></td> <!-- Row count -->
<td width=150 align="center">'''Object<br>Status'''</td>
</tr>
<tr>
<td bgcolor="black" colspan=5></td>
</tr>
<tr valign="top">
<td>[[image:LayerUnLocked_S20.png|link=]] '''Unlocked'''</td>
<td>[[image:LayerUnLocked_S20.png|link=]] or '''None'''</td>
<td>[[image:LayerUnLocked_S20.png|link=]] '''Unlocked'''</td>
</tr>
<tr valign="top">
<td bgcolor=#ffffb0>[[image:LayerLocked_S20.png|link=]] '''LOCKED'''</td>
<td>[[image:LayerLocked_S20.png|link=]] or [[image:LayerUnLocked_S20.png|link=]] or '''None'''</td>
<td bgcolor=#ffffb0>[[image:LayerLocked_S20.png|link=]] '''LOCKED'''</td>
</tr>
<tr valign="top">
<td>[[image:LayerUnLocked_S20.png|link=]] '''Unlocked'''</td>
<td bgcolor=#ffffb0>[[image:LayerLocked_S20.png|link=]] '''LOCKED'''</td>
<td bgcolor=#ffffb0>[[image:LayerLocked_S20.png|link=]] '''LOCKED'''</td>
</tr>
<tr>
<td bgcolor="black" colspan=5></td>
</tr>
<tr valign="top">
<td>[[image:LayerEyeOpen_S20.png|link=]] '''Visible'''</td>
<td>[[image:LayerEyeOpen_S20.png|link=]] or '''None'''</td>
<td>[[image:LayerEyeOpen_S20.png|link=]] '''Visible'''</td>
</tr>
<tr valign="top">
<td bgcolor="lightcyan">[[image:LayerEyeClosed_S20.png|link=]] '''HIDDEN'''</td>
<td>[[image:LayerEyeOpen_S20.png|link=]] or [[image:LayerEyeClosed_S20.png|link=]] or '''None'''</td>
<td bgcolor="lightcyan">[[image:LayerEyeClosed_S20.png|link=]] '''HIDDEN'''</td>
</tr>
<tr valign="top">
<td>[[image:LayerEyeOpen_S20.png|link=]] '''Visible'''</td>
<td bgcolor="lightcyan">[[image:LayerEyeClosed_S20.png|link=]] '''HIDDEN'''</td>
<td bgcolor="lightcyan">[[image:LayerEyeClosed_S20.png|link=]] '''HIDDEN'''</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td>
<table width=550>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">In Summary:-</span></td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td bgcolor=#ffffb0>If the '''Assigned Layer''' or the '''Bound/Binding Layer''' of an object is '''Locked''' then the object will be '''Locked'''</td>
</tr>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td bgcolor="lightcyan">If the '''Assigned Layer''' or the '''Bound/Binding Layer''' of an object is '''Hidden''' then the object will be '''Hidden'''</td>
</tr>
</table>
<br>
<table width=550 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffe0 cellpadding=2>
<tr valign="top">
<td width=25>[[image:PencilTips.PNG|link=]]</td>
<td>In '''Surveyor 2.0''' you can also use the asset filters found in the <span style="font-weight: 700; font-size: 15px; color: white; background-color: #797979;">&#160;Filter Palette&#160;</span> and the <span style="font-weight: 700; font-size: 15px; color: white; background-color: #797979;">&#160;Assets Palette&#160;</span> to lock or hide specific assets or types of assets from selection when you are working in Surveyor. See the '''Trainz Wiki Page'''&#160;[[image:WikiLink.PNG|link=]]&#160;'''[[How_to_Use_S20_Tools#Narrowing the Search|S20 Tools - Narrowing the Search]]''' for more details</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table bgcolor=#000000 width=1000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff width=996 cellpadding=2>
<tr valign="top">
<td>Some applications:-
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Temporarily locking an object by binding it to a locked layer while allowing other objects in the same unlocked layer to be moved or deleted. A simple but very effective development technique is to create a Route layer called "Locked" and then lock it. If you need to temporarily stop an object from being deleted or moved then it can be bound to the "Locked" layer</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>Temporarily hiding an object by binding it to a hidden layer (this will require the hidden layer to be made visible so the object can be unbound)</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table bgcolor=#000000 width=1000>
<tr valign="top">
<td>
<table bgcolor=#ffffe0 width=996>
<tr valign="top">
<td>[[image:PencilTips.PNG|link=]]</td>
<td>If you are going to be working with multiple objects that will be bound to a locked or hidden layer then a simple strategy is to:-
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Use a Bound Layer:-</span></td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>Create a new empty layer called "Locked" or "Hidden" and lock or hide that layer, according to your needs</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>Bind the individual objects to that layer as required</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint3.JPG|link=]]</td>
<td>When editing, testing or whatever you are doing has been completed simply delete the new layer. All objects that have been bound to that layer will have their '''Bound Layer''' property reset to '''none''' so the hidden objects will reappear and the locked objects will be unlocked</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table bgcolor=#000000 width=1000>
<tr valign="top">
<td>
<table bgcolor=#ffffe0 width=996>
<tr valign="top">
<td>[[image:PencilTips.PNG|link=]]</td>
<td>If you need to remove an object from a route but cannot alter the route (e.g. it is payware or under another users kuid) then create a new hidden session layer and change the bound layer of the object to the hidden layer. This will be treated as a change to the session only and Trainz will not ask you to save the route as well as the session.
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipBoundS10"></span>
=='''Setting an Object to the Bound Layer in Surveyor Classic (S10)'''==
</td>
<td width=50>[[image:SkipDown.png|link=#skipBoundS20|Skip Down]]</td> <!-- skip Down -->
<td width=50>[[image:SkipUp.png|link=#stepBound|Skip Up]]</td> <!-- skip Up -->
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
<table width=1000>
<tr valign="top">
<td>[[image:LayersBoundLayer.JPG|link=]]</td>
<td>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Set a Bound Layer:-</span></td>
</tr>
<tr valign="top">
<td>
<table>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Bounding Layer''' box or one of its '''scroll buttons'''</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>Select the layer to be used as the '''Bound Layer''' for the object (an object cannot be bound to its own layer)</td>
</tr>
<tr valign="top">
<td colspan=2>The effects of the binding can be reversed by setting the '''Bound Layer''' back to '''''&lt;none&gt;'''''</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>'''When a layer is deleted any objects bound to that layer will have their ''Bound Layer'' reset to ''&lt;none&gt;'''''</td>
</tr>
</table>
<br>
<table width=1000> <!-- BEGIN Nav Buttons Table SKIPS NO SECTIONS -->
<tr valign="top">
<td width=629><span id="skipBoundS20"></span>
=='''Setting an Object to the Bound Layer in Surveyor 2.0 (S20)'''==
</td>
<td width=50>[[image:SkipDown.png|link=#stepDriver|Skip Down]]</td> <!-- skip Down -->
<td width=50>[[image:SkipUp.png|link=#skipBoundS10|Skip Up]]</td> <!-- skip Up -->
<td width=46>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
<td width=75>&#160;</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
<table width=1000 bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table width=996 bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td align="center"><span style="font-size: 15px;">'''Surveyor 2.0''' is only available in '''Trainz Plus''' and '''TRS22 Platinum'''</span></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000>
<tr valign="top">
<td>[[image:BindingLayerSet_S20.png|link=|alt=Set Binding]]</td>
<td>
<br>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps: To Set the Bound Layer in Surveyor 2.0:-</span></td>
</tr>
<tr valign="top">
<td colspan=2>Select an object, or a group of objects, using either the '''Free Move Tool'''&#160;[[image:S20_FreeMoveToolIcon.png|link=|20px]] or the '''Fine Adjustment Tool'''&#160;[[image:S20_FineAdjustmentToolIcon.png|link=|20px]]. In the '''Info Palette''' of the object (or the last selected object):-</td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>Open the '''Layer''' properties of the object</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the '''Bounding''' box or one of its '''scroll buttons'''</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint3.JPG|link=]]</td>
<td>Select the layer to be used as the '''Bound Layer''' for the object (an object cannot be bound to its own layer)</td>
</tr>
<tr valign="top">
<td colspan=2>The effects of the binding can be reversed by setting the '''Bound Layer''' back to '''''&lt;none&gt;'''''</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width=1000 bgcolor="lightcyan" cellpadding=2>
<tr valign="top">
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
<td>When a layer is deleted any objects bound to that layer will have their '''Bound Layer''' reset to '''&lt;none&gt;'''</td>
</tr>
</table>
<br>
 
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<td width=629><span id="stepDriver"></span>
='''Layers in Driver Mode'''=
</td>
<td width=50>&#160;</td> <!-- skip Down -->
<td width=50>[[image:SkipUp.png|link=#skipBoundS20|Skip Up]]</td> <!-- skip Up -->
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>[[image:NextUp.png|link=#stepBound|alt=Next Up|Top]]</td>
<td width=75>[[image:NextDown.png|link=#bottom|alt=Next Down|Next Down]]</td>
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
</tr>
</table> <!-- END Nav Buttons Table -->
 
During the running of a Session in '''Driver Mode''' visible layers can be hidden and invisible layers revealled according to the events that occur during the Session.
 
<table width=1000>
<tr valign="top">
<td width=320>[[image:LayersDriveShow.JPG|link=]]</td>
<td width=320>[[image:LayersDriveHide.JPG|link=]]</td>
<td>The two '''Driver Mode''' scenes shown on the left illustrate this feature.
<table>
<tr valign="top">
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
<td>In the first image on the left, all layers are visible</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td>In the second image on the left, two of the layers (containing the passengers and the trolley loads) have been hidden</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint.JPG|10px|link=]]</td>
<td colspan=2>The trigger for this change was the arrival of a train at the platform.</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table>
<tr valign="top">
<td colspan=2>This effect could be achieved in two different ways:-</td>
</tr>
<tr valign="top">
<td width=25>[[image:Ablue.png|link=]]</td>
<td>'''A Driver Command''' - specific to a particular driver, or</td>
</tr>
<tr valign="top">
<td>[[image:Bblue.png|link=]]</td>
<td>'''A Session Rule''' - specific to a particular driver, consist, or any driver/consist</td>
</tr>
</table>
<br>
=='''Using a Driver Command'''==
The driver command [[image:WikiLink.PNG|link=]] '''[[Driver_Commands_List#Layer_Control|Layer Control]]''' hides and shows named layers.<br>
<table width=1000>
<tr valign="top">
<td>[[image:LayerControlExample.png|link=]]</td>
<td>
<table bgcolor=#000000 cellpadding=2>
<tr valign="top">
<td>
<table bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<td colspan=2>The sequence of events in this example will be:-</td>
</tr>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>The train will drive to the named station</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>It will wait for 30 seconds</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint3.JPG|link=]]</td>
<td>The assets held in  or bound to the named layer will be hidden from view (or shown)</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
=='''Using Session Rules'''==
<br>
<table cellpadding=2 bgcolor=#ffffff>
<tr valign="top">
<td width="58">[[image:RulesWiki.PNG|link=]]</td>
<td width="640"><span style="font-size: 17px;">'''Rules Used:'''</span><br>
----</td>
</tr>
</table>
*'''[[Session_Rule_List_with_Parameters#Show/Trackside_Check_Rule|Trackside Check Rule]]''' - to trigger the event
*'''[[Session_Rule_List_with_Parameters#Show/Hide_Layer_Rule|Show/Hide Layer Rule]]''' - to hide layers
*'''[[Session_Rule_List_with_Parameters#Message_Popup_Rule|Message Popup Rule]]''' - to open a browser window with a message
<br>
<table cellpadding=2 bgcolor=#ffffff>
<tr valign="top">
<td width="58">[[image:screenshot.PNG|link=]]</td>
<td width="640"><span style="font-size: 17px;">'''Session Editor Screenshot:'''</span><br>
----</td>
</tr>
</table>
<table>
<tr>
<td>[[image:LayersDriveHideRules.JPG|link=]]</td>
</tr>
</table>
<br>
<table cellpadding=2 bgcolor=#ffffff>
<tr valign="top">
<td width="58">[[image:explanation.PNG|link=]]</td>
<td width="640"><span style="font-size: 17px;">'''Description:'''</span><br>
----</td>
----</td>
</tr>
</tr>
</table>
</table>
In this example:-
 
*The '''Trackside Check Rule''' is triggered when a specific train comes to a stop at a trackmark. This then executes the following rules in order:-
<table>
**The '''Show/Hide Layer Rule''' is used to hide the layer named "People". Four passengers (three standing and one seated) are hidden.
<tr valign="top">
**The '''Show/Hide Layer Rule''' is used to hide the layer named "CNJCartsFull". The boxes and mail bags on the three platform trolleys are hidden.
<td colspan=2>In this example:-</td>
**The '''Message Popup Rule''' is used to place a message on the screen informing the player that the passengers and mail have been loaded.
</tr>
<tr valign="top">
<td>The '''Trackside Check Rule''' is triggered when a specific train comes to a stop at a trackmark. This then executes the following rules in order:-
<table>
<tr valign="top">
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
<td>The '''Show/Hide Layer Rule''' is used to hide the layer named "People". Four passengers (three standing and one seated) are hidden</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint2.JPG|link=]]</td>
<td>The '''Show/Hide Layer Rule''' is used to hide the layer named "CNJCartsFull". The boxes and mail bags on the three platform trolleys are hidden</td>
</tr>
<tr valign="top">
<td>[[image:DotPoint3.JPG|link=]]</td>
<td>The '''Message Popup Rule''' is used to place a message on the screen informing the player that the passengers and mail have been loaded</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<br>
<table> <!-- BEGIN Nav Buttons Table -->
<table> <!-- BEGIN Nav Buttons Table -->
<tr valign="top">
<tr valign="top">
<td width=729><span id="bottom"></span>&nbsp;</td>
<td width=729><span id="bottom"></span>&#160;</td>
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
<td width=75>[[file:NextUp.png|link=#stepBound|alt=Next Up|Top]]</td>
<td width=75>[[image:NextUp.png|link=#stepDriver|alt=Next Up|Top]]</td>
<td width=75>&nbsp;</td>
<td width=75>&#160;</td>
<td width=75>&nbsp;</td>
<td width=75>&#160;</td>
</tr>
</tr>
</table> <!-- END Nav Buttons Table -->
</table> <!-- END Nav Buttons Table -->
Line 1,573: Line 2,849:


='''Trainz Wiki'''=
='''Trainz Wiki'''=
<table cellpadding=4 bgcolor=#ffffff>
<table cellpadding=2 bgcolor=#ffffff>
<tr valign="top">
<tr valign="top">
<td>[[file:TrainzWiki.png|link=]]</td>
<td>[[image:TrainzWiki.png|link=]]</td>
<td>
<td>
<span style="font-size: 17px;">'''More Tutorials and Guides to Using Trainz'''</span><br>
<span style="font-size: 17px;">'''More Tutorials and Guides to Using Trainz'''</span><br>
*'''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/HowTo How to Guides]</span>'''
*'''<span class="plain;">[http://online.ts2009.com/mediaWiki/index.php/HowTo How to Guides]</span>'''
*'''[[Driver Commands List]]'''
*'''[[Driver Commands List]]'''
*'''[[Session Rule List with Parameters|Session Rules List (Alphabetical) with Parameters]]'''
*'''[[Session Rule List with Parameters|Session Rules List (Alphabetical) with Parameters]]'''
Line 1,586: Line 2,862:
</table>
</table>
----
----
This page was created by Trainz user '''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/User:Pware pware]</span>''' in June 2018 and was last updated as shown below.
This page was created by Trainz user '''<span class="plain;">[http://online.ts2009.com/mediaWiki/index.php/User:Pware pware]</span>''' in June 2018 and was last updated as shown below.
----
----
[[Category:How-to guides]]
[[Category:How-to guides]]

Latest revision as of 00:22, 1 September 2026

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The information in this Wiki Page explains how to create and manage layers in T:ANE, TRS19, TRS22 and Trainz Plus using Surveyor Classic (all Trainz versions) and Surveyor 2.0 (TRS22PE and Trainz Plus).


      Next Down Bottom

Some Helpful Tips

 Route Layers 
Use Route layers for all those objects that will appear in every Session based on the Route
When you edit Route layers, always save the Route


 Session Layers 
Use Session layers for all those objects that will ONLY appear in the current Session
When you edit Session layers, always save the Session and avoid using "Default" as the Session name


 When Editing 
Lock the layers that you are not currently editing
Always be aware of which layer is the Active Layer


 When Creating 
Place all track and track objects (Track Marks and Triggers can be exceptions) into the route-layer and always keep it as the top level layer
For TRS19PE and later, it is strongly recommended that you place all rolling stock into a session layer to be saved with the session and not the route

What Are Layers?

    Top   Next Down Bottom
Layers are a Surveyor tool that allow you to better manage the objects that are placed in your Trainz World.
Layers are a Driver tool that allow you to change what the players see as they drive around your Trainz World.


Layers can contain any objects, visible and invisible, that can be placed into a layout in Surveyor Classic using the Object, Track and Train tools or using the Placement Tool in Surveyor 2.0. The layers and their contents can be hidden from view (in both Surveyor and in Driver) or locked against alteration whenever required. Their main use is in the development of a Route and a Session but they can also be used as a way of providing some additional novelty during a Driver session.


Effect Layers Notes:

The special ground effects layers, Clutter, TurfFX and more recently Water and Color, are not discussed here. In many ways they are more like Ground Textures but some aspects of their use is similar to the layers covered here. These special ground effects layers are saved as part of a Route but are not associated with any Route Layer.

The special ground Effect Layers as used in Surveyor 2.0 are covered in the Trainz Wiki Page  How to Use S20 Tools

Almost all of what you will see in a Trainz World will be found in layers, and mostly in the Route Layers and Session Layers.

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Route Layers will contain the objects that will appear in ALL the sessions created using the current route
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Session Layers will contain the objects that will only appear in the current session
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Effect Layers (TRS19, Trainz Plus and TRS22) will contain the TurfFX, Clutter, Water and (in Trainz Plus routes using HD) Color effects created using the current route


The Layers Tool in Surveyor Classic (S10)

Skip Down   Top Next Up Next Down Bottom
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127












Left Click the Layers Tool (or press  F6 ) to open up its properties.
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127


Notes:

The layers are organised into two groups:-

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Route Layers in the top group, and
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Session Layers in the lower group
Each group can contain multiple layers - the scroll bars next to the layer names shown on the left indicate that there are more layers in each group than can fit into the display window area.


Layers can be:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Created   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Deleted   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Hidden   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Locked
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Merged   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Moved   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Renamed  

Objects can be:-

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 assigned to a layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 bound to a second layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 moved between layers
The following sections show how these tasks can be done using Surveyor Classic


Loading a Route and Loading a Session (S10)

Skip Down Skip Up        
Route Layers are saved with the Route. Session Layers are saved with the Session
If you edit a Session Layer and later load just the Route then those edits will not appear.


More information on creating, loading and saving Routes and Sessions can be found on the Trainz Wiki Page
Route and Session Basics


The layers you see will depend on whether you have loaded a Route by itself (with no "child" Session) or a Session and its "parent" Route.

The first image on the left gives an example of the layers that can appear if a Route only is loaded into Surveyor. These are the layers that are saved with the Route. Note that a default "session-layer" is present.
Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 An empty default session-layer is always created in the Session Layers Group when only the Route is loaded into Surveyor
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 If you load just the Route and edit its session-layer then those edits will not appear the next time you load just the Route because a new empty session-layer is created each time a Route is loaded without a Session

The second image on the left gives an example of the layers that can appear if a Session based on that Route is loaded into Surveyor. It shows Route Layers and Session Layers.

In both cases, the Route Layers are identical because the same Route has been loaded. A Session contains its own layers, the Session Layers, that are loaded and saved with the Session but are not loaded or saved with the Route.

If you load a Session and do not want to edit any of the Route layers then Left Click the Lock Route Layers icon on the Layers Tool
Left Click the Lock Button



If you load a ROUTE but not the SESSION then only edit the Route Layers
If you edit a SESSION or its layers then always save the Session
When you save a new SESSION always give it a name, do NOT leave it as "Default"

Creating a New Route (S10)

Skip Down Skip Up        
Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 When a brand new route is created it will come with two layers, a single route-layer and a single session-layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Both layers will be empty (the baseboard with its grid is saved with the route but is not in any layer)
A layer can be renamed at anytime by a Double Left Click on its name and entering a new name

The "Active Layer" (S10)

Skip Down Skip Up        
The Active Layer is the selected (highlighted) layer
When you load the Route only into Surveyor, the first Route layer will be the Active Layer
When you load a Session into Surveyor, the first Session layer will be the Active Layer


In the image above, the route-layer is the Active Layer. You can change the Active Layer at any time by a Left Click on the name of another layer.
Notes:

The Active Layer is the "working layer" which is:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 where new objects will be added to the layout
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 the layer that is automatically selected for merging and deleting
 
Trainz does not identify which is the Active Layer in Surveyor and this often leads to problems such as objects being added to the wrong layer.

See Adding Objects To Layers below for more information.


Adding Another Layer (S10)

Skip Down Skip Up        
Left Click the Add Button

An Add layer dialogue window will appear.

Steps: To Name and Place the New Layer:-
Enter a name for the new layer
Select the layer group, Route or Session, where it will be placed
Left Click on the icon to accept the change
Left Click on the icon to reject the change


You can easily rename the layer or move it to the other layer group if you change your mind.

Deleting a Layer (S10)

Skip Down Skip Up        
WARNING:

Deleting Layers cannot be undone


Select the layer to be deleted and Left Click on the Delete Button. If you don't select a layer to delete then Trainz will select the current Active Layer.


Deleting a layer will delete ALL the objects placed in that layer except objects that are "Bound" to that layer. See The Bound Layer section below.
In TRS19 and later Trainz versions there will be a delay when deleting a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes.

 Resist any urge to Left Click on the  Cancel  button 

This delay will occur every time a layer is deleted.
In TANE: Due to a "bug" deleting a layer that contains a ruler will not delete the ruler. It will be hidden from view but it may reappear if another layer with the same name as the deleted layer is created or it will, eventually, reappear in the route-layer.

If the layer being deleted is empty, then the following dialogue window will appear:-

Options: Choose one of the following:-
Left Click  Yes  to delete the layer, OR
Left Click  No  to cancel the delete operation

If the layer being deleted is NOT empty, then the following dialogue window will appear:-

Options: Choose one of the following:-
Left Click  Merge  to merge this layer and its contents into another layer (see Merging Layers below for more information), OR
Left Click  Delete  to delete the layer and its contents, OR
Left Click  Cancel  to cancel the operation

Merging Layers (S10)

Skip Down Skip Up        
Merging a layer into another layer will move ALL the objects from the first layer into the second layer. The first layer, which is now empty, will then be deleted
Once layers have been merged they cannot be separated.


WARNING:

Merging Layers cannot be undone


Select the layer to be merged into another layer and Left Click the  Merge  button. If you don't select a layer to merge then Trainz will select the current Active Layer.


In TRS19 and later Trainz versions there will be a delay when merging a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes.

 Resist any urge to Left Click on the  Cancel  button 
This delay will occur every time a layer is merged.


The layer merge dialogue window will appear as shown below:-

Steps: To Merge Two Layers:-
Select the destination layer for the merge
Left Click on the icon to accept the change
Left Click on the icon to reject the change
The Merge into: list shows all the available layers with no distinction between Route Layers and Session Layers

Locking Layers (S10)

Skip Down Skip Up        
If you LOCK or UNLOCK a Route Layer while editing a Session then you will have made a change to the Route and will be asked to save both the Route and the Session when you exit Surveyor


It is good practice to LOCK ALL LAYERS that you are not currently editing. This will avoid the all too common problem of accidentally adding objects to the wrong layer.


Locking Individual Layers (S10)

The objects in a LOCKED layer cannot be moved (around the layout) or deleted but they can be moved to other layers.


To LOCK an individual layer, Left Click on the Open Padlock icon next to its name. The layer being locked does not have to be the current Active Layer.

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The first image on the left shows two Route Layers, both UNLOCKED with their Padlock icons Open. One layer, "Trees", is highlighted showing that it is the currently active layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The second image on the left shows the same two layers after the "Trees" layer has been LOCKED
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 A locked layer can be UNLOCKED by a Left Click on its Closed Padlock icon.


If you attempt to add a scenery object to a locked layer you will receive the following message:-

Left Click on the icon to accept the change and add the object
Left Click on the icon to reject the change

Locking ALL Route Layers (S10)

Left Click on the Lock Button

This will LOCK ALL the layers in the Route Layers Group. The Session Layers Group will not be affected.

The Route Layers Group can be UNLOCKED by a Left Click on the Lock Button again.

Moving a Layer (S10)

Skip Down Skip Up        
Layers can be moved up or down within the same layer group (e.g. Route or Session) or between the two groups
Track Objects (signals, switches, etc) should be in the same layer as the Track or in a layer below the Track layer


In TRS19 and later Trainz versions there will be a delay when moving a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes
 Resist any urge to Left Click on the  Cancel  button 
This delay will occur every time a layer is moved.


In the example shown below a layer created in the Route Layers Group is being moved into the Session Layers Group.

Steps: To Move a Layer:-
Left Click on the layer to be moved
Left Click and Drag the layer up or down to its new position


Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The move can be between layer groups as shown left
WARNING:
Moving layers between the Session and Route groups will change where those layers are saved - in the Route or in the Session
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The move can be to a higher or lower position in the same group. The only situation where layer order within a group makes any difference is when track objects (e.g. signals, switches, track signs, etc) are not in the same layer as the track
track objects must be in the same layer as the track or in a layer below the layer that contains the track. For more information, see the section The "route-layer" below
If you attempt to move a layer containing track objects, such as signals, to a position above the layer containing the track, you will get an error message


Hiding Layers (S10)

Skip Down Skip Up        

To hide or show a layer Left Click the Eye Icon next to its name.

In the image shown left the two trees are in different Route Layers and all the layers have their Eye icons open (set to Show)
In the image shown left the Trees layer has its Eye icon closed (set to Hide)

Notes:
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 If you attempt to add an object to a hidden layer you will receive a warning message
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Layers that are hidden when saved in Surveyor will also be hidden when loaded in Driver

Adding Objects To Layers (S10)

Skip Down Skip Up        
When an object (such as a scenery item, consist, track or track object) is added to the layout it is automatically placed in the currently Active Layer. Unfortunately, Surveyor Classic (S10) does not indicate which layer is the Active Layer unless you open the Layers Tool to look. This can lead to objects being placed into the wrong layers and while these objects can later be moved to another layer (see the section Moving Objects To Other Layers below) it would be better to correctly set the Active Layer first.


It is good practice to LOCK ALL LAYERS that you are not currently editing. This will avoid the all too common problem of accidentally adding objects to the wrong layer.


You cannot add objects to a layer that is LOCKED

If you attempt to add a scenery object to a locked layer you will receive the following message:-

Left Click on the icon to accept the change and add the object
Left Click on the icon to reject the change


When adding track objects (signals, speed signs, etc) to a track, the objects being added must be in the same layer as the track or in a layer below the track layer. For more information, see the section The "route-layer" below


Notes:

There are many features of Trainz Routes and Sessions that are NOT stored in layers. In some cases while the objects themselves may be placed in layers, their settings or properties are not. These include:-

  • landforms
  • textures
  • legacy water, TurfFX and Clutter prior to Trainz Plus
  • trackside camera settings
  • weather conditions
  • time of day
  • session rules and driver commands
  • signal and junctions settings
  • rolling stock loads
  • industry settings
  • portal settings
  • passenger station settings
  • navigation points
  • interlocking tower settings
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Landforms, textures, effect layers and legacy water are saved as part of the Route
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Environment Settings are saved in both the Route and the Session - see the Trainz Wiki Page  Environment Tools for more details
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 When you enter or edit the name of a route layer scenery object, such as a station name board, that change will be treated as a change to both the Route and the Session. The new or edited name will still be saved as a property of the scenery object in the Route layer but you will be given the option of saving the Session as well as the Route. You can ignore the offer to save the Session if you have not edited any objects in a Session Layer, the Session Layers themselves (e.g. moved, merged, deleted or renamed) or other Session properties (e.g. commodity levels or loads).  If uncertain, always save the Session as well as the Route 
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 A bug has been reported in the Interlocking Towers (and the Enhanced Interlocking Towers) where the path and settings are initially saved in the Route but any later edits and changes are then saved in the Session. The workaround for this is to always load the Session when working with IT and EIT assets.


Deleting Objects From Layers (S10)

Skip Down Skip Up        
You cannot delete objects from a layer that is LOCKED


Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 It is good practice to LOCK ALL LAYERS that you are not currently editing. This will avoid the all too common problem of accidentally deleting objects from the wrong layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 In TANE and TRS19 rulers are an exception to this "good practice". Unless you have used a dedicated ruler layer for all rulers it can be difficult to discover which layer contains a particular ruler. If rulers are not added to a dedicated layer then you will need to unlock and unhide all the layers first before you can use the Delete Ruler tool. In Trainz Plus and TRS22 rulers are treated like any other spline object and this is not an issue.


Unfortunately Trainz does not give you a warning message when you attempt to delete an object from a locked layer, the object just refuses to be deleted.

If you cannot delete an object then check:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 that the objects layer and bound layer (if it has been set) are unlocked
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 that you are using the correct delete tool (e.g. such as attempting to delete a tree with the spline, signal or rolling stock delete tool) - it happens!


Moving Objects To Other Layers (S10)

Skip Down Skip Up        

Steps To Move an Object to Another Layer:-:
Left Click the Properties window (? button in the Object Tools) of the object to be moved
Left Click on the Layer or one of the scroll buttons
Select the new layer
Left Click on the icon to accept the change
Left Click on the icon to reject the change


Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 You can move an object into and out of a locked layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 In TANE and TRS19 rulers cannot be moved to a different layer because they do not have a properties window. If it is necessary to move a ruler to another layer, it must be manually created in the new layer (using the Add Ruler tool), then the pre-existing ruler must be deleted (using the Delete Ruler tool)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Multiple scenery objects can be simultaneously moved to another layer by using the Bulk Asset Update/Replacement tool from the Surveyor Tools Menu. The exception to this is spline objects (including track splines) which must be moved segment by segment ☹


The Layers Palette in Surveyor 2.0 (S20)

  Skip Up Top Next Up Next Down Bottom
Surveyor 2.0 is only available in Trainz Plus and TRS22 Platinum


Layers are found in the Layers Palette.
Layers Palette in S20 The Layers Palette will show all the layers in their groups (Effect, Route and Session) plus the Ground Height and Ground Textures which are "special layers". In the image on the left all the layer groups have been minimised (the "arrow" symbol in front of each group name is pointing to the right).
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The Route Layers Group, along with the Ground Height, Ground Textures and Effect Layers, are saved and loaded with the Route
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The Session Layers Group are saved and loaded with the Session


Layers can be:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Created   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Deleted   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Hidden   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Locked
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Merged   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Moved   Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Renamed  

Objects can be:-

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 assigned to a layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 bound to a second layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 moved between layers
The following sections show how these tasks can be done using Surveyor 2.0
Notes:

If the Layers Palette is not shown on the screen, then:-

Windows Menu
Steps: To Display Palettes:-
open (Left Click) the Window Menu from the menu icons at the top of the screen
 
visible palettes have ticks next to their names
invisible (hidden) palettes have no ticks next to their names
if the Layers Palette, or any required palette, does not have a tick next to its name then Left Click on the name of the palette or on the empty box next to its name. This will add a and make the palette visible


Lock the Route Layer Group (S20)

All the layers in the Route Layer Group can be locked against accidental alteration.

The Route Layer Group has a padlock icon next to its name - shown as (unlocked)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Left Click on the unlocked icon to lock ALL the layers in the Route Layer Group
The icon will change to (locked)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Left Click on the locked icon to unlock all its layers


Open a Layer Group (S20)

To the left of each Layer Group name is a small arrow. Left Click on the arrow to open up the group.

Layers palette with session layers open The image on the left shows that the Session Layers Group is open and its individual layers are now displayed. To close or minimise the group Left Click on the arrow again.
The image shows that the Session Layers Group contains 3 individual layers:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 the top layer is always named session-layer and is always present even in a new route where you have not yet added anything
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 likewise, the top layer in the Route Layers Group is always named route-layer and is also always present
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 there are two user created layers named Track Markers and Rail Workers (layer names are chosen by the creator and do not necessarily indicate their contents or purpose)


Add a New Layer (S20)

You cannot create new layer groups but you can add new layers to a existing group.
Each Layer Group has a icon next to its name. Left Click on the icon to add and name a new layer to that group. If you are adding a new Effect Layer then you will also have to identify the type of effect - TurfFX, Clutter, Water or Color (the Color effect layer is only visible in HD routes created using Trainz Plus).


Renaming a Layer (S20)

Right Click on a layer name and select  Rename Layer..  from the popup menu.

You will be asked to enter a new name for the layer.


Deleting a Layer (S20)

Right Click on a layer name and select  Delete Layer  from the popup menu.

You will be given a warning that you are about to delete a layer.

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 if you confirm the delete order then the layer and all its contents will be deleted
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the deleting operation
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 the deleted layer and its contents can be restored (after the delete has completed) using the  Ctrl   Z  keys


Moving a Layer (S20)

Layers can be individually moved up and down within the same layer group or between the Route Layers Group and the Session Layers Group.

Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Moving a layer between the Session Layer Group and the Route Layer Group will move the layer and its contents between the Route and the Session and this will affect where the layer and its contents are saved - in the Route or in the Session
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 There is no advantage in moving a layer within the same layer group except when preparing for a layer merge operation (see Merging a Layer below)
Layers containing Track objects, such as signals, junctions and track signs, cannot be moved to a position that is above the layer containing the track that they are attached to. If the route-layer is used for all the track and track objects and this layer is left as the top layer in the route layer group then this will never be a problem.
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 layers in the Effect Layers Group cannot be moved
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 layers from the other groups cannot be moved into the Effect Layers Group


Steps: To Move a Layer:-
Left Click on a layer name
 Left Click and Drag  the layer up or down to its new position.
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the move operation
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 the move can be reversed (after it has completed) by using the  Ctrl   Z  keys


Merging a Layer (S20)

In S20 layers can only be merged with the layer directly above. To merge layers separated by other layers you will need to move one of the layers before the merge.


Right Click on a layer name and select  Merge Layer Up  from the popup menu.
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 the selected layer will be merged with the layer immediately above it
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 you may need to move the layer being merged into the correct position before the merge (see Moving a Layer above)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 depending on the contents of the layer, the process may take some time. You will be shown a progress bar during the merge operation
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 the merged layers and their contents can be restored (after the merge has completed) back into two separate layers by using the  Ctrl   Z  keys
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 layers in the Effect Layers Group cannot be merged. In place of  Merge Layer Up  the Effect Layers will have an  Edit Layer  command


Hiding Layers (S20)

Each individual layer has an Eye icon that controls the visible state of that layer. Left Click on the icon to toggle its state between visible and hidden. If the Eye is:-

open then layer is visible in both Surveyor and Driver
closed then layer is hidden in both Surveyor and Driver


Locking Layers (S20)

Each individual layer has a Padlock icon that controls the state ( Locked or Unlocked) of that layer. Left Click on the icon to toggle its state between Locked and Unlocked.
If the Padlock is:-

open then the layer is Unlocked and can be edited
closed then the layer is Locked and cannot be edited
Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Locking a layer will protect its contents from being individually selected, deleted and physically moved
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 New assets cannot be added to a locked layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Locked layers can still be deleted, renamed, moved and merged


Setting the Active Layer (S20)

Active layer selected the Active Layer is the layer where new objects will be automatically added when using the Placement Tool and pasting or painting a Scrapbook. The active layer is shown in the palette with its name on a light grey background. In the image on the left the Rail Workers layer is the current Active Layer.

The name of the current Active Layer is also shown in the Layer Palette Title Bar.

To set a new Active Layer, Left Click on the layer name.


Move an Object to Another Layer (S20)

The Info Palette will show the layer assigned to the currently selected object. An object is selected by using the Free Move Tool Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 (the  S  key) or the Fine Adjustment Tool Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 (the  D  key) found in the Tools Palette.


To the left of the layer name is a small arrow object.

Info palette

Layer control

Tools and keymap for S20


Steps: To Move an Object to Another Layer:-
Using either the Free Move Tool Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 (the  S  key) or the Fine Adjustment Tool Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 (the  D  key) Left Click on the object to be moved. Its details, including the name of its current layer, will appear in the  Info Palette . The layer must NOT be locked.
Moving Multiple Objects
You can select and move multiple objects to another layer in Surveyor 2.0 but all the selected objects must be in the SAME layer and that layer must NOT be locked
Left Click the small arrow next to the layer name. This will open the layer properties for the selected object
Left Click the Layer drop down box and Left Click on the name of the new layer for the object
Optional Steps:
if required, Left Click the Binding drop down box to select a new binding layer for the object
if required, Left Click the  Select Layer  button to set this layer as the Active Layer. If the layer is already the Active Layer then this button will be greyed out and cannot be selected
if required, Left Click the  Lock Layer  button to lock the selected layer. If the layer is already locked then this will be shown as an  Unlock Layer  button and can be clicked to unlock the layer


Route Layers vs Session Layers

Skip Down   Top Next Up Next Down Bottom

This topic has filled endless threads in the Trainz Forums with arguments raging on both sides.

In general, there are no "cast iron" rules that dictate what should be placed in the Route Layers Group and what should be placed in the Session Layers Group (for an exception see TRS19 Platinum Edition, Trainz Plus, TRS22 Notes below)
Each Route and Session will be different and different creators have different ways of working. The main question to be asked is how many different Sessions will be created using a particular Route?
Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 For a Route with only a single Session - everything can safely go into the Route Layers Group
Many creators only ever build a single Session for each of their Routes and do not use Session Layers at all (but they still have to save the session separately from the route)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 For a Route with multiple (2 or more) Sessions - certain things will probably need to go into the Session Layers Group for each Session.
Many creators build multiple Sessions for each Route and rely on the Session Layers to create the differences between their Sessions
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Many scenery assets actually have their properties stored in the Session, even when the assets themselves are in a Route layer. Editing the properties of these assets is considered to be a change to the Session. Unless you have a particular reason for saving the edited data (such as a change to commodities) you can usually ignore the offer to save the Session. These assets include:-
junction switches - the left/right switch direction is stored in the Session (but the default switch direction is stored in the Route). See Tips: below
industries - the commodities and quantities loaded/unloaded are stored in the Session
industry enabled wagons - the commodities and quantities carried are stored in the Session
consist locations (TRS19 Platinum Edition, Trainz Plus and TRS22) - this is stored in the Session. Unless you need to save their new locations, you can safely ignore the offer to save the Session
named route objects (TRS19 Platinum Edition, Trainz Plus and TRS22) - while the name is stored in the Route, adding or changing the name is treated as a change to the Session. If the name is all that you have changed then you can safely ignore the offer to save the Session


TRS19 Platinum Edition, Trainz Plus, TRS22 Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The recommended practice in these versions of Trainz is to place all consists in a session layer and NOT in a route layer. Because these versions have the Unified Driver Surveyor Interface, placing a train in a route layer after switching from Driver to Surveyor can cause problems. For example:-
If active Driver consists (i.e. those under manual or AI control) are in a route layer and you switch from Driver to Surveyor to edit the route and save the route edit, then those consists will be saved in their new positions, not their starting positions for the session
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Recent experiments using the Unified Driver Surveyor Interface have indicated that when portals produce trains they will be placed into the same layer as the portal - so if a train that is in a Session layer enters a portal that is in a Route layer and is later returned to the layout, it will be returned in the same Route layer as the portal. This has possibly always been the case with portals but has not been noticed until the arrival of the Unified Driver Surveyor Interface
For more details see the Trainz Wiki Page How to Use the UDS Interface


Setting Different Switch Directions in Routes and Sessions
A switch, when added to a route, can be set to a default direction and all sessions created using that route can use that default switch direction. However, you can set the switch to a different direction in one or more sessions without changing its default direction in the route.
Steps: To Save the Default Switch Direction in the Route:-
Set the switch to the desired direction for the route. If the switch is already in that direction then change something in the route (e.g. move a tree a few centimetres) to make sure that the route has been edited
Save ( Ctrl  +  S  or select  Save  from the System Menu)
In the Save Dialogue Window, make sure that the options
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Overwrite existing route and
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Do not save session
...are selected and then save


Steps: To Save a Different Switch Direction in a Session:-
Set the switch to the desired direction for the Session
Save ( Ctrl  +  S  or select  Save  from the System Menu)
The Save Dialogue Window SHOULD only contain the options
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Overwrite existing session
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Create new session
Select one of the options and then save



The Route Layers Group

Skip Down Skip Up        
The Route Layer Group should be used for everything that will always appear in Driver Mode regardless of which Session is playing.


There is nothing stopping you from placing everything in the "route-layer" of the Route Layers Group and never having to worry about dealing with layers ever again - some creators prefer to work this way. However, layers do provide you with a way of organising your scenery objects to make them more manageable, particularly in more complicated layouts.


Some examples:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 A Special Objects layer or layers that can be used to hold certain scenery objects. For example all the trees or a particular building. This can be very useful when you need to hide those objects to locate or place other objects. Trackside cameras in particular can be very difficult to find when placed in a forest
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 A Platform Objects layer can be used to hold all platform items such as seats, luggage, luggage trolleys, people, lamp posts, etc. Because these items are placed on top of a platform object they can be very difficult to move or delete without first moving the platform. The layer containing the platform can be locked allowing these objects to be easily moved or deleted
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Hiding and Showing Objects in Driver Mode. There is a Session Rule and a Driver Command that can hide and show layers during the running of a Session. For example: a rail worker can be placed in a separate layer and positioned next to a track lever while shunting operations are underway but can be removed from the scene by hiding that layer when shunting has been completed
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 A Test Layer for experimenting. Not sure if a particular object is right for your layout? Place it in a temporary layer which you can hide and show to see any differences it makes. This is particularly useful if you are deciding between different types of grasses, for example, placed throughout the layout. If the objects prove to be unsuitable then they can all be deleted by deleting the layer. If they are suitable then the layer can be merged with another or left as a new layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 In TANE and TRS19 it is a good idea to add a Ruler Layer if you are using rulers. In TANE and TRS19 rulers obey layer behaviour (lock and hide), just like all other objects and splines, but have no properties window to show their layer or allow you to change their layer. Consider placing all TANE and TRS19 rulers in a dedicated layer to make their management easier.  NOTE:  Due to a bug in TANE/TRS19, deleting a dedicated Ruler Layer will not delete the rulers but will temporarily hide them from view. Rulers will still have to be deleted individually.
In Trainz PLus and TRS22 these issues have been overcome and rulers are Spline Objects and have all the properties of splines.


Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 It is a good idea to place ALL the consists in the same layer particularly if they are going to be coupled together during the running of a Session
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 A very useful development tool is the Bound Layer. See The Bound Layer section below


The "route-layer"

To avoid any confusion over which layer is the original "route-layer", this is one layer that should not be renamed or moved from the top position


While all layers are equal, the "route-layer" is special.

Track objects, such as signals, junctions and track signs, cannot be placed in any layer that is above the layer containing the track that they are attached to. If the route-layer is used for all the track and track objects and this layer is left as the top layer then this will never be a problem.


It is recommended that the following objects should be placed in the route-layer:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Track and interactive industries with track
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Track infrastructure (turntables, bridges, tunnels, etc)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Signals and track signs (speed limits, warnings, distance, etc)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Junctions and switches
..and that the "route-layer" is at the top of the Route Layers Group

The Session Layers Group

Skip Down Skip Up        
The Session Layers Group should be used for everything that will only be seen in the currently loaded Session.


If you are creating more than one Session based around a particular Route, then you will probably make use of the Session Layers.

Notes:

Session Layers can contain:-

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Scenery objects that will only appear in one or some of the Sessions.
For example: If you have placed human figures and equipment for a track work crew alongside the track and want them to be seen in a daylight Session but not in a night Session, then place them in one of the Session Layers of the daylight Session only. Likewise, station staff holding lamps would be placed in one of the Session Layers of the night Session only
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Consists used in a Session


Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 It is a good idea to place ALL the consists in the same Session Layer and this is strongly recommended for Trainz Plus and TRS22 which have the UDS interface. It is also important if different consists are going to be coupled together during the running of a Session
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 When you first save a Session, give it a distinctive and informative name. Avoid the temptation to use Default as the name of your Session as you can easily end up with several Sessions all called Default


The "session-layer"

An empty session-layer will be automatically created when you:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 load a route without also loading a session, or
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 create a new route
WARNING:

If you edit or add anything to the session-layer or add new layers to the Session Layers Group and do not save the session then those changes will be lost when you exit


The Bound Layer

Skip Down Skip Up Top Next Up Next Down Bottom
In Trainz Plus and TRS22 the Bound Layer is often referred to as the Binding Layer


This is a little used and probably little understood layer feature. It allows you to attach an object to two different layers so it can have the properties (locked/unlocked and show/hide) of both layers. The bound/binding layer was introduced as a development tool, its sole use is as a tool in the building of routes and sessions.


An object will be LOCKED and cannot be deleted or moved if its layer OR its bound/binding layer is locked.
An object will be HIDDEN if its layer OR its bound/binding layer is hidden.
In TRS19 and TANE Rulers cannot be bound to another layer.


Assigned
Layer
Bound/Binding
Layer
Object
Status
Unlocked or None Unlocked
LOCKED or or None LOCKED
Unlocked LOCKED LOCKED
Visible or None Visible
HIDDEN or or None HIDDEN
Visible HIDDEN HIDDEN
In Summary:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 If the Assigned Layer or the Bound/Binding Layer of an object is Locked then the object will be Locked
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 If the Assigned Layer or the Bound/Binding Layer of an object is Hidden then the object will be Hidden


In Surveyor 2.0 you can also use the asset filters found in the  Filter Palette  and the  Assets Palette  to lock or hide specific assets or types of assets from selection when you are working in Surveyor. See the Trainz Wiki Page  S20 Tools - Narrowing the Search for more details


Some applications:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Temporarily locking an object by binding it to a locked layer while allowing other objects in the same unlocked layer to be moved or deleted. A simple but very effective development technique is to create a Route layer called "Locked" and then lock it. If you need to temporarily stop an object from being deleted or moved then it can be bound to the "Locked" layer
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Temporarily hiding an object by binding it to a hidden layer (this will require the hidden layer to be made visible so the object can be unbound)


If you are going to be working with multiple objects that will be bound to a locked or hidden layer then a simple strategy is to:-
Steps: To Use a Bound Layer:-
Create a new empty layer called "Locked" or "Hidden" and lock or hide that layer, according to your needs
Bind the individual objects to that layer as required
When editing, testing or whatever you are doing has been completed simply delete the new layer. All objects that have been bound to that layer will have their Bound Layer property reset to none so the hidden objects will reappear and the locked objects will be unlocked


If you need to remove an object from a route but cannot alter the route (e.g. it is payware or under another users kuid) then create a new hidden session layer and change the bound layer of the object to the hidden layer. This will be treated as a change to the session only and Trainz will not ask you to save the route as well as the session.


Setting an Object to the Bound Layer in Surveyor Classic (S10)

Skip Down Skip Up        
Steps: To Set a Bound Layer:-
Left Click the Bounding Layer box or one of its scroll buttons
Select the layer to be used as the Bound Layer for the object (an object cannot be bound to its own layer)
The effects of the binding can be reversed by setting the Bound Layer back to <none>


When a layer is deleted any objects bound to that layer will have their Bound Layer reset to <none>


Setting an Object to the Bound Layer in Surveyor 2.0 (S20)

Skip Down Skip Up        
Surveyor 2.0 is only available in Trainz Plus and TRS22 Platinum


Set Binding


Steps: To Set the Bound Layer in Surveyor 2.0:-
Select an object, or a group of objects, using either the Free Move Tool Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 or the Fine Adjustment Tool Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127. In the Info Palette of the object (or the last selected object):-
Open the Layer properties of the object
Left Click the Bounding box or one of its scroll buttons
Select the layer to be used as the Bound Layer for the object (an object cannot be bound to its own layer)
The effects of the binding can be reversed by setting the Bound Layer back to <none>


When a layer is deleted any objects bound to that layer will have their Bound Layer reset to <none>


Layers in Driver Mode

  Skip Up Top Next Up Next Down Bottom

During the running of a Session in Driver Mode visible layers can be hidden and invisible layers revealled according to the events that occur during the Session.

The two Driver Mode scenes shown on the left illustrate this feature.
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 In the first image on the left, all layers are visible
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 In the second image on the left, two of the layers (containing the passengers and the trolley loads) have been hidden
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 The trigger for this change was the arrival of a train at the platform.


This effect could be achieved in two different ways:-
A Driver Command - specific to a particular driver, or
A Session Rule - specific to a particular driver, consist, or any driver/consist


Using a Driver Command

The driver command Layer Control hides and shows named layers.

The sequence of events in this example will be:-
The train will drive to the named station
It will wait for 30 seconds
The assets held in or bound to the named layer will be hidden from view (or shown)


Using Session Rules


Rules Used:


Session Editor Screenshot:


Description:

In this example:-
The Trackside Check Rule is triggered when a specific train comes to a stop at a trackmark. This then executes the following rules in order:-
The Show/Hide Layer Rule is used to hide the layer named "People". Four passengers (three standing and one seated) are hidden
The Show/Hide Layer Rule is used to hide the layer named "CNJCartsFull". The boxes and mail bags on the three platform trolleys are hidden
The Message Popup Rule is used to place a message on the screen informing the player that the passengers and mail have been loaded


  Top Next Up    


Trainz Wiki

More Tutorials and Guides to Using Trainz


This page was created by Trainz user pware in June 2018 and was last updated as shown below.