Krita 5.2 Manualautomatically. To get these previews with the portable version, also install Krita’s Windows Shell Extension (available on the download page). These files are also available from the KDE download directory file manager shows KRA and ORA thumbnails by default, but Nautilus and its derivatives need an extension. We recommend Moritz Molch’s extensions for XCF, KRA, ORA and PSD thumbnails [https://moritzmolch And then hit Save. Some older versions of Krita have a bug and require you to manually type the extension. If you want to show off your image on the internet, check out the Saving For The Web tutorial0 码力 | 1502 页 | 79.07 MB | 1 年前3
Krita 5.2 브로셔Scripting? 기술 정보 How to make a Krita Python plugin Getting Krita to recognize your plugin Creating an extension Creating configurable keyboard shortcuts Creating a docker PyQt Signals and Slots A note on unit available. How to get to the plugin? Plugins in Krita are either dockers or extensions. If it’s an extension, it will be available in the menu Tools ‣ Scripts. When it’s a docker, you can find it in Settings use your file manager to create one. Scripts are identified by a file that ends in a .desktop extension that contain information about the script itself. Therefore, for each proper plugin you will need0 码力 | 1531 页 | 79.11 MB | 1 年前3
Krita 5.2 中文手册org/krita/html/classExtension.html] 是随 Krita 一起启动 的简单 Python 脚本。它们通过 Extension (扩展) 程序类进行编写。一个最简单 的扩展程序代码如下: from krita import * class MyExtension(Extension): def __init__(self, parent): # This is initialising def setup(self): pass def createActions(self, window): pass # And add the extension to Krita's list of extensions: Krita.instance().addExtension(MyExtension(Krita.instance())) 这段代码并不具备任何功能。一般来说我们会在 之后,你就会发现在工具菜单的脚本里面多了一个叫做“My Script”的操作了。不过它现在还不能够发挥作用,因为我们还没有把它连接到 一个脚本。 现在让我们把它写成一个简单的导出文档脚本。把下面的代码添加到 extension 程序类,确保它位于“Krita.instance()”所在的那行代码前面: def exportDocument(self): # Get the document: doc0 码力 | 1594 页 | 79.20 MB | 1 年前3
Krita 5.2 官方文档中文版 2023-12-08Aorg/krita/html/classExtension.html] 是随 Krita 一起启动的简单 Python 脚本。它们通过 Extension (扩展) 程序类 进行编写。一个最简单的扩展程序代码如下: from krita import * class MyExtension(Extension): def _�init_�(self, parent): # This is initialising def setup(self): pass def createActions(self, window): pass # And add the extension to Krita's list of extensions: Krita.instance().addExtension(MyExtension(Krita.instance())) 这段代码并不具备任何功能。一般来说我们会在 之后,你就会发现在工具菜单的脚本里面多了一个 叫做“My Script”的操作了。不过它现在还不能够发挥作用,因为 我们还没有把它连接到一个脚本。 现在让我们把它写成一个简单的导出文档脚本。把下面的代码添加 到 extension 程序类,确保它位于“Krita.instance()”所在的那行代 码前面: def exportDocument(self): # Get the document: doc0 码力 | 1685 页 | 91.87 MB | 1 年前3
Krita 5.2 官方文档中文版 2023-12-08Aorg/krita/html/classExtension.html] 是随 Krita 一起启动的简单 Python 脚本。它们通过 Extension (扩展) 程序类进行编写。一个最简单的扩展 程序代码如下: from krita import * class MyExtension(Extension): def __init__(self, parent): # This is initialising def setup(self): pass def createActions(self, window): pass # And add the extension to Krita's list of extensions: Krita.instance().addExtension(MyExtension(Krita.instance())) 这段代码并不具备任何功能。一般来说我们会在 之后,你就会发现在工具菜单的脚本里面多了一个叫做“My Script”的操作了。不过它现在还不能够发挥作用,因为我们还没有把它连接到 一个脚本。 现在让我们把它写成一个简单的导出文档脚本。把下面的代码添加到 extension 程序类,确保它位于“Krita.instance()”所在的那行代码前面: def exportDocument(self): # Get the document: doc0 码力 | 1562 页 | 79.19 MB | 1 年前3
Krita 5.1 官方文档中文版 2023-05-26Aorg/krita/html/classExtension.html] 是随 Krita 一起启动的简单 Python 脚本。它们通过 Extension (扩展) 程序类进行编写。一个最简单的扩展 程序代码如下: from krita import * class MyExtension(Extension): def __init__(self, parent): # This is initialising def setup(self): pass def createActions(self, window): pass # And add the extension to Krita's list of extensions: Krita.instance().addExtension(MyExtension(Krita.instance())) 这段代码并不具备任何功能。一般来说我们会在 之后,你就会发现在工具菜单的脚本里面多了一个叫做“My Script”的操作了。不过它现在还不能够发挥作用,因为我们还没有把它连接到 一个脚本。 现在让我们把它写成一个简单的导出文档脚本。把下面的代码添加到 extension 程序类,确保它位于“Krita.instance()”所在的那行代码前面: def exportDocument(self): # Get the document: doc0 码力 | 1547 页 | 78.22 MB | 1 年前3
Krita 5.2 マニュアル
.html] は、Krita の開始時 に実行される、比較的小さな Python スクリプトです。これらは Extension クラスによって作成されます。最小の拡張機能はこのような感じです: from krita import * class MyExtension(Extension): def __init__(self, parent): # これは親クラスを keep this option on. バージョン 5.0 で非推奨: Since Krita 5.0 this has been deprecated, as it now uses a SQLite database for handling the resources, and this cannot be managed by multiple instances. Tools Settings the location of the resource folder and the cache. バージョン 5.0 で追加. Cache Location Sets where the SQLite Database that manages all the resources is located. Resource Folder Sets where the Resource Folder0 码力 | 1591 页 | 79.16 MB | 1 年前3
Krita 4.x 官方文档中文版 2021-08-06A/classExtension.html] 是随 Krita ⼀起启动 的简单 Python 脚本。它们通过 Extension (扩展) 程序类进⾏编 写。⼀个最简单的扩展程序代码如下: from krita import * class MyExtension(Extension): def __init__(self, parent): # This is initialising def setup(self): pass def createActions(self, window): pass # And add the extension to Krita's list of extensions: Krita.instance().addExtension(MyExtension(Krita.instance())) 这段代码并不具备任何功能。⼀般来说我们会在 之后,你就会发现在⼯具菜单的脚本⾥⾯多了⼀个 叫做“My Script”的操作了。不过它现在还不能够发挥作⽤,因 为我们还没有把它连接到⼀个脚本。 现在让我们把它写成⼀个简单的导出⽂档脚本。把下⾯的代码添加 到 extension 程序类,确保它位于“Krita.instance()”所在的那⾏ 代码前⾯: def exportDocument(self): # Get the document: doc0 码力 | 1594 页 | 110.95 MB | 1 年前3
Krita 4.x 官方文档中文版 2021-08-06A/classExtension.html] 是 随 Krita 一起启动的简单 Python 脚本。它们通过 Extension (扩展) 程序类进行 编写。一个最简单的扩展程序代码如下: from krita import * class MyExtension(Extension): def __init__(self, parent): # This is initialising def setup(self): pass def createActions(self, window): pass # And add the extension to Krita's list of extensions: Krita.instance().addExtension(MyExtension(Krita.instance())) 这段代码并不具备任何功能。一般来说我们会在 之后,你就会发现在工具菜单的脚本里面多了一个叫做“My Script”的操作了。不过它现在还不能够发挥作用,因为我们还没有把它连接到 一个脚本。 现在让我们把它写成一个简单的导出文档脚本。把下面的代码添加到 extension 程序类,确保它位于“Krita.instance()”所在的那行代码前面: def exportDocument(self): # Get the document: doc0 码力 | 1373 页 | 74.74 MB | 1 年前3
共 9 条
- 1













