State:Closed|icon_bug|icon_katana|database:public|Resolution:None|TargetRelease:4.0v6|BugID:94660|
Problem summary
Auto-placement on creation (enabled with Preferences > nodegraph > autoConnectOnCreate) is erroneously affected by the selection state of the newly added nodes. As an example, where there is no current selection, a Macro node that is [theoretically] connectable to itself (it has both input and output ports) and was exported while selected, is placed at a seemingly arbitrary location in the Node Graph instead of being floated: the selected nodes context includes the newly created (and selected) node, resulting in it being placed relative to itself.
Steps to reproduce
Create a node that has an input port and an output port, for example a GafferThree, ensure it is selected, and export it as a Macro (this is done from the Parameter's tab wrench menu).
Close and reopen Katana.
Ensure that Preferences > nodeGraph > autoConnectOnCreate is set to "Yes".
Use the Tab menu to create an instance of the Macro.
Result: The node doesn't float (is not attached to the mouse pointer) and is created at a seemingly arbitrary position in the Node Graph.
Workaround
Export Macros with no nodes selected, or set Preferences > nodeGraph > autoConnectOnCreate to "No".
Reproduced by support
Katana 4.0v4 - Windows 10
Katana 4.0v1 - Windows 10
Katana 3.6v1 - Windows 10
Katana 3.5v1 - Windows 10
Katana 3.1v1 - Windows 10
Katana 3.0v1 - Windows 10
Katana 2.6v1 - Windows 7
Katana 2.5v5 - Windows 7, CentOS7
Katana 2.0v1 - CentOS7
Expected behaviour
The Macro should be [potentially] placed according to the pre-existing node selection state, or otherwise floated.
Actual behaviour
Macros created under certain circumstances are created at a fixed position.
We're sorry to hear that
Please tell us why