Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
also left bmesh decimator on in previous commit.
|
|
endswith() functions rather than calling multiple times.
|
|
|
|
|
|
|
|
|
|
blender to rna_properties.txt
|
|
- corrected rna property name Controller.states -> state (pointed out by Dalai).
- rna_cleaner_merge script now only merges comment and new name.
|
|
|
|
will stop being so big now.
|
|
|
|
|
|
- added a script to merge 2 lists of rna renaming from/to
- merged rna_booleans.txt into rna_properties.txt
- made rna_cleaner.py sort by class.from by default.
|
|
|
|
- after talking with brecht, changes keys prefixes with "is_pressed_alt" and so on if readonly and "pressed_alt" if not readonly
- updated the rna_cleaner.py with real prefixes and keywords so it's clear what it is being used
kw_prefixes = [ 'active','apply','bl','exclude','has','invert','is','lock', \
'pressed','show','show_only','use','use_only','layers','states']
kw = ['active','hide','invert','select','layers','mute','states','use','lock']
|
|
- edited the rna_cleaner.py script to use repr() on descriptions so quotes dont result in invalid generated python scripts.
|
|
|
|
|
|
small fixes adnm tentative new keywords
those discussed by campbell and brecht are still there, but commented
with these keywords I'm happy how booleans went, committing to discuss with cambpell
|
|
- fixed a bug: it wasn't updating checks when importing from py file
- removed the global input_filename, I didn't like it very much
|
|
Re-introducing the modification made by Cambpell yesterday [rev., I copied the file over and forgot to restore this.
Sorry for the noise :)
|
|
- rna_api.py now doesn't have work parameters anymore (note, changes, keyword-check)
- header implementation fixed
- removed 3 unuseful/already commented lines
- renamed a function
|
|
|
|
- new folder rna_cleanup/
- moved na_api_cleanup.txt in rna_cleanup/
- rna_cleaner.py is a script to help cleaning rna names, pasting the help below for those interested
Basically after you run this on a original file, the script produces 2 file .txt and .py that you can edit.
You can skip to edit things liek "changed" or "same" or check if the "to" field is correct or not.
When you re-run this script it will check these thigns and will produce a consistent output file again.
Also, you can sort lines at will.
$ ./rna_cleaner.py -h
HELP:
Run this script to re-format the edits you make in the input file.
Do quick modification to important fields like 'to' and don't care about fields like 'changed' or 'description' and save.
The script outputs 3 files:
1) *_clean.txt: is formatted same as the .txt input, can be edited by user.
2) *_clean.py: is formatted same as the .py input, can be edited by user.
3) rna_api.py is not formatted for readability and go under complete check. Can be used for rna cleanup.
USAGE:
./rna_cleaner.py input-file (.txt|.py) order-priority (note|changed|class|from|to|kw).
./rna_cleaner.py -h for help
|