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/34375492-eea9-4bfd-895e-ca0239479d9a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
