Nuke: menu workfile position and publish attr fix
- workfile position was changed for a reason, so lets put this back
- publish callback on instance publish change is not working
diff --git a/openpype/hosts/nuke/api/__init__.py b/openpype/hosts/nuke/api/__init__.py
index c80507e7ea..bd7a95f916 100644
--- a/openpype/hosts/nuke/api/__init__.py
+++ b/openpype/hosts/nuke/api/__init__.py
@@ -106,7 +106,7 @@ def on_pyblish_instance_toggled(instance, old_value, new_value):
     log.info("instance toggle: {}, old_value: {}, new_value:{} ".format(
         instance, old_value, new_value))
 
-    from avalon.api.nuke import (
+    from avalon.nuke import (
         viewer_update_and_undo_stop,
         add_publish_knob
     )
diff --git a/openpype/hosts/nuke/api/menu.py b/openpype/hosts/nuke/api/menu.py
index 2317066528..021ea04159 100644
--- a/openpype/hosts/nuke/api/menu.py
+++ b/openpype/hosts/nuke/api/menu.py
@@ -26,9 +26,9 @@ def install():
     menu.addCommand(
         name,
         workfiles.show,
-        index=(rm_item[0])
+        index=2
     )
-
+    menu.addSeparator(index=3)
     # replace reset resolution from avalon core to pype's
     name = "Reset Resolution"
     new_name = "Set Resolution"
@@ -63,28 +63,28 @@ def install():
     # add colorspace menu item
     name = "Set Colorspace"
     menu.addCommand(
-        name, lambda: WorkfileSettings().set_colorspace(),
-        index=(rm_item[0] + 2)
+        name, lambda: WorkfileSettings().set_colorspace()
     )
     log.debug("Adding menu item: {}".format(name))
 
-    # add workfile builder menu item
-    name = "Build Workfile"
+    # add item that applies all setting above
+    name = "Apply All Settings"
     menu.addCommand(
-        name, lambda: BuildWorkfile().process(),
-        index=(rm_item[0] + 7)
+        name,
+        lambda: WorkfileSettings().set_context_settings()
     )
     log.debug("Adding menu item: {}".format(name))
 
-    # add item that applies all setting above
-    name = "Apply All Settings"
+    menu.addSeparator()
+
+    # add workfile builder menu item
+    name = "Build Workfile"
     menu.addCommand(
-        name,
-        lambda: WorkfileSettings().set_context_settings(),
-        index=(rm_item[0] + 3)
+        name, lambda: BuildWorkfile().process()
     )
     log.debug("Adding menu item: {}".format(name))
 
+
     # adding shortcuts
     add_shortcuts_from_presets()
 
['openpype/hosts/nuke/api/__init__.py', 'openpype/hosts/nuke/api/menu.py']