THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/11/2003 at 18:35, xxxxxxxx wrote:
Cinema 4D Version: 8.207
Platform: Mac OSX ;
Language(s) : C++ ;
The Touch function does not seem to work as described in the documentation when used inside the GetContour function.
_The dependence lists are functions that help make life easier, but you can go low level also. If you don't want to use dependence lists you can do the following:
for (...go through all objects replaced by the generator...)
if (obj->__<_a class=linkfn href= "file:///d:/applications/maxon/r8sdkhtml2003-05-12/pages/c4d_baseobject/class_baseobject42.html#isdirty56"_>_SPAN title=Bool BaseObject::IsDirtyLONG flags"> color=#800080 face=Courier New">IsDirtySPAN class=silentDIRTY_DATA DIRTY_MATRIX/SPAN/SPAN _) // if object has changed since the
last time this routine was called
dirty = TRUE; // cache needs to be rebuilt
// by the parameter you can control if you want to change if the
content/structure has been changed (DIRTY_DATA), the matix (DIRTY_MATRIX) or both
op-><_<_a class=linkfn href= "file:///d:/applications/maxon/r8sdkhtml2003-05-12/pages/c4d_baseobject/class_baseobject42.html#touch60"_>_60">SPAN title=void BaseObject::Touchvoid"> color=#800080 face=Courier New">TouchSPAN class=silentobj/SPAN/SPAN _; // mark object as 'used by generator'.
if (!dirty) return op-&_<_a class=linkfn href= "file:///d:/applications/maxon/r8sdkhtml2003-05-12/pages/c4d_baseobject/class_baseobject42.html#getcache47"_>_ache47">SPAN title=BaseObject BaseObject::*GetCacheHierarchyHelp *hh=NULL"> color=#800080 face=Courier New">GetCacheSPAN class=silenthh/SPAN/SPAN _;
I really needs this to work within the GetContour function as that is the only way to make a plugin object generator that returns as a spline type ( not a plugin object ). My most basic need is to make the input source objects to the generator be hidden from editor views and renders.
On 12/11/2003 at 22:16, xxxxxxxx wrote:
Last I looked there were some limitations with GetContour() compared to GetVirtualObject(). This might be one of them. In my spline plugin (Helix) I stick to the latter. Any other object that wants to handle for example spline instances as input must be able to handle splines from a not-OBJECT_SPLINE generator anyway.
When darf mentioned this in the past he said that he had found some objects that didn't accept not-OBJECT_SPLINE splines, but I never managed to find out which they were. If you could tell me I'll see if that's a bug.
On 12/11/2003 at 22:43, xxxxxxxx wrote:
Please suggest that GetContour would be passed HierarchyHelp and allow the Touch function to work appropriately. Touch doesn't seem to do anything from GetContour. This seems like a flaw.
On 13/11/2003 at 07:16, xxxxxxxx wrote:
I'll pass the suggestion along.