AlexOddbratt
04-16-2006, 05:36 PM
Hi.
I'm having a problem with custom nodes and custom attributes.
Say i create a empty custom node with the command createNode "unknow".
Let's then say i add a float attribute to it with min 0 max 100 and default set to 0.
Then i key the newly created attribute.
Next step is where there's a problem.
Let's say i want to delete the animationcurve that is created when i key the attribute.
What happens is that when i delete the curve the node also get's deleted for some reason.
And it only seems to happen with custom attributes attached to custom nodes.
It just seems stupid that i'll have to break the connection to the animation curve befor i can delete it without deleting the node itself.
If anybody has any idea on a solution to this problem it would be appreciated.
I'm having a problem with custom nodes and custom attributes.
Say i create a empty custom node with the command createNode "unknow".
Let's then say i add a float attribute to it with min 0 max 100 and default set to 0.
Then i key the newly created attribute.
Next step is where there's a problem.
Let's say i want to delete the animationcurve that is created when i key the attribute.
What happens is that when i delete the curve the node also get's deleted for some reason.
And it only seems to happen with custom attributes attached to custom nodes.
It just seems stupid that i'll have to break the connection to the animation curve befor i can delete it without deleting the node itself.
If anybody has any idea on a solution to this problem it would be appreciated.
