New Blender Organizer (forget about making folders, work faster)

@Blender_Dumbass I cloned the repo and gave a look into the code but I didn’t do much as I don’t have a lot of free time.
Just two things:
I noticed that you’re using python 2 and not python 3. Is it really necessary? because support will be dropped in 1 year ( https://pythonclock.org/ ), nearly all libraries have been ported to python3. Also blender uses python3, so if you want some more integration in the future you’ll face some problems.
I could try an port it if possible, it would be a good exercise to learn more, but it’s up to you.

For the GTK library, a simple “pip install PyGTK” is enough to bring that to windows. In case it isn’t installed, I can suggest handling the “ImportError” exception and making it execute the command. Alternatively, it’s possible to make an install script that checks if those scripts are installed before deploying the program with the icon on the desktop and everything?

Python 3 is way too confusing to me… I like writing files and sending strings of bites over sockets using ord(x) or simply ASCII characters. In python 3 for some reason I need to do some buffering shit.

I love the old print that is easier to type then new print()

I do use some python3 tho in the modules. There is this file get_start_end_frame.py
it’s written on python 3 code. But just out of necessity. I just don’t like python 3 too much.

UPDATES X2 18.09.2018

1 Like

Blender_Dumbass thanks for the reply. I don’t code so hopefully someone else has the necessary skills.

cool! how to support for windows :thinking:

Just install linux… that’s simplest way.
IDK maybe somebody will make a supposrt for windows. I’m not into it

FIXED A STARTUP BUG !!!
And some new features
Scheduling / Checklists for shots / Different templates for different types of assets

it gives error

Has to be installed:
os
socket
gtk (PY-gtk2)
pango
cairo
PIL or Image
datetime

i am running ubuntu , can you tell me how do install these modules ?

FIRST YOU NEED TO FIND OUT WHAT ARE THE MISSING MODULE FOR REAL
some of them can be installed already ( this text appears if at least 1 is missing )

Open terminal ( CTRL-T )
try running python
python

it should give you

Python 2.7.12 (default, Nov 20 2017, 18:23:56) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

try importing each module separatelly

If it exists already ( already installed ) it will give you nothing
>>> import os

But if it’s not installed it will give an error message
EXAMPLE:

>>> import blender_dumbass
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named blender_dumbass
>>>

INSTALLING MISSING ONES

install python-pip to your computer
sudo apt-get install python-pip

then try installing your modules with pip

MOST COMMON ARE

sudo pip install PIL
sudo pip install PyGTK

CRAZY AWESOME UPDATE UPDATE MANAGER

2 Likes

I tried it and these are the results (ubuntu 18.04)

sudo apt-get install python-pip :white_check_mark:

Sudo pip install PyGTK :no_entry_sign:
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-kROvhZ/PyGTK/

sudo pip install PIL :no_entry_sign:
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL

1 Like

Is a windows version being planned/

OK WORKING ON IT… O i need to figure it out. Thank you for your support

Try this for GTK

sudo apt-get install python-gtk2-dev

And for PIL try

pip install pillow

next round

:~/Desktop/blender-organizer-master$ python blender-organizer.py
destroyed
chr EMPTY
veh EMPTY
loc EMPTY
obj EMPTY
Traceback (most recent call last):
File “blender-organizer.py”, line 467, in
drawmain()
File “blender-organizer.py”, line 459, in drawmain
analytics.draw_analytics(os.getcwd(), drawbox, mainwin)
File “/home/c17vfx/Desktop/blender-organizer-master/py_data/modules/analytics.py”, line 150, in init
a = datetime.datetime.strptime(self.startdate, date_format)
File “/usr/lib/python2.7/_strptime.py”, line 274, in
_TimeRE_cache = TimeRE()
File “/usr/lib/python2.7/_strptime.py”, line 192, in init
self.locale_time = LocaleTime()
File “/usr/lib/python2.7/_strptime.py”, line 70, in init
self.lang = _getlang()
File “/usr/lib/python2.7/_strptime.py”, line 29, in _getlang
return locale.getlocale(locale.LC_TIME)
File “/usr/lib/python2.7/locale.py”, line 564, in getlocale
return _parse_localename(localename)
File “/usr/lib/python2.7/locale.py”, line 477, in _parse_localename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: agr_PE

Interesting. You just found a bug in the datetime module.
The only thing I can do to resolve it. Is to make Try: Except: Thingy over in that peace of code. But probably then something will break.

Do you have the whole project, or just the blender-organizer.py?
Because it was trying to open a file named project.progress in the same folder as it. And parse from it the date.
Also what is your machine date parameter. Maybe it does some problem if the date is not correct.

I’m not able to recreate this mistake. I need a more detailed explanation of how it’s done.

Meanwhile I just made an instalation through git.

image

Open terminal where you want to put your project.
Then do those commands

sudo apt-get instal git
git clone https://github.com/JYamihud/blender-organizer
cd blender-organizer
python2 blender-organizer.py


I got this. What you get?

thanks for the support but the problem persists

:~/Desktop/proyecto alfa/blender-organizer$ python2 blender-organizer.py
destroyed
chr EMPTY
veh EMPTY
loc EMPTY
obj EMPTY
Traceback (most recent call last):
File “blender-organizer.py”, line 466, in
drawmain()
File “blender-organizer.py”, line 458, in drawmain
analytics.draw_analytics(os.getcwd(), drawbox, mainwin)
File “/home/c17vfx/Desktop/proyecto alfa/blender-organizer/py_data/modules/analytics.py”, line 150, in init
a = datetime.datetime.strptime(self.startdate, date_format)
File “/usr/lib/python2.7/_strptime.py”, line 274, in
_TimeRE_cache = TimeRE()
File “/usr/lib/python2.7/_strptime.py”, line 192, in init
self.locale_time = LocaleTime()
File “/usr/lib/python2.7/_strptime.py”, line 70, in init
self.lang = _getlang()
File “/usr/lib/python2.7/_strptime.py”, line 29, in _getlang
return locale.getlocale(locale.LC_TIME)
File “/usr/lib/python2.7/locale.py”, line 564, in getlocale
return _parse_localename(localename)
File “/usr/lib/python2.7/locale.py”, line 477, in _parse_localename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: agr_PE

i found possible solution man
change my input format system to English (I had it in Spanish)

thanks man ! now testing

1 Like