I know you can override read and write of GH_IO.Serialization inside a custom component to gain persistence. But is it possible to get this behaviour using a script component instead? If not, is there an alternative method to gain persistence in another way, without writing to an external file.
I do not want to use custom components because that requires used to download and install a plugin.
Will this be saved with the gh file? lets say i save some settings, then i transfer the file to another computer, will i be able to pull up those settings again?
In that case you can store your data in a named panel component from the Script Component and let the people who read that document do not delete that panel. If you want to store no text data there, use the GH_IO.Serialization.GH_LooseChunk class to serialize your data to xml/binary and send that text to the panel. Then you can search the panel by its name and deserialize the data with GH_LooseChunk.