08-10-2023, 03:47 PM
I found code for the SDK and adapted that to CORE.
clipMask is the clipping path and objGrp is the group that contains all of the paths.
clipMask is the clipping path and objGrp is the group that contains all of the paths.
Code:
clipMask.reorder(hdi::core::PlaceInsideOnTop, &objGrp);
objGrp.setIsClipGroup(true);
clipMask.setAttribute(hdi::core::ArtAttrIsClipMask, true);