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.

custom locactor compute function does not run on time

custom locactor compute function does not run on time

egoldid1
Advocate Advocate
352 Views
3 Replies
Message 1 of 4

custom locactor compute function does not run on time

egoldid1
Advocate
Advocate

Hello, I wrote a locator node. and I think everything is normal. I have some attributes as input attributes and one mesh type attribute as output. When I change inputs, the compute function runs normally. but when I animate input attributes and hit the play button, the compute function does not run.

0 Likes
353 Views
3 Replies
Replies (3)
Message 2 of 4

brentmc
Autodesk
Autodesk

Hi,

Did you look at existing SDK examples of custom locators like the footprintNode?

Also, does your locator update if you disable cached playback or switch evaluation mode to DG?

Brent McPherson
Principle Engineer
Message 3 of 4

egoldid1
Advocate
Advocate

hi, thanks. I checked it again and I think it is like footprintNode example.
Yes it worked when I switch to DG mode. but why? it is not good!!
I had written many locactor node before and I think I had no problem. Now I don't know why it is broken.

Also I have other issues. my locator shape also does not update when camera change:
https://forums.autodesk.com/t5/maya-programming/update-the-locator-node-shape/td-p/12401726

Message 4 of 4

brentmc
Autodesk
Autodesk

Hi,

 

If it works in DG mode but not with EM or caching enabled then it is likely it is an issue in your plugin.
Obviously, if you see the same issues in a sample plugin then it is more likely a bug in Maya.

Here are some whitepapers on EM and caching that explain how they different from normal evaluation which you might find helpful.

 

https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/1cnB97uY8M2yjB1gyDHCuJ.html

Brent McPherson
Principle Engineer