Save Multi brushs an variables in one file

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

Save Multi brushs an variables in one file

Post by sinisrus »

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: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Save Multi brushs an variables in one file

Post by airsoftsoftwair »

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