Notifications
Clear all

[Closed] nodeEventCallback and Target Camera Issue

Hi guys,

I’ve got a slight issue with nodeEventCallback, and I’m not sure if it’s a bug or if it’s intended behaviour.

When I create a camera, various events fire including #added.
When I delete the camera or it’s target, or both, various events fire including #deleted.

When I go to the camera properties and change a free camera to a target camera, the #added event fires.

But when I go to a target camera’s properties and change it from target to free, the #deleted event does not fire. Instead a few other events fire and the target object obtained through it’s handle is $<unknown>:Camera001.Target @ [39.496803,-60.025028,0.000024]

Has anybody else experienced this problem?

Here’s the code:


global nodeECBtest

function stuff s e = (
	for a in e do print (getAnimByHandle a)
	print s
)

nodeECBtest = nodeEventCallback all:stuff

/*
nodeECBtest = undefined
gc light:true
*/