I am trying to keyframe some parms. I ve been using what I will do in the python shell. But it doesnt compile cause it is telling me that HOM_Parm will accept only BaseKeyframe. I had a look at the HOM_BaseKeyframe.h and I am stuck, cause I cant declare a BaseKeyframe ptr from HOU.
Here the pseudo code.
boost::shared_ptr<HOM_Parm> myParm( HOMdel(hou.node( myCwd ))->parm(channel));
for( int i = 0; i < keyCnt; i++)
{
boost::shared_ptr<HOM_Keyframe> myKeyframe( HOMdel(hou.newKeyframe( value, time ) ));
myParm.setKeyframe( myKeyframe );
}
If anyone has the other approach of setting keys I will be more than glad to hear it.