|
Hello.
I am writing export plugin. I have to know when object was deleted or changed some of it’s properties.
As I understand there are two way to do this. First way is to use Callback function. But it don’t tell when objects or materials changes.
Second way is to use ReferenceTarget - ReferenceMaker system.
Should I create class that inherit from ReferenceTarget or it must be only plugin?
I try create such class
class ObjectListener: public ReferenceTarget {
public:
ObjectListener()
~ObjectListener()
int NumRefs()
RefTargetHandle GetReference(int i)
void SetReference(int i, RefTargetHandle refTarget)
RefResult NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message)
private:
RefTargetHandle m_target;
};
And than set reference for first node.
listener.SetReference(0, i->GetRootNode()->GetChildNode(0))
But “listener” object don’t receive message when node is
|
|
|
|
I think your pose was cut short.
When node is what?
Christopher Diggins, M&E SDK Specialist
For 3ds Max SDK questions also check out http://stackoverflow.com/questions/tagged/3dsmax
|
|
|