k-410 / blender-scripts Goto Github PK
View Code? Open in Web Editor NEWCollection of scripts and script snippets for Blender
Collection of scripts and script snippets for Blender
blender-scripts/2.8/run_in_console.py
Lines 98 to 112 in 9eb5bec
in that case the while loop is never entered, and the line below it if not ok
will throw a
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\run_in_console.py", line 107, in scrollback_append
if not ok:
UnboundLocalError: local variable 'ok' referenced before assignment
location: <unknown location>:-1
Way to reproduce:
Traceback:
Error: Traceback (most recent call last):
File "C:\software\Blender_Launcher\daily\blender-3.6.0-beta+daily.58b5d38824de\3.6\scripts\modules\addon_utils.py", line 421, in disable
mod.unregister()
File "\Blender\3.6\scripts\addons\code_editor.py", line 1304, in unregister
set_draw(state=False)
File "\Blender\3.6\scripts\addons\code_editor.py", line 1227, in set_draw
st.draw_handler_remove(set_draw._handle, 'WINDOW')
AttributeError: 'function' object has no attribute '_handle'
Nice work, I really enjoy the addons here.
I'm using Blender 2.81a on Ubuntu 18.04
I have a strange behavior using text_insert2.py
When I want to delete the right side of a line with the "del" key. But it adds a character that looks like a square "ٱ" instead of deleting the right side.
Example:
cursor = |
I place the cursor between c and d:
abc|def
Result after pressing the del key three times:
abeٱٱٱ|def
Unfortunately a side effect of this patch breaks the add-ons with drawing code because it changes the distance between line numbers and code(ex in Code Editor are the white-space and indentation helpers positioned off): https://developer.blender.org/D6268
How to reproduce:
Traceback:
Error: Python: Traceback (most recent call last):
File "\Blender\3.6\scripts\addons\code_editor.py", line 925, in invoke
return bpy.ops.ce.scroll('INVOKE_DEFAULT')
File "C:\software\Blender_Launcher\daily\blender-3.6.0-beta+daily.58b5d38824de\3.6\scripts\modules\bpy\ops.py", line 111, in __call__
ret = _op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
RuntimeError: Error: Python: Traceback (most recent call last):
File "\Blender\3.6\scripts\addons\code_editor.py", line 889, in invoke
return self.scroll_timer(context, event)
File "\Blender\3.6\scripts\addons\code_editor.py", line 899, in scroll_timer
nlines = round(0.3 * (center + self.ce.slide - mry) / mlh)
AttributeError: 'CodeEditorMain' object has no attribute 'slide'
Location: C:\software\Blender_Launcher\daily\blender-3.6.0-beta+daily.58b5d38824de\3.6\scripts\modules\bpy\ops.py:111
Hi.
I think that the add-on would be best listed in the Text Editor category.
This way, selecting this category will display all addons that belong to the Text Editor.
Really, really useful add-on, which imo, should be default behavior in the text editor.
I don't know if there are cases where you'll need this combination, but in this situation characters are not doubled):
In combination with the VSE, we have had a lot of discussion on the topic of inclusion of python operators, and one thing the devs for sure will not include are functions which add additional functionalities to existing operators, because they think it is better to improve the operators in C instead.
So I guess is that those wonderful(and much needed) improvements of existing functions of yours may have a better chance as (included)add-ons, which needs manual installation, whereas ex. this insert function doesn't exist in Blender now, so it should be included as default behavior - if you ask me.
[Sorry for all of my ambitions on your behalf. You should do as you like with your work. I'll just happy to encounter your great work here. :-) ]
On a Danish keyboard alt_gr +7/8/9/0 are needed for parentheticals, however with the text_insert2 add-on running it is no longer possible to type parentheticals.
Hi this toggle_hide addon you did is something I truly need for my work in Blender and I deeply appreciate you did it.
But please, it's work just partially. it will hide selected objects, but then in the second press of teh hotkey won't unhide them back.
Maybe because it won't keep teh selection of them - which I can see it in outliner. When I select teh hidden objects manually - it works, but of course toggle reason of this addon is gone... Please, can you fix it?
... all I can say is... WOW!
I have a problem with the AddOn, it doesn't allow bracket/quotation marks matching.
I mean, if I type in eg the (, I don't see a matching ), I need to manually write it.
@K-410 help
Hello.
Strange issue in Blender 3.2.2: it refuse to catch cursor on minimap.
In Blender 3.2.1 it work.
Due to api changes, text_highlight_occurrences.py does not work in Blender 4.0 Release Candidate.
ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR',
POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '2D_UNIFORM_COLOR'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.