Custom Icon

Post Reply
DeltaJuliet
Posts: 78
Joined: Thu May 30, 2013 1:19 pm

Custom Icon

Post by DeltaJuliet » Tue Nov 26, 2013 9:59 pm

Hi all,

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

cheers

Dave.

jesse nicodemus
Posts: 23
Joined: Fri Oct 07, 2011 8:23 pm
Contact:

Re: Custom Icon

Post by jesse nicodemus » Wed Nov 27, 2013 2:25 am

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.

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: Custom Icon

Post by LuisMiguel » Wed Nov 27, 2013 11:01 am

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.

Post Reply