Jump to content


Python in IDE editors


  • Please log in to reply
5 replies to this topic

#1 breadbox

breadbox

    Initiate

  • Members
  • PipPip
  • 113 posts
  • Joined: 18-May 10
  • Location:chicago
  • Name:bradon webb

Posted 23 April 2012 - 04:55 PM

I am learning python and have a basic understanding of python in maya and have been using eclipse as an ide to run code into maya.  

is there a way to set up something similar for houdini?  so I can edit python in an external editor like eclipse or jEdit then run code externally?

#2 notawhale

notawhale

    Peon

  • Members
  • Pip
  • 19 posts
  • Joined: 17-July 11
  • Location:Moscow
  • Name:Nikita Musatov

Posted 23 April 2012 - 10:14 PM

Yes, you can. Do you need create environment variable EDITOR with link to IDE. After start Houdini on parameter go to Expression editor and push Ctrl+E.

View Postbreadbox, on 23 April 2012 - 04:55 PM, said:

I am learning python and have a basic understanding of python in maya and have been using eclipse as an ide to run code into maya.  

is there a way to set up something similar for houdini?  so I can edit python in an external editor like eclipse or jEdit then run code externally?


#3 dulo

dulo

    Peon

  • Members
  • Pip
  • 31 posts
  • Joined: 03-December 10
  • Location:austria
  • Name:martin dulovits

Posted 23 April 2012 - 11:34 PM

View Postnotawhale, on 23 April 2012 - 10:14 PM, said:

Yes, you can. Do you need create environment variable EDITOR with link to IDE. After start Houdini on parameter go to Expression editor and push Ctrl+E.

Is there a way to use the debugger for houdini python assets too ?
Posted Image
www.woogieworks.at

Martin Dulovits
Technical Director

#4 notawhale

notawhale

    Peon

  • Members
  • Pip
  • 19 posts
  • Joined: 17-July 11
  • Location:Moscow
  • Name:Nikita Musatov

Posted 24 April 2012 - 12:16 AM

View Postdulo, on 23 April 2012 - 11:34 PM, said:

Is there a way to use the debugger for houdini python assets too ?
About debugging I dont know. For debug I use print command. He write result in Python Shell on Houdini.
In IDE you can use autocomplite. For this need in IDE add library from this directory $HFS/houdini/python2.6libs or $HFS/houdini/python2.5libs

#5 rom

rom

    Peon

  • Members
  • Pip
  • 12 posts
  • Joined: 31-May 12
  • Location:south africa
  • Name:Rommany Allen

Posted 04 June 2012 - 02:35 AM

I use Komodo as an IDE
You can set up the environmental variables, and the python lib to enable code intelligence and execution of scripts outside of Houdini.

With the Komodo Pro you can have full debugging features
within the IDE.

for debugging you may find logging to file usefull, and setup a terminal to tail the log file

if you use print to the Houdini terminal for debugging, you will eventually want to go back and remove all the print commands, while using logging will keep things 'clean' as well as allowing for different levels of output( INFO,WARNINGS,ERRORS, etc)

Edited by rom, 04 June 2012 - 02:46 AM.


#6 mantragora

mantragora

    Illusionist

  • Members
  • PipPipPip
  • 270 posts
  • Joined: 08-December 11
  • Location:frozen hell
  • Name:to be, or not to be, TD ?

Posted 04 June 2012 - 05:27 AM

If you are on Windows, there is a extension for Visual Studio 2010 that adds support for standard Python - link. Intellisense, Code Refactoring, Interactive REPL, Debugging (i didn't tested it yet with Houdini). It's completely FREE and with source code, so you can play with it on your own.
magic happens here... sometimes

Vimeo
Twitter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users