THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/09/2003 at 19:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
I'm probably asking the obvious here, but I really haven't been able to find the answers to any of this...
What do I have to do to get generated objects to scale using the "Scale Active Element" tool? Translate and Rotate work fine, but Scale, no... The following code generates an object that won't scale.
BaseObject*
FileAnim::GetVirtualObjects(PluginObject* op, HierarchyHelp* hh)
{
bool dirty = op->CheckCache(hh) || op->IsDirty(DIRTY_DATA);
if (!dirty)
return op->GetCache(hh);
return BaseObject::Alloc(Ocube);
}
And while I'm here:
- how important is it to report on generated object dimensions (ie by overriding the GetDimension() virtual)?
- how does one query the dimensions of an object or collection of objects? (ie, I've just loaded a file using LoadDocument, how do I find out how big what I've loaded is so I can report it in GetDimension()?)
Oh, and ONE LAST THING:
The documentation for BaseObject::CheckCache() says:
"Return TRUE if the cache is valid."
Which is what you'd expect from the method name, however, all the example code says the reverse:
"dirty = op->CheckCache(hh)"
I'm assuming the documentation is wrong?
Thanks.
.angus.