← All ideas
  • Published 5 Dec 2023

Execute code after enter not paste code in console

Right now Blender Execute code after paste in consolem this prevent edit code before execution and modify, eg. not modified code can give error or hange Blender if loop error, et.c

Option as execute after paste can be as option or as select from context menu not default option.

Ps. Category API in RCS is required.

0%

Development Status: Open

Upvote 0 Downvote 0
ManBlender
5 Dec 2023

2 Comments

Lauloque

AFAIK the console works as any python console, only the last line can be edited. If you paste a multi-line script, it will enter the first ones and leave you to the last. I'm not sure if this can be changed easily by Blender's dev, and I'm even more doubtful it being needed since we have a text editor very well suited for light scripting.


I don't think we need an "API" category when we have "Scripting".

ManBlender Author

Interactive console can give option to access for required objects and test then as something like debug type. Operating via editor is not so comfy I thin. Even can be pasted multiline code wait for enter have sense to edit some vars, or something, eg. more easy to see what was pasted to execute.