Message 1 of 1
update the Locator node shape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. I wrote a Locator shape node. I want my Locator to be updated when my camera changes.
I wrote the code below in the addUIDrawables part, but it work wrong, it do not update:
MFnCamera fnCamera(camera);
centerPos = fnCamera.eyePoint(MSpace::kWorld);
MVector len = centerPos - pLocatorData->pointPos;
drawManager.sphere({ 0,0,0 }, pointRadius * len.length() * 0.01, true);