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?
Python in IDE editors
Started by breadbox, Apr 23 2012 04:55 PM
5 replies to this topic
#1
Posted 23 April 2012 - 04:55 PM
#2
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.
breadbox, 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?
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
#4
Posted 24 April 2012 - 12:16 AM
dulo, on 23 April 2012 - 11:34 PM, said:
Is there a way to use the debugger for houdini python assets too ?
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
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)
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
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.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












