Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Copyright (C) 2013, Niklas Rosenstein
- * All rights reserved.
- **/
- #include <c4d.h>
- class SplineCacheData : public ObjectData {
- public:
- static NodeData* Alloc() { return gNew SplineCacheData; }
- // Overrides: ObjectData
- SplineObject* GetContour(BaseObject* op, BaseDocument* doc, Real lod,
- BaseThread* bt) {
- if (!doc) {
- GeDebugOut("WARNING: No document passed on GetContour()");
- return NULL;
- }
- LONG frame = doc->GetTime().GetFrame(doc->GetFps());
- String name = doc->GetDocumentName().GetString();
- String message = "GetContour() Document name: " +
- doc->GetDocumentName().GetString() + ", frame: " +
- LongToString(frame);
- GeDebugOut(message);
- return NULL;
- }
- };
- Bool PluginStart() {
- return RegisterObjectPlugin(
- 1000002, "Spline Cache Test", OBJECT_ISSPLINE, SplineCacheData::Alloc,
- "", NULL, 0);
- }
- Bool PluginMessage(LONG type, void*pData) {
- return TRUE;
- }
- void PluginEnd() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement