Debugging Python in Maya Cyrille Fauvel - ADN. About the Presenter Cyrille Fauvel - Autodesk Developer Network Cyrille is a member of the M&E workgroup.

Slides:



Advertisements
Similar presentations
©2004 BLACKBOARD, INC. ALL RIGHTS RESERVED. Java Integrated Development Environments Heather Natour Senior Lead Engineer Blackboard Inc. July 18 th 10:15am.
Advertisements

TPF/Eclipse: A New TPF Application Test Tool for the Eclipse and WebSphere ® Environments Presenter: Thiru Thirupuvanam TPF Users Group May 2003 New Orleans,
Product Configurator for Marketing to Manufacturing design automation.
2005 JavaOne SM Conference | Session BOF-9161 Exploring Annotation-Based Programming through the APT and Mirror APIs Tim Wagner, Senior Manager Gary Horen,
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
Introduction to 3ds Max Customization and Plug-in Development
ECLIPSE IDE N AME : A SHOK P ADMARAJU C OURSE : T OPICS ON S OFTWARE E NGINEERING I NSTRUCTOR : D R. S ERGIU D ASCALU.
1 Copyright 2008 NexJ Systems Inc. Confidential and Proprietary - Not for Distribution. Open Source Strategy NexJ Systems Inc.
© 2008 Zend Technologies; made available under the EPL v March 2008 PDT – The PHP Development Toolkit Assaf Almaz, PDT co-Project Leader Zend Technologies.
© 2012 Autodesk Think outside the box: Custom Development with Autodesk Entertainment Creation Suite Laurent M. Abecassis, President of Di-O-Matic, Inc.
A different approach to Middleware. The IGUANA Integration Engine Introduction Eliot Muir, CEO My role is 75% development Based in Toronto, Canada.
RiT Technologies Partner Program Committed to Your Success.
© 2012 Autodesk CP Autodesk® 3ds Max®.NET API Introduction and Techniques Kevin Vandecar Principal Developer Consulting Engineer – M&E Autodesk Developer.
Extending Cocos2D-x Mobile 2D Framework Rony Xu Happy Elements.
CP The 30,000-Foot View of Autodesk® 3ds Max® Customization and Plug-in Development Kevin Vandecar Principal Developer Consulting Engineer – M&E.
DEVSENSE s.r.o.. Visual Studio Industry Partner DEVSENSE s.r.o. NEXT STEPS Contact us at: In 2009, DEVSENSE was founded by four software.
Multi Duty Tool for Smallworld™ solution providers.
By the end of this session you should be able to...
© 2008 Autodesk Invest in Yourself Autodesk Assistance Program.
Evinco Solutions Limited Page 1. Evinco Solutions Limited Page 2 What is RoboSales? Integrated e-commerce solution for corporate and SME users Innovative.
The FIX Protocol as an Effective Solution for Algorithmic Trading Kevin Houstoun, Co-chair FPL Global Technical Committee, Consultant to HSBC.
Future Directions: Building Customizable Applications using.NET Eric Schnepp TLN205 Lead Program Manager Microsoft Corporation.
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
DEV-2: Making OpenEdge ® Architect Work For You David Lund Product Readiness.
GoTK The GENI open ToolKit Daniel Reininger, Max Ott, Thierry Rakotoarivelo.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
Arctic Studio Using.NET DLLs from Eclipse based IDE via Javonet CASE STUDY Arctic Studio by Simplest way to use.NET libraries in JAVA javonet.com.
© 2006 IBM Corporation Jazz Foundation Deep Dive Agile Planning’s Scripting Tools.
Python 0 Some material adapted from Upenn cmpe391 slides and other sources.
T F-Secure Software Signing System Olli Salminen, Research Manager F-Secure Research.
OXygen XML Editor Support for eXist DB XQuery debugging. Stefan Vasile
The Scientific Software Initiative at the APS Kenneth Evans, Jr. Presented at the EPICS Collaboration Meeting October , 2007 ICALEPCS Meeting, Knoxville,
Steve Dower Software Engineer Python Tools for Visual Studio.
DEV-05: Ratcheting up your OpenEdge™ Development Productivity Sunil S Belgaonkar Principal Software Engineer.
welcomes you to AU Extension for Civil Engineering & AutoCAD.
SharePoint Saturday Sponsors Gold Bronze Creating Knockout User Experiences in SharePoint with JavaScript Making awesome with Knockout, jQuery and SharePoint.
© 2002 IBM Corporation Confidential | Date | Other Information, if necessary June, 2011 Made available under the Eclipse Public License v Mobile.
Multi-Threading WPF Inside of AutoCAD
Eclipse 24-Apr-17.
NVIDIA FX Composer 2 Shader Authoring for Everyone Philippe Rollin Aravind Kalaiah.
© 2011 Autodesk Autodesk Inventor®: Client Graphics API exposed Philippe Leefsma Developer Consultant - Autodesk Developer Network.
Disclaimer The Content, Demonstration, Source Code and Programs presented here is "AS IS" without any warranty or conditions.
1 KaaShiv InfoTech  Presents  INTEL XDK For Inplant Training / Internship, please download the "Inplant training registration form" from our website.
Sell. More. PayInAFlash – Turn Your Gamers Into Customers with Flash Payments May 2010 Flash GAMM! Moscow.
INTRODUCTION TO JAVA AND ANDROID. Slide 2 Our Ecosystem Java Eclipse Android SDK.
Brad Adams IBM Software, Rational 05/13/14
06 | Debugging and Deploying on Azure Stacey Mulcahy | Technical Evangelist Rami Sayar | Technical Evangelist.
A2: Making OpenEdge ® Architect Work For You Susan Houniet Senior Solution Consultant.
Debugging and Printing George Mason University. Today’s topics Review of Chapter 3: Printing and Debugging Go over examples and questions debugging in.
Programming Objectives What is a programming language? Difference between source code and machine code What is python? – Where to get it from – How to.
Master Software Solutions Pvt.Ltd.. These days the demand of smart phone is being increased and we have different types of client e.g. Touch Phone, tables,
Scripting In this presentation… –centric’s scripting support. VBScript and JScript. Scripting Editor.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
DEV-21: Embracing OpenEdge ® Architect Sunil S Belgaonkar Software Architect.
Open Source Tools for Embedded Systems Exploring Mars with PolarSys The Dawn of the Rover.
]project-open[ Open Source Enterprise Business Application
Introduction ITEC 420.
Developer Days Online Share.
Francis Bordeleau Chairman, Papyrus IC May 11th, 2016
F UTURELEARN S CRIPT,K HAN ACADEMY C LONE,K HAN ACADEMY S CRIPT script/
Fedora in Education BalCCon2k17 17th September 2017 Nemanja Milošević
SCIA Engineer User Conference 2017 London
KnockoutJs online Training at GoLogica in Pune
Effective Automation project development using Eclipse Che
Boosting SSAS Productivity with Tabular Editor
Automation execution portal for Customer-Partner businesses
Enterprise Mode Overview
5/25/2019 2:40 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Presentation transcript:

Debugging Python in Maya Cyrille Fauvel - ADN

About the Presenter Cyrille Fauvel - Autodesk Developer Network Cyrille is a member of the M&E workgroup of the Autodesk Developer Network (ADN) team, providing developer support, training, and conference presentations on AutoCAD, RealDWG, Inventor, Maya, 3ds Max, FBX API, and many others. He joined Autodesk in 1994 as an AutoCAD developer based in Switzerland and California, USA. Later moved to the Developer Support group, and Consulting division. Cyrille graduated in Mechanics and Electronics in France, worked as a teacher and C++ developer for a 3rd party developer on AutoCAD. He is fluent in six programming languages, tries to learn Japanese which turns out to be more difficult than learning English, has two kids, plays the guitar and piano, likes reading, love sailing on oceans, sports, and especially hand-ball.

M&E ADN Sparks program today Access to almost all Autodesk software and SDK’s – Includes early access to beta software Members-only website with thousands of technical articles Unlimited technical support Product direction through conferences Marketing benefits – Exposure on autodesk.com – Promotional opportunities One to three free API training classes – Based on user level

M&E ADN Sparks program today Members in the following categories: Commercial plug-in developers Corporate (customer sites) Authors and Publishers Hardware partners Consultants Universities

Agenda Maya and Python Maya integration and Python development Debugging Python in Maya – What benefits? What risks? Exploring various solutions (with demos) Q&A

Maya and Python Introduced in the 8.5 release – Scripting & API – For scripting, see PyMEL (more pythonic) Adoption in 2010/2011 releases – Maya engineering team continues to improve Python support in Maya releases

Maya Python Scripting Wraps MEL Embedded UI – Color syntax – Automatically saved – Automatically reparsed – No intellisense – No debugger

Maya Python API C++ wrappers OpenMaya & Maya – Works like C++ plug-ins / applications – Difficult to debug

What risks? What benefits? Debugging Python in Maya

Python internal Pythons dictionaries – Python loads module only once – References are saved into internal Dictionaries – I.e.: imp.load_module and __builtin__.__import__

Risks If not using reload(), code is not reparsed Python variables may be initialized already – Internal and application variables Maya may have references set already – Nodes or UI

Not using a debugger Use print() ? – Painful and cumbersome – Slow process – No control on execution Needs overriding __str__() for better Runtime Information

Using a debugger Conditional Breakpoint Inspect variables / Evaluating some expression Code changes / Alter debug data values Exception traceback reporting Call stack Remote debugging

Solutions available Python pdb debugger Winpdb Eclipse and pydev Wingware IDE

Python pdb debugger Available in all Python distribution import pdb pdb.run(“…”) Maya Script editor does not support pdb – Requires you to redirect the sys.stdin and sys.stdout in order to control pdb i/o Not really a solution for plug-ins

Winpdb Light debugger and IDE – But free Breakpoints Callstack Inspect values Exceptions

Eclipse and pydev Stronger debugger and IDE – Still free, but requires more work at install time,

Wingware IDE Stronger debugger and IDE – Commercial release

Thank You ! Q & A ADN Sparks Autodesk