> > what a lot of python programmera forget is that you are doing work inside > a dcc and thus you need to take the time to learn/ master this platform > before coding thing yourself or try to fight it
I agree absolutely! Code reuse is a must if it exists. From a pipeline development perspective, most of the time you have to write DCC (and also at times Platform) agnostic code. In such cases, you usually end up better writing generic code that works out of the box (and hopefully using native language libs) or a limited use of native API wherever you need it. This way your code runs everywhere and you have better opportunities of writing flexible, customizable and extendable code. It all depends on what the end goal is. But again I do agree that one must have a good grasp of native DCC API's as well. I would use DCC native libs for DCC specific code which covers the application idiosyncrasies (for example when you need to access application features like DAG node attributes and scene graph modification in maya) and for rest of it I would try to write my own using native python libs and features. On Sat, May 20, 2017 at 3:20 AM, Cedric Bazillou <[email protected]> wrote: > Usually as a maya developper I tried to use what comes from the API... >> > > http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__cpp_ > ref_class_m_bounding_box_html > > the MBoundingbox class provides 2 useful methods : contains and intersect > ( one if for point, second is for a second bounding box) > So here the answer is trivial as a ray can produce a boundingbox and your > problem solved in 3 lines... > > what a lot of python programmera forget is that you are doing work inside > a dcc and thus you need to take the time to learn/ master this platform > before coding thing yourself or try to fight it > > -- > 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/a149eb2c-b060-4159-b464- > 1825a6b41573%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/a149eb2c-b060-4159-b464-1825a6b41573%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- -- 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/CAPaTLMS6tBBgJMtqhGNzAML2%2BaVq98Yhen9W_5s7xuhOY9Majg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
