Hi Joojaa...
thanks for the interesting ideas.
I'm not sure I completely followed your train of thought. Perhaps I didn't explain myself thoroughly enough. I will try to explain again (apologies for the repetition).
QUOTE(Joojaa @ 07/10/07, 08:17 AM) [snapback]269486[/snapback]
now this will report false for keyable. However set a key using setKeyframe pCube1; well surprise surprise puts a pair blend node gets inserted just like for the constraint, despite the fact that its not settable! This defuncts your theory that settable flag has any affect on this thing.
Just to clarify. After you run the setKeyframe command, getAttr -se pCube1.translateX; will return 1 again.
It is true that you have been able to setKeyframe on an attribute that is not "settable". However, prior to the setKeyframe command it was not possible to change pCube1.translateX in the channelbox without setting a keyframe.
I'm not really interested in the idiosyncrasies of the setkeyframe command, and when it chooses to add pairBlend nodes.
My central question is how can I change to settable parameter of an attribute?
I want to be able to connect the output of my node to, lets say, pCube1.myAttr. And still be able to change pCube1.myAttr in the channelbox without necessarily setting a key.
I'm aware of a few other nodes which function like this, so it should be possible. The nodes that I know of are, The parentConstraint node, the pairblend node and the character node.
here is an example of the character node in action
[codebox]
file -f -new;
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -tx 1 -ch 1;
addAttr -ln testAttr -at double |pCube1;
setAttr -e -keyable true |pCube1.testAttr;
createNode character;
connectAttr -f character1.linearValues[0] pCube1.testAttr;
print "\n";
getAttr -se pCube1.testAttr
[/codebox]
note that testAttr remains editable in the channelbox. also note that when you key testAttr, no pairBlend is created, instead an animcurve node is created an connected to character1.linearValues[0]
Does my question make more sense now?
any further comments idea?
(by the way, thanks for your time so far
)