Changes between Version 1 and Version 2 of Help/Plugin/KindaHackedInUtils


Ignore:
Timestamp:
2025-10-11T11:33:33+02:00 (4 months ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Help/Plugin/KindaHackedInUtils

    v1 v2  
    1717|| This works like activating the split mode and clicking at the location the way should be split.||
    1818
     19=== Add direction to objects with mouse pointing ===
     20
     21Press **`H`** on the keyboard to add the direction value to the selected object.
     22
     23==== What it does? ====
     24
     25The function will add the key `direction` (or `traffic_sign:direction` for traffic signs if enabled in the preferences of the plugin) with a direction value to the selected object. The direction values is either a number of 0 to 359 degrees or the abbreviation of a degree number if the number matches that number.
     26
     27The direction depends on the mouse location relative to the selected object, the direction of the way the object is part of and if certain keys are present for the selected object when pressing **`H`** on the keyboard. If the key `traffic_sign" or the key/value `highway=traffic_signals` are present the direction value is handled like this:
     28
     29[[Image(direction_side.png)]]
     30
     31If the mouse point anywhere inside the forward area in this image the the point in the middle which is a traffic sign or traffic signals will get the direction value of `forward`, if the mouse is in the backward area the direction value will be `backward`. If the mouse is hovering over the way segment (in direction of the way) after the point in the middle it always will be `forward`, if the mouse is on the way segment before the point in the middle it will always be `backward`.
     32
     33The exception from those rules is if the direction value of `forward` or `backward` would be or could be ambiguous the degree value will be used instead.
     34
     35If you prefer to switch out the forward and backward areas you can disable the preference `Natural direction for traffic signs` in the preferences. Additionally if you want to get the direction value for traffic signs with pointing opposite to the front side of the signs instead of pointing in the direction the traffic sign is effecting you can add an advanced preference key **`kindahackedinutils.oppositeSimpleDirection`** with the value `true` to the preferences. This preference will only work if `Natural direction for traffic signs` is disabled.
     36
     37For example the sign in the middle is a speed limit sign, with the default settings you have to point to the way segment that is affected by the sign, so the way with the speed limit. If the advanced preference is set you will have to point to the way in front of the sign, so the way that hasn't the speed limit.
     38
     39To force the usage of a degree value instead of `forward`/`backward` you can use the keyboard shortcut **`Alt+Shift+H`**
     40
    1941=== Detach nodes from areas ===
    2042
    21  
     43Select [[Image(detach.svg, 24px, middle)]] `Detach nodes from ways and move them` from the `More tools` menu or press **`Z`** on the keyboard.
     44
     45==== What it does? ====
     46
     47Sometimes areas are attached to a way which is typically wrong since the area doesn't reach up to the way line:
     48
     49[[Image(sloppy_curve.png)]]
     50
     51Here the areas are attached to the primary highway and the track and the curve is rather sloppy mapped. First add points to the primary highway to make the curve look better. Then select the primary highway and use the detach function, it will result in this:
     52
     53[[Image(better_curve.png)]]
     54
     55The detach function will detach and move all points of areas that are attached to the selected way or if the area itself is selected detach and move all points of the area that are attached  ways. The movement of a point typically goes in the direction of the inside of the area but if the area is not a real area but a way that is part of a relation it might go wrong if the relation members are not present in the current edit layer.
     56
     57=== Undo changes only for an object ===
     58
     59Select [[Image(unredo.svg, 24px, middle)]] `Undo/redo changes on selected object` from the `More tools` menu or press **`Ctrl+Alt+Shift+Z`** on the keyboard.
     60
     61==== What it does? ====
     62
     63Sometime you might want to undo an accidentally change of a single object after you've noticed the accident, so all changes to other objects that were done after the accident would be sustained.
     64
     65To undo the changes of an object select the object or if it was deleted search for the deleted object for selection or copy the id of the deleted object from a newly downloaded layer.
     66
     67If no object is selected the plugin will present you with a dialog to enter the id of the object to undo:
     68
     69[[Image(unredo_id.png)]]
     70
     71If an id is present in the clipboard it will be automatically entered as the wanted id. After pressing OK or if an object was already selected you will get the undo/redo dialog for the object:
     72
     73[[Image(unredo_dialog.png)]]
     74
     75Here you can select the change that should be undone/redone. The presented changes are all available undo command in which the object was included. Only when the object was deleted there might be missing some commands but those will be available after undoing the deletion of the object.
     76
     77**NOTE:** This function will not check if the changes have already been undone/redone. So you have to know what to do.
     78
     79=== Create or change turn restrictions ===
     80
     81Select [[JOSMImage(presets/vehicle/restriction/turn_restrictions/no_u_turn.svg, 24px, middle)]] `Create turn restriction or change selected` from the `More tools` menu or press **`Shift+T`** on the keyboard.