Page 1 of 1

Custom Icon

Posted: Tue Nov 26, 2013 9:59 pm
by DeltaJuliet
Hi all,

Is it possible to add "clean data folder" as an icon?

cheers

Dave.

Re: Custom Icon

Posted: Wed Nov 27, 2013 2:25 am
by jesse nicodemus
Hey Dave,

I couldn't find an equivalent command. You could write a quick python script to delete the caches that correspond to anything in your scene then put the command on a button.

Re: Custom Icon

Posted: Wed Nov 27, 2013 11:01 am
by LuisMiguel
Hi,

You can use python to remove files and directories.

Code: Select all

import sys, os, shutil

path= "your path"

os.remove(path) #will remove a file.

os.rmdir(path) #will remove an empty directory.

shutil.rmtree(path) #will delete a directory and all its contents.
luisM.