On 12/04/2014 at 05:56, xxxxxxxx wrote:
I have a SplineControl CustomGui in a dialog and it is working fine.
Now I want to react when the spline is changed. Thus when a knot position or tangent has changed.
What I want to do is to react on the mouse release after a splinecontrol event.
Everything is ok, except I receive 2 releases?
I am wondering why I "receive" 2 releases?
def Command(self, id, msg) :
if (id == MY_SPLINE) :
bc = c4d.BaseContainer()
if self.GetInputState(c4d.BFM_INPUT_MOUSE, c4d.BFM_INPUT_MOUSELEFT, bc) :
if not bc.GetBool(c4d.BFM_INPUT_VALUE) :
print "Left mouse released. Start processing."