On 12/09/2016 at 16:00, xxxxxxxx wrote:
Hi all,
I'm struggling with the following simple scenario:
- simple plane polygon object
- deformed by bend deformer
- material is assigned to the plane, limited by a selection tag
Now I increase the selection by selecting a few more polygons and clicking "set selection". The selection tag has been successfully updated with the new polygons ... BUT the material isn't updated on these new polygons in the viewport. Only disabling the bend deformer and re-enabling it updates the material properly in the viewport.
Also "view > redraw" updates the material properly.
These "update procedures" are only necessary while any deformer is involved.
How can I achieve the correct viewport update using python ? So far I've tried this:
c4d.DrawViews( c4d.DA_ONLY_ACTIVE_VIEW | c4d.DA_NO_THREAD | c4d.DA_NO_REDUCTION | c4d.DA_STATICBREAK )
polymesh.Message(c4d.MSG_UPDATE)
c4d.EventAdd()
... without any success :-(
Can anyone help ?
regards,
Jens