miarmy
2018-11-01 19:05:02 UTC
hi!.my node has this attribute:
MFnCompoundAttribute compoundAttr;
MFnNumericAttribute numericAttr;
compoundsGRPAttr = compoundAttr.create("compounds", "comps");
compoundAttr.setArray(true);
indexAttr = numericAttr.create("index", "index", MFnNumericData::kInt, 0.0);
compoundAttr.addChild(indexAttr);
stat = addAttribute(compoundsGRPAttr);
if (!stat) { stat.perror("addAttribute"); return stat; }
now, i want run one function when, one plug, connected to indexAttr... how
can i do it? (c++ api)
and how i can connect the one node plug(the specified plug) to one of
indexAttrs?
Excuse me,I don't speak English as well as you....
MFnCompoundAttribute compoundAttr;
MFnNumericAttribute numericAttr;
compoundsGRPAttr = compoundAttr.create("compounds", "comps");
compoundAttr.setArray(true);
indexAttr = numericAttr.create("index", "index", MFnNumericData::kInt, 0.0);
compoundAttr.addChild(indexAttr);
stat = addAttribute(compoundsGRPAttr);
if (!stat) { stat.perror("addAttribute"); return stat; }
now, i want run one function when, one plug, connected to indexAttr... how
can i do it? (c++ api)
and how i can connect the one node plug(the specified plug) to one of
indexAttrs?
Excuse me,I don't speak English as well as you....
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d0774e94-0c49-453f-8d95-f295be8007e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d0774e94-0c49-453f-8d95-f295be8007e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.