- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on a custom locator that has "inputMesh" and "faceIDs" (an intArray) attributes. I am using those inputs to draw the faces with the given face IDs. I have this working but I want to speed it up by caching the vertices of the triangles that I need to draw, so that I don't need to re-evaluate that data in "prepareForDraw". At the moment I'm trying to use the setDependentsDirty method to flag which plugs have been edited, and then store the data we get from the plugs in "prepareForDraw" the first time we evaluate or any time the faceIDs attribute is changed. But I cannot access the data I stored from inside the "prepareForDraw" method. I tried turning the dagPath into an mObject and casting it as my MpxLocator class, but that didn't work.
Is there an alternative method I can use?
Solved! Go to Solution.