// ASSETS ----------------------------------------------------------------------------------------------------- /// <summary> /// Get the name of the given node's input. /// </summary> /// <param name="nodeID">Node's ID</param> /// <param name="inputIndex">Index of the input</param> /// <param name="inputName">Input name string</param> /// <returns>True if successfully queried the node</returns> public static bool GetNodeInputName(HAPI_NodeId nodeID, int inputIndex, out string inputName) { inputName = ""; HEU_SessionBase sessionBase = GetOrCreateDefaultSession(); if (sessionBase != null) { HAPI_StringHandle nodeNameIndex; bool bResult = sessionBase.GetNodeInputName(nodeID, inputIndex, out nodeNameIndex); if (bResult) { inputName = GetString(nodeNameIndex); return true; } } return false; }