Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

update the Locator node shape

update the Locator node shape

egoldid1
Advocate Advocate
248 Views
0 Replies
Message 1 of 1

update the Locator node shape

egoldid1
Advocate
Advocate

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);

 

0 Likes
249 Views
0 Replies
Replies (0)