DrawView update ISSUE
I am developing a kind of, simple, "tweak tech" as follows:
The second selected "tweak point" coordinates are used to place the first selected "tweak point" so
both points result at the same coordinate, then the modeling command c4d.MCOMMAND_OPTIMIZE is called,
sometimes "artifacts" lines appears, I noted such lines always point to "wolrd axis".
when zoomming (finger mouse wheel) such lines desappear as shown in the .gif file,
I have tried the following with little effect:
Is the an effective way for updating the view?
thanks in advance.
# The call secuence as follows: def MouseInput(self, doc, data, bd, win, msg): ... def ExecuteTweak(self, bd): ... self.DataDict[TP_Object].SetPoint(...) # setting the point at the second point coordinate self.DataDict[TP_Object].Message(c4d.MSG_UPDATE) ... self.Optimize() # OptimizeSettings[c4d.MDATA_OPTIMIZE_UNUSEDPOINTS] = False c4d.DrawViews(c4d.DRAWFLAGS_FORCEFULLREDRAW, bd) c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
image at sdk_support(at)maxon(dot)net