OpenHoudini() public static method

public static OpenHoudini ( string args ) : bool
args string
return bool
Exemplo n.º 1
0
        /// <summary>
        /// Launch Houdini with SessionSync enabled and return true if successful.
        /// </summary>
        bool OpenHoudini()
        {
            string args = "";

            // Form argument
            if (_sessionMode == SessionMode.Pipe)
            {
                args = string.Format("-hess=pipe:{0}", _pipeName);
            }
            else
            {
                args = string.Format("-hess=port:{0}", _port);
            }

            Log("Opening Houdini...");

            if (!HEU_SessionManager.OpenHoudini(args))
            {
                Log("Failed to start Houdini!");
                return(false);
            }

            Log("Houdini started!");

            return(true);
        }