THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/08/2010 at 19:52, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C++ ;
---------
Values stored in private member variables are being cleared between calls to TagData::Execute() when extruding by dragging in the viewport.
I'm testing using this code:
LONG SymmetryClamp::Execute(PluginTag *tag, BaseDocument *doc, BaseObject *op, BaseThread *bt, LONG priority, LONG flags)
{
PolygonObject *polyObj = ToPoly(op);
if(!polyObj) return FALSE;
GePrint("prevCnt_1: " + LongToString(prevCnt));
prevCnt = polyObj->GetPointCount();
GePrint("prevCnt_2: " + LongToString(prevCnt));
return EXECUTION_RESULT_OK;
}
Applying the Extrude tool (Subdivision 0) to a quad on an object with 34 points gives the following results:
Console output for first call
prevCnt_1: 34
prevCnt_2: 38
Subsequent calls
prevCnt_1: 0
prevCnt_2: 38
Last call upon mouse release
prevCnt_1: 38
prevCnt_1: 38
Values are retained when e.g. dragging points or using the knife tool.
Is there a solution to this problem?