Skip to content

Plug-in functions #335

Closed
Closed

Description

@zmoth

Hello @paceholder, are you going to implement plugins in version 3? I implemented a simple dynamic link library management based on the second version.
https://github.com/QianMoth/nodeeditor-p.git
https://github.com/QianMoth/PluginDemo.git
I wish there was a better solution, preferably one that doesn't rely on node.dll and uses only a few header files when making plug-ins.

你好,你打算在第三版本实现插件功能么?我基于第二版本实现了一个简单动态链接库的管理。
https://github.com/QianMoth/nodeeditor-p.git
https://github.com/QianMoth/PluginDemo.git
我希望有更好的解决方案,最好在制作插件的时候不需要依赖node.dll,只使用少量的头文件。

Activity

  1. isteelcx commented on Nov 28, 2022

    @isteelcx

    @QianMoth 你是不是把翻译软件的中文也粘贴过来了?

  2. paceholder commented on Nov 28, 2022

    @paceholder
    Owner

    Hi @QianMoth ,

    what exactly do you mean under "plugins "? What do your plugins do?

    Thanks for the clarifications

  3. zmoth commented on Nov 28, 2022

    @zmoth
    ContributorAuthor

    Hi @QianMoth ,

    what exactly do you mean under "plugins "? What do your plugins do?

    Thanks for the clarifications

    ummm, My idea is that every node, or every type of node (such as Image Load Node), can be made into a plug-in (a '.dll 'file in windows).
    I can then use the plug-in manager to invoke the DataModelRegistry function to dynamically add or remove new nodes.
    This allows you to add new functionality without changing the code

  4. zmoth commented on Nov 28, 2022

    @zmoth
    ContributorAuthor

    Originally I had two plugins, three nodes. When I removed one of the plug-ins called tcp and reloaded it, I was left with only one node called demo. The same goes for adding nodes

    4a0hr-q0v2d.mp4
  5. paceholder commented on Nov 28, 2022

    @paceholder
    Owner

    Thanks for the video. I think your plugin system lies beyond the scope of the current project. Node editor mainly focuses on graphics and does not imply any logic behind your node model. Your work looks like a good extension to the existing code. Can you just import node editor into your project and extend its classes? For example, you could extend the Node Data Model Registry to make it capable of loading dlls

    What do you think?

  6. zmoth commented on Nov 28, 2022

    @zmoth
    ContributorAuthor

    Thanks for the video. I think your plugin system lies beyond the scope of the current project. Node editor mainly focuses on graphics and does not imply any logic behind your node model. Your work looks like a good extension to the existing code. Can you just import node editor into your project and extend its classes? For example, you could extend the Node Data Model Registry to make it capable of loading dlls

    What do you think?

    Thank you very much for your answer! I will try to do it in the direction you said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions