Stack carets in one straight column with Ctrl+Alt+Down
ShotScriptStroke Engine

Stack carets in one straight column with Ctrl+Alt+Down

By ShotScript Team

Put your caret partway along a line in a ShotScript tab and press Ctrl+Alt+Down. A new caret lands on the line below, in the same screen column, tabs counted. Press it again and the column keeps growing. A line too short to reach gets its caret at its end, and the next press goes straight back under the first caret, as in Studio.

A few lines of a script in a ShotScript tab, in the light theme. One caret sits just before the 1 in local laneSpeed = 1, two lines above a shorter line.One caretFour carets
Three presses of Ctrl+Alt+Down from one caret.

Now type, and every letter goes in at all four carets. Backspace takes one back at each. That's the change from Friday we think you'll reach for most, and the rest of the day's work on several carets comes next. Further down you'll find Docs pages that open beside into more room, a Styles panel that stays whole however slim you drag it, Properties tips in Studio's own words, an error that turns up sooner, and sunlight through glass in Stroke Engine. New in ShotScript and New in Stroke Engine list every change since Thursday night.

More keys at several carets

Most of Friday's other caret work makes several carets act the way they do in Studio.

  • After a Ctrl+Alt+Down, type a letter and Backspace it, or press Right then Left, and the next press copies both carets down a line. Each copy lands on its own next line, or one further when a caret already sits there.
  • Select a letter with Shift+Right and press Ctrl+Alt+Down, and the next line gets the same selection. Escape then leaves a caret on both lines.
  • The bold line number in the gutter stays on your first caret, the one Escape keeps, whether you added the others with Ctrl+D, Ctrl+Alt+Down, Ctrl+Alt+Up or Alt+click.
  • After Ctrl+D, Escape drops each selection and keeps a caret at its end. A second Escape keeps only your first caret.
  • Shift+Up, Shift+Left and Shift+Right join selections that touch, so your next letter replaces them once.
  • From a blank in the middle of a line, Ctrl+Shift+Right takes the blank and the next word in one press. Two carets each take their own.

Type at two carets where both words start the same, and the completion list opens at the caret you added last. Backspace keeps it open, and Enter puts the highlighted word in at both, with no line break.

Undo got tidier too. Type at two carets, wander off with Left and Right, Home and End, or PageUp and PageDown, then type again, and one Ctrl+Z takes all of it back. Type a line and press Up so the tab lines it up, and one Ctrl+Z takes back the line and its lining up together.

The view moves with you. At two carets near the top or bottom of the view, Up, Shift+Up and Shift+Down scroll just enough to show the highest or lowest caret. In a script shorter than the view, PageDown and PageUp leave the view and your caret where they are. Script tabs goes through the keys.

Open beside finds more room

With Docs alone in its docked column, Open beside on a link now widens into the 3D view, so the two pages sit side by side. Close the new window and every width comes back. Its top bar ends in a dim label, and a click there takes you back to the link you came from. Open beside a link to a system your sidebar doesn't list, and the page opens under Docs with that system's sidebar already open.

Properties holds its height through all of this. With just Docs under Properties in the right column, open and close a page beside as often as you like, from the very first time, and Properties ends each round exactly where the last one ended. Close one after a restart, and Properties and Docs get back the heights they had before it opened.

The sidebar learned a few things as well. In slim floating Docs, a button at the top opens the sidebar and hides it again, and each tab keeps its own choice. Find on a system's own page reaches words that only its scripts hold, and the sidebar lists the matching entries, even inside folders. Clear the sidebar's Find in a floating Docs window and the entry you last picked stays selected. Rest the pointer on an entry whose page is open beside, and its hover card says which window holds it, with no tooltip on top.

Since Thursday night, a Docs window's sidebar also lists a script you add, takes its new name from Studio's Explorer and drops it when you remove it, all without a click. A new Docs window opens where you last closed one. The Docks page has the rest.

Styles stays whole at any width

Drag a Styles panel as slim as it goes, floating or docked, and nothing breaks. Its find box and its Undo, Redo and More buttons stay whole, and the vertical scroll bar shows. Floating alone, it stops at its least width with every control intact. Docked, a short sideways bar reaches every word chip.

Show in Styles now hands you the keys. Right-click a word in a ShotScript tab, pick Show in Styles, and the lit chip takes the focus, docked or floating. Down and Left move the focus edge, Enter opens the chip's picker, and your script stays as it was.

A dragged word chip hangs a little below and right of the pointer, and it lands just before or just after a chip depending on which half you let go on. Type a hex that isn't a colour into the picker, press Enter, and nothing changes. Picker swatches look crisp, each with a single thin ring. And after you move chips between groups and touch nothing else, Studio closes without asking you anything.

Properties in Studio's words

Rest the pointer on a property's name in docked Properties, and Studio's own text shows, in the same place and at the same time as Studio's tip. Move to another name and the tip switches at once, with code in a code font. In floating Properties, values get no tip, as in Studio, and a right-click on a value such as Transparency, Name or Position's X opens just its editor.

The floating Properties filter keeps Studio's groups and order. One wheel notch scrolls 63 pixels, as far as Studio's does, and each category header shows its triangle, ready to shut or open the category.

ShotScript Explorer selects the way Studio does after an undo. Undo an insert into a Model and the Model is selected again. Undo a group and both items come back selected. In its search, Down selects the first listed item, and with Suggested Filters open under the empty search box, Down and Up move through them. A long name with nothing after it now runs off the edge with a sideways scroll bar, while names with notes keep their dots in view.

One error turns up sooner

Write Hub.Box<number> in another system, where number misses Box's interface bound, and the error now shows on the first check. Before, it could hold off until a later edit. Systems explains bounds.

Sunlight through glass in Stroke Engine

Sun and lamp light coming through a window in Stroke Engine now loses what real glass reflects at each angle, and takes the glass's tint. Before, glass let through a flat share whatever the angle.

Cameras with lens distortion resample the picture with a sharper filter, so thin branches and text stay crisp. Dark skies and shadows no longer band after colour grading and lens effects, since pictures keep full precision until the very end. And an edit in one corner of a render no longer reshuffles the grain everywhere else, because each pixel now draws its own samples.