Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
7.03k stars 382 forks source link

request: integrate it as an addon #11

Closed blurymind closed 2 years ago

blurymind commented 4 years ago

This would really make this worthwhile using over other tools, as it would allow us to create and edit sprites directly inside godot without leaving the ide

OverloadedOrama commented 4 years ago

I'm currently focused on adding more functionality to make it more usable, and attempt to add stuff that are important but currently missing, like Undo/Redo (see #8). After that, I will attempt to make Pixelorama a Godot plugin, because I'm definitely interested in doing that and, from what I've seen, a lot of people want that too.

novhack commented 4 years ago

I am going to oppose this idea. Godot IDE is already filled with a lot of docks and tabs and adding more would bring no benefits to just switching windows. I would be more glad if Pixelorama remained as a stand alone software that anyone can use, not just Godot developers.

OverloadedOrama commented 4 years ago

I am going to oppose this idea. Godot IDE is already filled with a lot of docks and tabs and adding more would bring no benefits to just switching windows. I would be more glad if Pixelorama remained as a stand alone software that anyone can use, not just Godot developers.

I understand your point of view. I also prefer Pixelorama being a stand-alone, so everyone can use it without needing Godot. However, I would also like to see it being available as a plug-in, for those who prefer it. Making Pixelorama a plug-in is not my current focus, but I will most likely experiment with it in the future, probably once the features and the UI are finalized.

blurymind commented 4 years ago

my thought was that the addon does not embed it, but rather launches the editor in a new window.

The addon just lets you create a new resource in a click, which triggers opening the sprite editor. It also lets you edit any animations sprites in a click.. it just adds a open with pixelorama and create with pixelorama buttons where useful. Then pixelorama does its thing in a new window. When saving, godot will reload the sprites

mystchonky commented 4 years ago

I have been thinking about this for a while now. Godot plugin API is incomplete right now. So embedding the app isn't possible at all (until 4.0). Since tabs were added recently, opening existing files is relatively simple but opening a file in existing instance is not possible until we setup a server like this.

jegor377 commented 4 years ago

I have been thinking about this for a while now. Godot plugin API is incomplete right now. So embedding the app isn't possible at all (until 4.0). Since tabs were added recently, opening existing files is relatively simple but opening a file in existing instance is not possible until we setup a server like this.

We can use TCPServer. No need for UDP. :)

blurymind commented 4 years ago

I recently saw a video comparing godot to game maker and one of the points was that gamemaker is better for prototyping because it has an integrated pixel editor. :) if pixelorama could run inside godot, it would make it fantastic for prototyping https://www.youtube.com/watch?v=3KKeFK0NHc8

electronstudio commented 3 years ago

What is current status? Anyone working on this?

novhack commented 3 years ago

As far as I know none of the contributors focuses on this right now. I think the current focus is on making Pixelorama somewhat feature complete as a standalone app that anyone can use even if they don't develop in Godot or make games.

mystchonky commented 3 years ago

I started working on this just a couple of days ago. After some testing, I found that plugins and the game use the same Autoload-singleton and Input maps. This might create some conflicts with the existing game. I haven't found a way to separate them or constraint them to the "plugin workspace" . Also , Pixelorama is very mature and uses a lot of custom Menus and similar UI which won't fit in Godot (in my opinion). So having Pixelorama independent of Godot Editor is the way to go.

Instead we can have some sort of protocol along with a helper plugin in Godot which will facilitate communications. This way other programs can leverage it also. For example: Other engines, say Unity , can have some sort of plugin to connect with Pixelorama.

electronstudio commented 3 years ago

Having it integrated would be very useful for education where students would only need to download one program and not two.

Would a layout like this not fit?
image

blurymind commented 3 years ago

I would like it yes. It can work well as a tab imo. The key here is how seamless it is to edit/create sprites. Is it a button away or many clicks away?

Technohacker commented 3 years ago

In the meantime, I've made an import plugin that lets you use .pxo project files as images in Godot without manually exporting to PNG. All you'd need to do is save the project file and Godot will auto-import it :)

novhack commented 3 years ago

In the meantime, I've made an import plugin that lets you use .pxo project files as images in Godot without manually exporting to PNG. All you'd need to do is save the project file and Godot will auto-import it :)

I like this approach much more. Godot makes it possible to set an external editor for scripts so I wonder if the same API can be used in the plugin to do such assignments for .pxo files. So they could be opened in Pixelorama directly from Godot's file system panel.