THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/09/2003 at 11:17, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 7.3
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
I'm trying to port some of my COFFEE plugins from Mac to PC, and a number of them use the following function I got here on plugincafe a while ago:
CheckHierarchy(obj, stopAt)
{
Ê if (!obj) return NULL;
Ê var next;
Ê if (next = obj->GetDown()) return next;
Ê if (next = obj->GetNext()) return next;ÊÊÊ
Ê var up = obj;
Ê while (up = up->GetUp())
Ê {
ÊÊÊ if (up == stopAt) return NULL;
ÊÊÊ if (next = up->GetNext()) return next;
Ê }Ê
}
But on load every plugin containing this function throws up the "Expression expected" error at the first line "if (!obj) ...". What's the problem and how do I fix it?