Ejemplo n.º 1
0
        private int get_object_id(mm.RemoteControl rc, string name)
        {
            StoredCommands sc  = new StoredCommands();
            uint           key = sc.AppendSceneCommand_FindObjectByName(name);

            rc.ExecuteCommands(sc);
            any_result r   = new any_result();
            bool       bOK = sc.GetSceneCommandResult_FindObjectByName(key, r);

            return((bOK) ? r.i : -1);
        }
Ejemplo n.º 2
0
        public int FindObjectByName(string name)
        {
            StoredCommands sc  = new StoredCommands();
            uint           key = sc.AppendSceneCommand_FindObjectByName(name);

            ExecuteCommands(sc);
            any_result r   = new any_result();
            bool       bOK = sc.GetSceneCommandResult_FindObjectByName(key, r);

            if (bOK)
            {
                return(r.i);
            }
            else
            {
                return(-1);
            }
        }