I have one question that I have not been able to find a conclusive answer to.
When working with a given application, I am looking for a way to limit the 3D aware capabilities of the puck to only work if a certain window of the application is active. If other windows of the same application are active, the puck should always fire keyboard keys.
Lets for example say the application in question is Autodesk Maya, therefore the 3D navigation capabilities of the puck should only work if the main window of Maya is active, which has the substring - Autodesk MAYA 2023 somewhere in the windows caption.
Through reading THIS thread and this one HERE I discovered the <WindowCaption> element and I was able to build a working example of the 3D navigation capabilities only working when the main maya window is active. When the Script Editor window is active, the puck triggers keyboard keys. I achieved this through 2 XML files.
Maya.xml:
Code: Select all
<AppInfo>
<Signature>
<Name>STR_MAYA</Name>
</Signature>
<Options />
</AppInfo>
<CfgProperties>
<ID>ID_STR_MAYA</ID>
<Name>STR_MAYA</Name>
<InheritsFromID>ID_STR_MAYA</InheritsFromID>
</CfgProperties>
<Devices>
<Device>Code: Select all
<AppInfo>
<Signature>
<ExecutableName>maya.exe</ExecutableName>
<WindowCaption SubStringLocation="AnyWhere">Script Editor</WindowCaption>
</Signature>
<Options />
</AppInfo>
<CfgProperties>
<ID>ID_STR_MAYA</ID>
<Name>STR_MAYA</Name>
<InheritsFromID>ID_STR_MAYA</InheritsFromID>
</CfgProperties>
<Devices>This is daunting, as there are allot of windows in Maya, furthermore I wish to implement this idea into many other 3DX aware software's that I use.
Also, I am assigning the same keyboard keys to all the axis, so no matter what window is active, the same set of keyboard keys are always being fired, This is true even across applications.
So the question I have is, for example in Maya, is it possible to get the puck to only perform 3D navigation if a window with the substring - Autodesk MAYA 2023 is active, otherwise, always fire keyboard keys?
This way, I need to only define two .xml files:
- Maya.xml
- Maya Editors.xml
Then, to implement this idea into other software's that supports 3DX devices, I would only need two Xml files: ThisSoftware.xml and ThisSoftware Editors.xml
Any help into finalising the long held dream of mine, would be greatly appreciated!
