Update Editorview

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/02/2007 at 08:00, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9.6 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,

I have an object and a shader communicating with each other. The shader is drawing the stuff that the object generates. Now, when the object changes the shader correctly updates but the view is not updated.

Moving the camera slightly helps but it´s a little annoying. What is the usual place to call another DrawViews or so so the shader can update?

In GetVirtualObjects I cannot do it because that´s threaded.

Thanks
Samir

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/02/2007 at 11:26, xxxxxxxx wrote:

Howdy,

I'm not sure, but I had all kinds of DrawViews() updating problems when testing my plugins in R10. My solution was to add an EventAdd(EVENT_FORCEREDRAW) after the DrawViews(), in some cases I just replaced the DrawViews() with it.

I wonder if that would also help you out in your situation?

Adios,
Cactus Dan

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/02/2007 at 12:24, xxxxxxxx wrote:

Hi Cactus Dan,

thanks, but the problem is not the update event itself but how and where to call it, when you are actually in GetVirtualObjects(). 🙂

Adding Events and DrawView calls are not allowed for threaded functions. But in this very second I have an idea. I simply store a variable in my class and will call the update later. 🙂

thx anyway
Samir