ynput / ayon-houdini

Houdini addon for AYON
Apache License 2.0
11 stars 9 forks source link

Reflect node types or representations in publish families #176

Open MustafaJafar opened 1 week ago

MustafaJafar commented 1 week ago

Is there an existing issue for this?

Please describe the feature you have in mind and explain what the current shortcomings are?

Publish families should match node types, like rop.flipbook for flipbook nodes and rop.opengl for OpenGL nodes. This method lets us target plugins to specific node types.

Here are more examples:

Suggested implementation?

Could we use callbacks for this purpose?

Or should we update the get_publish_families method? Or should we update collect_instances?


I think updating the get_publish_families method where we pass the created node can be helpful. we already have access to the creator identifier and product_type via self.

Additional Info

This topic was mentioned in this comment https://github.com/ynput/ayon-houdini/pull/167#discussion_r1844951027 to reflect the node type in families.

Describe alternatives you've considered:

No response

MustafaJafar commented 1 week ago

This issue might seem similar to https://github.com/ynput/ayon-houdini/issues/177. However, it doesn't involve any value changes since it's based on the node type at creation.