# objects whose property is manipulated by AnimationCue don't response to the callback , but this callback response in common render. How can I make this callback respose properly in AnimationCue ?

**URL:** https://discourse.vtk.org/t/objects-whose-property-is-manipulated-by-animationcue-dont-response-to-the-callback-but-this-callback-response-in-common-render-how-can-i-make-this-callback-respose-properly-in-animationcue/5419
**Category:** Support
**Created:** [March 22, 2021, 12:02pm UTC](https://discourse.vtk.org/t/objects-whose-property-is-manipulated-by-animationcue-dont-response-to-the-callback-but-this-callback-response-in-common-render-how-can-i-make-this-callback-respose-properly-in-animationcue/5419 "2021-03-22T12:02:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pi42](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pi42/32/3170_2.png) [@pi42](https://discourse.vtk.org/u/pi42)
#### Post date: [March 22, 2021, 12:02pm UTC](https://discourse.vtk.org/t/objects-whose-property-is-manipulated-by-animationcue-dont-response-to-the-callback-but-this-callback-response-in-common-render-how-can-i-make-this-callback-respose-properly-in-animationcue/5419/1 "2021-03-22T12:02:51Z")

</div>

class CurtainAnimationCue : public vtkAnimationCue  
{  
public:  
static CurtainAnimationCue \* New() { return new CurtainAnimationCue; };  
vtkTypeMacro(CurtainAnimationCue, vtkAnimationCue);

public:  
CurtainAnimationCue()  
{

```
};

~CurtainAnimationCue() {};

virtual void TickInternal(double currenttime, double deltatime, double clocktime) override
{
	// manipulations
};
void SeBoxWidget2(vtkSmartPointer<vtkBoxWidget2> BoxWidget)
{
	this->beforeBoxWidget = beforeBoxWidget;
};

```

private :  
vtkSmartPointer BoxWidget;

};

class vtkCurtainClipCallback : public vtkCommand  
{  
public:  
static vtkCurtainClipCallback \* New() { return new vtkCurtainClipCallback; }  
void Execute(vtkObject\* caller, unsigned long eventId, void \*callData)  
{  
vtkBoxWidget2 \* curtainClipBeforeBox = vtkBoxWidget2::SafeDownCast(caller);  
// callback  
}

protected:  
vtkCurtainClipCallback()  
{

```
};
~vtkCurtainClipCallback()
{
}

```

private:  
vtkSmartPointer BoxWidget;

};
