GafferHQ / gaffer

Gaffer is a node-based application for lookdev, lighting and automation
http://www.gafferhq.org
BSD 3-Clause "New" or "Revised" License
950 stars 205 forks source link

Changing the layout clears the contents of the ScriptEditor #369

Open bentoogood opened 11 years ago

bentoogood commented 11 years ago

Would be good to have the content of both the input and output fields persisted when the layout changed.

johnhaddon commented 11 years ago

What do you want to happen when there are different numbers of script editors in the two layouts? And what do you want to happen when switching from a layout with one, to a layout without one, and back again?

I suspect this issue will be relevant to other editor types too once we've implemented options for the viewer and suchlike. Perhaps we can wait till we've done some of that work and then address it all as a whole?

bentoogood commented 11 years ago

Feels like we need some notion of the 'primary' instance of an editor (+ 'secondary', & so on) for just this kind of thing. (i'm thinking also of 'double click on a node opens in 'primary' NodeEditor). The first editor that was opened? The last editor to be used?