PDA

View Full Version : custom node/attribute problems


AlexOddbratt
04-16-2006, 06: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.

Buexe
04-16-2006, 08:24 PM
May I suggest to not use nodes of type "unknown" for they are more
of a placeholder type when plug-ins have been unloaded, missing whatever. Maybe you can use some other exotic type, there are lots in the docs to find, to attach your custom attribute to and don`t experience this odd behaviour.

CGTalk Moderation
04-16-2006, 08:24 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.