View Full Version : AvsPmod 2.5.1
Zarxrax
13th April 2011, 22:02
I prefer "portable" software which has all files in a single location.
Yes, if there is an installer, it will only be offered as an option.
Zarxrax
13th April 2011, 23:38
Version 2.0.9:
- Code folding at curly braces {}. May be improved later.
- added an option 'show tabs in multiline style' in 'Options|Program settings|Misc'
- added "copy as time" to the frame number text box
- added an option "Don't preview when loading a session" in 'Options|Program settings|Video 1'
- if 'paranoia' mode turned on, don't preview when loading a session
- 'Save bookmarks to images' macro updated to support more image formats besides just bmp
- Many bugfixes:
fix: when closing a tab, always hid the preview window.
fix: the framenum parameter of avsp.SaveImage() doesn't work
fix: autocompletion doesn't apply customized preset if only typing a short name of a plugin filter
fix: resolution not mod 4 or odd(rgb), the image is skewed. a regression on avspmod 2.0.8 only.
fix: sometimes scripts line end is only 'LF'. force using windows style 'CR'+'LF'.
fix: can't enter funtion definition dialog if delete a filter but keep its preset.
fix: options.dat compatibility broken if user define a user funtion which name is short and is the same as the 2nd part of a long name filter.
fix: ESC shortcut doesn't work in wx2.8 or later.
Abilities of new code folding feature:
1. Click on fold marker or through menu "Edit|Toggle current fold" to show/hide lines.
2. Click on fold margin while holding Ctrl+Shift or through menu "Edit|Toggle all folds" to show/hide lines at all fold point.
3. Click on fold marker while holding Ctrl to toggle recursively.
4. Click on fold marker while holding Shift to toggle folds of child.
Barrakketh
14th April 2011, 03:53
Thanks for the report. I think the best solution right now is to just don't place it in program files folder, or just make sure the folder has permissions set correctly. The session file isn't the only thing that could cause trouble. For instance, if the user needs to modify a macro or something, that might not be possible either. And the program also needs to save files like options.dat.
One possible solution (especially since Windows Vista/7 apps are supposed to be using %APPDATA% anyway) would be to check whether the directory that AvsPmod is installed to is writable, and if not use %APPDATA%\AvsPmod instead.
That way if you've tossed AvsPmod onto a flash drive or some other location where you would have write access it'll work as it always has, but if you put it into Program Files it'll fallback to how Vista/7 expects applications to behave and continue to work properly.
Caroliano
15th April 2011, 05:58
Hmmm... I know what you are talking about, because I have experienced that problem before, where the program wont appear in after you select it.
I experienced that problem with a different application than avsp though. I think its some bug in windows, possibly.
I *think* what happens is there might be some leftover info in the windows registry pointing to an outdated location, or something like that.
If you are comfortable modifying the registry, try searching through it for any references to avspmod, and delete them.
A bit late, but an update:
I ran an register cleaning aplication, and there indeed was an old and invalid registry entry for the old AvsPmod folder. Now it works perfectly.
:thanks:
Dogway
15th April 2011, 09:20
Also format and quality options for saving images. (e.g. default jpg quality is....)
Jenney001
15th April 2011, 09:54
yeah...
wOxxOm
16th April 2011, 18:09
2.0.9 assigns Esc-hotkeys globally and actually disables those keys throughout whole system, fix it please.
self.hotkeysList = [
(wx.NewId(), 'Escape'),
(wx.NewId(), 'Alt+Escape'),
(wx.NewId(), 'Ctrl+Escape'),
(wx.NewId(), 'Shift+Escape'),
]
Zarxrax
16th April 2011, 23:16
ok, thanks for the report
DiCQC
17th April 2011, 00:34
Hi. I'm using AvsPmod now, looks god who can use it.
Usedocne
17th April 2011, 02:56
Hi. I'm using AvsPmod now, looks god who can use it.
Yeah, God's been using AvsPmod for a while now... You know something's *good* when God starts using it.
Also, keep up the good work, ANGEL_SU and Zarxrax!
ANGEL_SU
17th April 2011, 03:43
2.0.9 assigns Esc-hotkeys globally and actually disables those keys throughout whole system, fix it please.
Because a normal ESC shortcut doesn't work on wxWidgets 2.8 or later, I register it as a system wide hotkey to get it work. Certainly, this will causes a problem if another application running concurrently and using ESC key.
AvsPmod 2.0.9 always register ESC as a hotkey even you don't use this key. Obviously, it's not a good way and I will make a simple improvement in next version - if you don't use ESC, don't register it as a hotkey.
SubJunk
17th April 2011, 11:52
Thanks for the update :)
Boulotaur2024
17th April 2011, 18:15
I had the same problem in Windows 7 Professional 64-bit. To fix it, I had to run AvsP as administrator.
To have it run as administrator by default, you can right-click your AvsPmod shortcut, click Properties, then Advanced (under the Shortcut tab), then check "Run as Administrator", then click OK. Hope this helps!
Thanks, it fixed the issue for me.
Zarxrax
17th April 2011, 21:40
Version 2.1.0:
- support code folding on block-comment and end-comment.
- if ESC isn't defined as a shorcut, don't register it as a system hotkey.
- new option "Draw lines at fold points" in menu "Options|Program settings|Text 2".
- new macro "Save Image Sequence"
- saving an image as .jpg now prompts the user to specify the quality level
- forgot to include avs2avi in the past several versions, it has returned.
SubJunk
17th April 2011, 23:39
Nice one, thanks :)
Dogway
18th April 2011, 00:57
Save to image has a bug:
-save an image to jpg
-set quality
-save again image with another format
message
Traceback (most recent call last):
File "AvsP.pyo", line 6595, in OnMenuVideoSaveImage
File "AvsP.pyo", line 9142, in SaveCurrentImage
UnboundLocalError: local variable 'quality' referenced before assignment
Zarxrax
18th April 2011, 01:18
Save to image has a bug:
-save an image to jpg
-set quality
-save again image with another format
message
Traceback (most recent call last):
File "AvsP.pyo", line 6595, in OnMenuVideoSaveImage
File "AvsP.pyo", line 9142, in SaveCurrentImage
UnboundLocalError: local variable 'quality' referenced before assignment
Doh! I'll fix that right away. A line was just indented wrong :P
Ok, fixed :)
TurboPascal7
22nd April 2011, 06:10
Bug: syntax highlighting and other sweet things don't work for mt_masktools in 2.1.1.
2.0.8. works just fine tho.
Zarxrax
22nd April 2011, 17:17
This is fixed for the next version.
TurboPascal7
23rd April 2011, 02:31
This is fixed for the next version.
Cool, thanks.
brawler
24th April 2011, 02:59
I just started with avisynth and found this great program. I have a suggestion though for autocomplete when typing text in the main window. Right now the autocomplete window disappears if you start typing out the name of a plugin and spell it wrong. What I would like to see is that the autocomplete window will reappear if I start to backspace to correct my mispelled error. I hope I was clear on this. Thanks again for the great program.
ANGEL_SU
24th April 2011, 12:55
... What I would like to see is that the autocomplete window will reappear if I start to backspace to correct my mispelled error...
Ok, I added some code to do this. Instead of moving the caret backwards, you just press Ctrl-Space at current position. AvsP will automatically move the caret to a possible matched position within the word and bring up the autocomplete window. I also added an related option in 'Program setting'. You can disable this behavior if you don't like it.
Zarxrax
25th April 2011, 19:47
Version 2.1.2:
- add a menu item "Copy avisynth error to clipboard" in "Edit|Miscellaneous". OCR text macro is no longer needed.
- Add an option "Find within a word to show autocomplete" at menu "Options|Program settings|Text 1"
- "save bookmarks to images" macro now lets you specify a jpeg quality level
- fixed some bugs with function definitions that have underscores in their name
- added 'Bookmarks at Interval' macro
- added 'Random clip order' macro
-add a text entry "DLL underscored" in "Options|AviSynth function definition...|Plugin tab". There may be some cases where a dll with an underscore in its name does not autodetect properly. These situations can be resolved by manually putting the base names into this box.
SubJunk
25th April 2011, 21:00
Thanks :)
dwm4444
25th April 2011, 22:23
Hi, zarxrax,
First, thanks for the great program; been using if since it first came out. I updated to 2.1.2 this morning but hadn't run it, but I noticed someone over on Videohelp complaining about it briefly opening a window then shutting down, so I just tried it and got the same result (Win7, 64bit). Here's the error log:
===========
[Mon Apr 25 16:47:29 2011]
Traceback (most recent call last):
File "run.py", line 6, in <module>
File "AvsP.pyo", line 12891, in main
File "wx\_core.pyo", line 7981, in __init__
File "wx\_core.pyo", line 7555, in _BootstrapApp
File "AvsP.pyo", line 12881, in OnInit
File "AvsP.pyo", line 3921, in __init__
File "AvsP.pyo", line 4620, in defineFilterInfo
File "AvsP.pyo", line 4697, in defineScriptFilterInfo
UnboundLocalError: local variable 'shortname' referenced before assignment
==========
Went back to 2.0.7 and all is fine.
It's probably just me (and the other guy). Thought I'd mention it, though, and thanks again for keeping this project going.
Dogway
25th April 2011, 23:15
I don't know what's happening lately but everything became worse since somewhere around v.2.0.8.
-I type "mt_edg"
-press ctrl+space (for autocompletion,call my presets, etc)
problem 1:
-cursos goes to mt_|edg and a list of all my mt_masktools functions are displayed...
problem 2:
-so I manual write mt_edge but it doesn't get highlighted
problem 3
-before every single mt function there is the plugin it belongs "mt_masktools-25_" which is rhetorical and innecesary IMO. I already know MT_edge belongs to MaskTools and having by default "mt_masktools-25_mt_edge" as autocompletion (instead of mt_edge) is just a waste of clarity for script creation, thus of time to get it fixed.
PTDown
25th April 2011, 23:18
[Mon Apr 25 23:52:51 2011]
Traceback (most recent call last):
File "run.py", line 6, in <module>
File "AvsP.pyo", line 12891, in main
File "wx\_core.pyo", line 7981, in __init__
File "wx\_core.pyo", line 7555, in _BootstrapApp
File "AvsP.pyo", line 12881, in OnInit
File "AvsP.pyo", line 3921, in __init__
File "AvsP.pyo", line 4620, in defineFilterInfo
File "AvsP.pyo", line 4697, in defineScriptFilterInfo
UnboundLocalError: local variable 'shortname' referenced before assignment
fix please. :)
MilesAhead
26th April 2011, 02:05
Hi, zarxrax,
First, thanks for the great program; been using if since it first came out. I updated to 2.1.2 this morning but hadn't run it, but I noticed someone over on Videohelp complaining about it briefly opening a window then shutting down, so I just tried it and got the same result (Win7, 64bit). Here's the error log:
===========
[Mon Apr 25 16:47:29 2011]
Traceback (most recent call last):
File "run.py", line 6, in <module>
File "AvsP.pyo", line 12891, in main
File "wx\_core.pyo", line 7981, in __init__
File "wx\_core.pyo", line 7555, in _BootstrapApp
File "AvsP.pyo", line 12881, in OnInit
File "AvsP.pyo", line 3921, in __init__
File "AvsP.pyo", line 4620, in defineFilterInfo
File "AvsP.pyo", line 4697, in defineScriptFilterInfo
UnboundLocalError: local variable 'shortname' referenced before assignment
==========
Went back to 2.0.7 and all is fine.
It's probably just me (and the other guy). Thought I'd mention it, though, and thanks again for keeping this project going.
Hi, I'm the "other guy" running Windows 7 32 bit. I backed off to 2.1.1 and things are back to normal. I never had a crashing issue until 2.1.2.
http://smileys.smilchat.net/emoticon/children/ecole/ecole-14.gif
ANGEL_SU
26th April 2011, 03:16
Hi, zarxrax,
....
UnboundLocalError: local variable 'shortname' referenced before assignment
==========
Went back to 2.0.7 and all is fine.
...
Sorry, that's my fault and will fix in next version. Currently, a workaround is to put a dll (with an underscore in its name) into the avisynth plugin folder, such as mt_masktools.dll.
If you can't find one, you can also rename any one dll with underscored style. Once Avsp runs successfully, exit AvsP and rename the dll back.
Zarxrax
26th April 2011, 03:17
I changed the version of wxpython that its compiled with. Maybe that could be the issue. It still works perfectly fine for me though :\
Edit: or maybe its what angel_su just said :\
dwm4444
26th April 2011, 03:39
Currently, a workaround is to put a dll (with an underscore in its name) into the avisynth plugin folder, such as mt_masktools.dll.
If you can't find one, you can also rename any one dll with underscored style. Once Avsp runs successfully, exit AvsP and rename the dll back.
Thanks, ANGEL_SU; that worked great.
I renamed DGDecode.dll to DG_Decode.dll. AvsPmod 2.1.2 then opened fine. After renaming it back to DGDecode, AvsPmod still opens fine.
Much appreciated. Thanks again to you and the other developers for keeping AvsPmod going.
ANGEL_SU
26th April 2011, 04:38
@Dogway
Go to "Options|Program settings|Text 1|Customize autocomplete keyword list..." and check if mt_edge is existing and checked. If yes, please upload your options.dat for my study.
I have mt_masktools.dll at my machine. I try to customize my own preset of the long name plugin mt_masktools_mt_edge. When I just type an incomplete word mt_edg and press <Ctrl-Space>, I see only mt_edge in autocomplete window. Then, I press <Enter>, it did apply the long name customized preset without dllname prefix at the beginning. So you don't need to define another short name function to do this. If I would like type mt_ to see short names only in autocomplete window, I will go to "Options|Program settings|Text 1|Customize autocomplete keyword list..." and uncheck all long names of mt_masktools_*.
Dogway
26th April 2011, 05:22
I didnt import any .dat file, just extracted the .zip and run avspmod. There's no mt_whatever in autocomplete list, only mt_masktools-25_mt_whatever.
I don't know whose fault, but after some plugins discards I found out which one triggered the bug, please download dither.dll (http://forum.doom9.org/showthread.php?p=1386559#post1386559) v1.6 and tell me if you can reproduce it. There were some others that also produce the same effect. They probably share the same underscore naming convention...
edit: I also think that my options.dat is already bugged because of this.
options.dat (http://www.mediafire.com/?31bytxoby6tzyo5)
ANGEL_SU
26th April 2011, 07:11
@Dogway
Thank you for your options.dat, I replicate this bug. A workaround for your case is to rename mt_masktools-25.dll to mt_masktools.dll. Currently, please don't use hyphen '-' character in an underscored dll. In fact, you can see no mt_edge but a 25_mt_edge there when you customize autocomplete keyword list.
Dogway
26th April 2011, 07:25
but "Average_21Oct05.dll" doesn't have any "-" and also causes it.
ANGEL_SU
26th April 2011, 08:20
but "Average_21Oct05.dll" doesn't have any "-" and also causes it.
I don't see any Average_21Oct05 related definition in your options.dat. Is it a new one? Do you put the dll in the avisynth plugin folder? Do you see average_21oct05 (all lower case) in 'DLL underscored' box?
I define a fake plugin function - Average_21Oct05_func1 and add average_21oct05 (all lower case) into 'DLL underscored' box. When I type fun and press <Ctrl-Space>, I can see func1
Dogway
26th April 2011, 09:21
I dont know if it's a new one, I tend to include new plugins once in a while or update them. I see it average_21oct05 (lower case) in the 'DLL underscored' box.
This is not a function I want to call, is a plugin I need (don't remember now what for) for another plugin or script in order to work. But putting it into the plugins folder just triggers the mt_masktools problem described above.
Didn't you find any problems with it?
ANGEL_SU
26th April 2011, 10:06
Ok, I see this problem. I download real Average_21Oct05.dll and put it into the plugin folder. There is a non-existing dll named mt_masktools_mt in 'DLL underscored' text box. Once this wrong name removed manually, short names of mt_* come back.:)
PS:
Bad news: at this situation, you need to remove wrong name at startup every time. I'm sorry that my auto-detect routine is quite poor. In next version, I'll provide an option to disable this routine and users can fully control the content of 'DLL underscored' text box
Dogway
26th April 2011, 19:39
In my plugins list "nnedi3_abs.dll" also causes this problem, mind you that there might be any others that I don't use so I think itd be a good idea to mend it from the base rather than "patch" the symptoms. Newbies that don't read this thread would have a hard time...
Zarxrax
26th April 2011, 23:05
Alright, angel_su has tried to fix these bugs from the last version.
Version 2.1.3:
Fixed some bugs related to dlls with underscores
Replaced 'DLL underscored' textbox with a button to bring up a dialog. Add a checkbox on it to turn on/off auto-detect routine.
Dogway
27th April 2011, 03:53
OOOOK, now that this works as supposed Im starting to understand how everything works even without documentation :)(which I encourage you to update)
In a clean run everything went flawless, some problems arised when I copied over options.dat but this time trial&error was coherent and fixed everything that wasn't in place (e.g. plugins as user functions, presets without the parent naming convention, etc)
This looks like a robust version so I will stick with it and report possible bugs in the meanwhile.
Some minor suggestions:
comment in the middle of a line
auto recover session from an unexpected shutdown.
+ and - shortcuts for Zoom
Thanks a lot.
matfra
27th April 2011, 13:27
Whe I start the new version 2.1.3, nothing happen. It wont start. Any one have having this issue ?
ANGEL_SU
27th April 2011, 16:10
...
Some minor suggestions:
comment in the middle of a line
...
Is comment inside parentheses? Could you write a simple avs statement to show what you need?
Dogway
27th April 2011, 19:33
filter(things=doing) | in trim(x,y)
ctrl+q
filter(things=doing) # ~ in trim(x,y)
maybe is stupid...
Zarxrax
27th April 2011, 20:32
filter(things=doing) | in trim(x,y)
ctrl+q
filter(things=doing) # ~ in trim(x,y)
maybe is stupid...
You mean you want a shortcut to insert the comment at the cursor location? Cant you just type the '#'? It doesnt save any keystrokes so I dont see why you need a shortcut :\
Dogway
27th April 2011, 23:05
well, it requires my right hand, so it affects workflow. But at the same time you lose the benefit of line commenting wherever the cursor is...
Zarxrax
27th April 2011, 23:32
well, it requires my right hand, so it affects workflow. But at the same time you lose the benefit of line commenting wherever the cursor is...
Oh really? On a US keyboard, the left hand is used, since # is over the 3 key.
Dogway
28th April 2011, 01:28
Oh really? On a US keyboard, the left hand is used, since # is over the 3 key.
I see, in spanish keyboard it requires ctrl+alt+3 which is an akward hand position. Well, just ignore it, maybe some keyboard mapping will do it...
ANGEL_SU
28th April 2011, 08:56
I see, in spanish keyboard it requires ctrl+alt+3 which is an akward hand position. Well, just ignore it, maybe some keyboard mapping will do it...
Ok, I added 'Style comment <Alt-Q>' to do this. You don't need to move caret in a exact position, it inserts '#~ ' at the beginning of a text style. If already commented, find '#~ ' or '#' to uncomment it. You will see it in next version...
LigH
28th April 2011, 09:53
BTW:
On a german keyboard, # has an own key (no shift required) next to ENTER – much more convenient.
Alt+Q looks like a shortcut for "Quit" to me. But I don't want to confuse you more now...
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.