Save Multi brushs an variables in one file

Find quick help here to get you started with Hollywood
Post Reply
sinisrus
Posts: 245
Joined: Tue Apr 21, 2015 5:43 pm

Save Multi brushs an variables in one file

Post by sinisrus » Fri Sep 14, 2018 12:29 am

Hello,

For save Brushs and variables in one file i use this script
BrushToRGBArray () is too slow I have a lot of brushes
I am looking for a solution to make faster
is there another function?

Code: Select all

FOR Local L=0 TO List$-1
WriteLine(FSave,"[L]")
WriteTable(FSave,BrushToRGBArray(self[ProjectID$].Brush),0,TRUE) ; Ecrire le tableau dans le fichier
WriteLine(FSave,"\r")
WriteLine(FSave,"Name="..ToString(self[ProjectID$].Name))
WriteLine(FSave,"Show="..self[ProjectID$].Show)
WriteLine(FSave,"Lock="..self[ProjectID$].Lock)
NEXT

Thank you

User avatar
airsoftsoftwair
Posts: 2628
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Save Multi brushs an variables in one file

Post by airsoftsoftwair » Sun Sep 16, 2018 10:35 pm

Why don't you save the brush in a standard format instead of raw pixels? BrushToRGBArray() is the bottleneck here since it creates a huge table with a new entry for each pixel...

Post Reply