I tried again the first example. drawing only a simple circle, but nothing it is still slow.
Can you suggest to me a way to create a custom shape face the camera? In the attachment a snapshot of the my custom locator The scene becomes slow with 40 locators :( <https://lh3.googleusercontent.com/-jK6YUAX6Adk/WETDHRLJNDI/AAAAAAAAcsc/bfu7ICLglr0zYRtts04h873SYG2QaaApQCLcB/s1600/Screen%2BShot%2B2016-12-05%2Bat%2B02.25.13.png> On Sunday, December 4, 2016 at 11:10:43 PM UTC+1, Chad Vernon wrote: > > The problem with the first example is that getMultiplier function. It's > reading the plug value to get the multiplier and is called in both the > boundingBox function and prepareForDraw function. The second example looks > like it caches the plug values and only reads them when they change. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f5da8b29-7045-4376-b3b7-9cf188f9a406%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
