c4d.IsCommandChecked(430000021) returns False
On 19/07/2016 at 16:20, xxxxxxxx wrote:
I'm checking if the Interactive Render Region option is on by using the command:
from within the Execute method of my tag.
It returns False, even if the Interactive Render Region is on.
And it only returns True if I drag an object or change the view from the viewport camera.
Shouldn't it ALWAYS return True if the command is checked?
On 19/07/2016 at 16:36, xxxxxxxx wrote:
Ok, I found a way:
Although, I still think that the IsCommandChecked should return consistent results.
On 20/07/2016 at 02:04, xxxxxxxx wrote:
IsCommandChecked()_ (like the other "Command" related functions) can only be executed from the main thread. The "Execute" function of a tag is mostly not executed from the main thread but from a different thread so you cannot use such "Command" functions in this context.