Giter Club home page Giter Club logo

blender-scripts's People

Contributors

eugenedudavkin avatar j6k4m8 avatar k-410 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blender-scripts's Issues

"items" can become empty after f8 ?

while items:
if isinstance(bpy.context, _RestrictContext):
break
try:
text = items.pop()
scrollback(c_dict, text=text, type=type)
ok = True
except RuntimeError:
ok = False
break
if not ok:
if text:
items.insert(0, text)
return delayed_scrollback("\n".join(items), c_dict, type)

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

nortikin/sverchok#2884

code editor error on disabling addon in blender 3.6

Way to reproduce:

  1. Start blender with addon already activated
  2. Try to disable it

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'

text_insert2.py

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

code editor is crashing in blender 3.6

How to reproduce:

  1. Open text editor
  2. create new text file
  3. try to type

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

Insert 2

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):

brackets

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. :-) ]

text_insert2 breaks Alt_gr keypresses

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.

toggle_hide will hide but not unhide - Blender 2.91 - 2.92

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?

Bracket matching doesn't work

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

Local Scene

When running Local Scene I get this error:
image

I'm a bit curious it this add-on can be used as a workaround for the current limitation in the Sequencer where scene strips can't be added from the same scene as the Sequencer is located in?

Add Blender 4.0 support

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.