THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/05/2005 at 09:12, xxxxxxxx wrote:
Cinema 4D Version: 8.2
Platform: Windows ;
Language(s) : C++ ;
I'm trying to create a track etc, for FocalLength.
Via: op->FindTrack, InsertTrack, etc.
But How do I find the (descID) needed.
Could it be something like descID = DescID(DescLevel(ID_CAMERA_ZOOM,0,0) ?
On 19/05/2005 at 10:48, xxxxxxxx wrote:
DescID(DescLevel(CAMERA_FOCUS), DescLevel(0, DTYPE_REAL, 0))
Usually, you can use the description resource (like Ocamera.res) to get at the description ID definitions. You might also want to set the CAMERA_APERTURE along with this.
In this case, the second DescLevel() exists because I use a generic track/sequence/key creation function. Like this track code section, where id = CAMERA_FOCUS and sid = 0:
// Find Object Track by id/sid
if (!(track = obj->FindTrack(DescID(DescLevel(id), DescLevel(sid, DTYPE_REAL, 0)))))
if (!(track = AllocValueTrack(obj, DescID(DescLevel(id), DescLevel(sid, DTYPE_REAL, 0))))) return ErrorException::Throw(GeLoadString(ERROR_MEMORY_TEXT), "CreateKeys.track");
On 19/05/2005 at 13:04, xxxxxxxx wrote:
Wauw, thanks Robert, its working allright.
I'm recording position and rotation tracks with a similar generic function.
Strange thing is: replay position tracks seems a heavy load.
Deleting the recorded position tracks (HPB) on the fly, immediatly causes a jump up in framespeed. (no matter display quality).
As said I use the same function for recording tracks