unsigned SOP_PrimGroupCentroid::disableParms() { fpreal t = CHgetEvalTime(); unsigned changed; int mode; OP_Node *bind_input; // Partitioning mode. mode = MODE(t); // Try to get the 2nd input. bind_input = getInput(1); // Only use the 'group' parm when doing a group operation. changed = enableParm("group", mode == 0 && bind_input == NULL); // Enable the 'store' parm when there is no 2nd input. changed += enableParm("store", bind_input == NULL); // Enable thavior' parm when there is a 2nd input. changed += enableParm("behavior", bind_input != NULL); changed += enableParm("attributes", bind_input == NULL); changed += enableParm("bind_attributes", bind_input != NULL); return changed; }
unsigned SOP_Ocean::disableParms() { unsigned changes = SOP_Node::disableParms(); changes += enableParm("normals_toggle",CHOP(0) ? 0 : 1); return changes; }