Priority: PriorityData and PriorityList
-
Hello,
I think dealing with priorities in expression tags is quiet simple. First level order from Initial to Generators and the second level order from lower integers to higher.
I have an objectData and for example I want it to execute between Generators -5 and Generators -3. How can I get the plugin working exectly at the point Generators -4?ObjectData.AddToExecution(op, PriorityList) / PriorityList.Add(node, priority, flags):
- priority -> totally clear
- flags -> absolutly not clear, it isn´t equal to the PRIORITYVALUE_PRIORITY integer of a priorityData, right?
Thx alot
rownn -
Hi @rownn
I would like to point you to Q&A New Functionality and How to Post Questions especially the tagging part, please correct your post.
Regarding your questions.
EXECUTIONPRIORITY_XXX constants are actually the int value of the priority. So if you want to do Generator - 4 you simply have to passEXECUTIONPRIORITY_GENERATOR - 4
Then the flag passed in PriorityList.Add method is the flag passed to the Execute method to determine from the execute which kind of execution you are currently doing. This is mostly to identify which call you are currently doing (Execute can be called multiple time).
Finally, changing the priority only affect when the Execute method is called, GetVirtualObject or any other methods are not delayed.
If you have any question, please let me know.
Cheers,
Maxime. -
Hi @rownn, does my previous post, answers your question? If so, please turn this topic as solved.
Cheers,
Maxime. -
Hi m_adam,
thank you very much for the enlightenment on priorities, it helps alot, and sorry for my late reply.
Greetings and thx again
rownnPS: I´ll keep the pointed way of posting in mind.
-
@rownn said in Priority: PriorityData and PriorityList:
Hi m_adam,
thank you very much for the enlightenment on priorities, it helps alot, and sorry for my late reply.
Greetings and thx again
rownnPS: I´ll keep the pointed way of posting in mind.
Hello @rownn
This is another question. I am writing here because there is no way to contact you. You are the developer of "Rounded Corner (c4dnetwork)". Would you make it run on R25?