Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to acquire AEGP_RQM_SessionId for RenderQueueMonitorSuite?

Community Beginner ,
May 20, 2021 May 20, 2021

Hello all! 

 

Currently trying to work with the RenderQueueMonitorSuite. In the documentation here, many of the functions need a sessid of type AEGP_RQM_SessionId. However, I see no way of acquiring the SessionID myself. Am I supposed to create one? If so, what is wrong with my code? I've been working with the Queubert project as template and I've replaced the work it does with this command. 

 

	if (command == S_queuebert_cmd) {
		AEGP_RQM_SessionId      sessid              = 1;
		A_long					rq_item_countL 		= 0L,
								rqMonitorNum        = 0L;
		ERR(suites.RQItemSuite3()->AEGP_GetNumRQItems(&rq_item_countL));
		suites.RenderQueueMonitorSuite1()->AEGP_GetNumJobItems(sessid, &rqMonitorNum);
		std::ofstream MyFile("TESTFILEAE.txt");
		MyFile << rq_item_countL << '\n';
		MyFile << rqMonitorNum << '\n';
		*handledPB = TRUE;
	} else { 
		*handledPB = FALSE;
	}
	return err; 
}

 When this is called, there are 9 Items in the RenderQueue. Checking the file, I can see that rq_item_countL is 9, but rqMonitorNum is 0. Shouldn't these be the same? If anyone has any ideas, thoughts, or insights, please let me know! 

TOPICS
SDK
100
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation