ynput / ayon-houdini

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

Create Creator via TAB with null, keep null selected #125

Closed BigRoy closed 1 month ago

BigRoy commented 1 month ago

Changelog Description

When creating a ROP using a Creator from the TAB menu in the node network it'd select the ROP node after placing down the Null. This was quite confusing because it'd take you out of your working area UNLESS you had your current panel "pinned" explicitly.

With this change, we instead keep the Null selected (since it'll be preconfigured on the ROP anyway) so that you can still continue to work where you were and deal with the ROPs later.

Additional info

This may be nice to expose in settings to 'toggle' the behavior. But it may actually be more of a user preference than studio preference?

Testing notes:

  1. Go to /stage
  2. Press TAB
  3. Use Create USD

image

  1. Place the null.
  2. The null should remain selected.
MustafaJafar commented 1 month ago

I like it! I wonder now, why don't we have that by default.

My main concern is to acknowledge users that a rop node was created. so what about flashing messages? image

from ayon_houdini.api.lib import get_scene_viewer

scene_viewer = get_scene_viewer()
message = "ROP node is created"
scene_viewer.flashMessage("", message, duration=2.0)