473,651 Members | 2,987 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

better Python IDE? Mimics Maya's script editor?

I've been scripting in Maya, via mel for years now. Recently learning
to Python, love it. Thing that's driving me nuts it the IDE. I'm
using PythonWin right now and trying to find something better, mainly
with this functionality:

In Maya's mel script editor window, it's split into two sections.
Bottom window you can enter commands (where your script lives), top
window gives results. The thing I'm really used to is highlighting X#
of lines in the bottom window (little snippits from my script), and
executing that selection, with instant feedback of the results on top.
This really speeds my workflow.
It seems completely missing (so far) in Python's IDE. I have to copy
and paste from a script to the ide window to execute and see the
results, or I have to make a bunch of "buffer scripts" with just the
code snippetsI want to test in. Seems *really* clunky.

Does anyone know of a scripting enviroment for Python that mimics what
Maya's script editor has? Much appreciated.

Jun 8 '06 #1
9 2651
warpcat wrote:
I've been scripting in Maya, via mel for years now. Recently learning
to Python, love it. Thing that's driving me nuts it the IDE. I'm
using PythonWin right now and trying to find something better, mainly
with this functionality:

In Maya's mel script editor window, it's split into two sections.
Bottom window you can enter commands (where your script lives), top
window gives results. The thing I'm really used to is highlighting X#
of lines in the bottom window (little snippits from my script), and
executing that selection, with instant feedback of the results on top.
This really speeds my workflow.
It seems completely missing (so far) in Python's IDE. I have to copy
and paste from a script to the ide window to execute and see the
results, or I have to make a bunch of "buffer scripts" with just the
code snippetsI want to test in. Seems *really* clunky.

Does anyone know of a scripting enviroment for Python that mimics what
Maya's script editor has? Much appreciated.

I don't know of anything that exhibits the exact behaviour you describe,
but then again you might like to consider that i found your request very
odd. I'm sure that way of testing code seems entirely natural to you,
but I can honestly say that in almost ten years using Python it's not
something I have ever wished for.

You might also wish to reconsider your approach to the Python community.
"PythonWin sucks" isn't my idea of how to win friends and influence
people in a first posting to a usenet newsgroup. By and large we are a
friendly bunch here, but you don't want to start off on the wrong foot :-)

Take a look at DrPython (http://drpython.sourceforge.net/) - you might
be able to script it to do what you want, and anyway it's more of a
lightweight interface than PythonWin so you might find it less intrusive.

[Irrelevant ramble: Man, SoureceForge really know how to screw a web
site up. I'm guessing they think that the changes of the last year are
"improvemen ts". Boy are they wrong. What a mess!]

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Jun 9 '06 #2

warpcat wrote:
I've been scripting in Maya, via mel for years now. Recently learning
to Python, love it. Thing that's driving me nuts it the IDE.


http://wiki.python.org/moin/Integrat...ntEnvironments

Jun 9 '06 #3
On Thu, 08 Jun 2006 16:40:48 -0700
warpcat <wa*****@sbcglo bal.net> wrote:

#> I'm using PythonWin right now and trying to find something better,
#> mainly with this functionality:

*Assuming* I understood your description correctly, python-mode in
Emacs does what you want. Emacs is hardly a substitute for PythonWin,
though: the learning curve is quite steep.

--
Best wishes,
Slawomir Nowaczyk
( Sl************* **@cs.lth.se )

If you're constantly looking behind you, you may miss the frontal attack.

Jun 9 '06 #4
I'm not sure where you got "pythonwin sucks" from my text (none of
those words are there). Saying one aspect of a piece of software is
clunky to "me" (if that's what you're refering too?) or saying the
whole software "sucks" are pretty different IMO. All I stated is that
it's very different from how I'm used to working. I didn't mean any
disrespect, but I do appreciate your info!

Steve Holden wrote:
You might also wish to reconsider your approach to the Python community.
"PythonWin sucks" isn't my idea of how to win friends and influence
people in a first posting to a usenet newsgroup. By and large we are a
friendly bunch here, but you don't want to start off on the wrong foot :-)

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden


Jun 14 '06 #5
warpcat wrote:
I'm not sure where you got "pythonwin sucks" from my text (none of
those words are there). Saying one aspect of a piece of software is
clunky to "me" (if that's what you're refering too?) or saying the
whole software "sucks" are pretty different IMO. All I stated is that
it's very different from how I'm used to working. I didn't mean any
disrespect, but I do appreciate your info!

No offence taken - I was clearly reading too much into your words.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Jun 14 '06 #6
warpcat wrote:
I've been scripting in Maya, via mel for years now. Recently learning
to Python, love it. Thing that's driving me nuts it the IDE. I'm
using PythonWin right now and trying to find something better, mainly
with this functionality:


I'm not certain, but you could take a look at Komodo from ActiveState.
I do have an interactive window, edit window(s), and an output window.
You can get a free trial from them, as I remember.

--Scott David Daniels
sc***********@a cm.org
Jun 14 '06 #7
Ten
On Friday 09 June 2006 00:40, warpcat wrote:
I've been scripting in Maya, via mel for years now. Recently learning
to Python, love it. Thing that's driving me nuts it the IDE. I'm
using PythonWin right now and trying to find something better, mainly
with this functionality:

In Maya's mel script editor window, it's split into two sections.
Bottom window you can enter commands (where your script lives), top
window gives results. The thing I'm really used to is highlighting X#
of lines in the bottom window (little snippits from my script), and
executing that selection, with instant feedback of the results on top.
This really speeds my workflow.
It seems completely missing (so far) in Python's IDE. I have to copy
and paste from a script to the ide window to execute and see the
results, or I have to make a bunch of "buffer scripts" with just the
code snippetsI want to test in. Seems *really* clunky.

Does anyone know of a scripting enviroment for Python that mimics what
Maya's script editor has? Much appreciated.


It may not be much of an answer as many people don't want to learn emacs (or
vi for that matter), but emacs does this, specifically the separate buffers
and the ability to highlight and execute parts of your code to test it.

If you get into emacs, it's worth the time invested. The learning curve's
alleged to be steep, but it isn't that bad, I use it and I'm as dumb as a
stump. It's a very good IDE for everyday use. :-)

Good luck,

Ten

--
There are 10 types of people in this world,
those who understand binary, and those who don't.
Jun 22 '06 #8
Ten wrote:
If you get into emacs, it's worth the time invested. The learning curve's
alleged to be steep, but it isn't that bad, I use it and I'm as dumb as a
stump. It's a very good IDE for everyday use. :-)


Not to get into the classic emacs/vi/etc. argument, but from my
experience emacs has never been a good learning investment.

For an editor (on Linux) I just use Kate or Gedit, which have syntax
highlighting. For debugging, I use the print statement, because I
haven't found an interactive debugger that I like.

I did try Eclipse's "PyDev" module. It was OK, but I found Eclipse to
have so much screen clutter and so-so responsiveness, so I decided to
not keep on using it.

KDevelop now has support for Python coding, but no Python debugger yet.
It also doesn't support tab completions for Python (that I'm aware of).

So for now, I've found just a plain old text editor, plus print
statements, to be the right choice for me.

--
Christian Convey
Computer Scientist,
Naval Undersea Warfare Centers
Newport, RI
(401) 832-6824
co******@npt.nu wc.navy.mil
Jun 22 '06 #9
Check out the Wing IDE - www.wingware.com .

As part of it's general greatness it has a "debug probe" which lets you
execute code snippets on active data in mid-debug execution.

It doesn't have precisely what you are after... you can't (yet)
highlight code segments and say "run this, please", but I think it
might almost have what you want for general workflow improvement.

The main drawback is that it is a commercial product, albeit "cheap".
The extra drawback is that the debug probe feature requires the
professional version which is "less cheap", but still < $200. Well
worth it for professional development IMO.

They have a great demo policy... you should check it out. I tried
several different IDEs (I've become accustomed to using IDEs over
supe'd up text editors) and Wing was/is my favorite.

Jun 22 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1890
by: Brandon J. Van Every | last post by:
Anybody tried that? Progress or horror stories to tell? -- Cheers, www.indiegamedesign.com Brandon Van Every Seattle, WA "Troll" - (n.) Anything you don't like. Usage: "He's just a troll."
2
3199
by: André | last post by:
Short description: Using a wxPython based app, I would like to take a python script in an editor window, invoke the python interpreter and use another window as stdin/stdout/stderr. Based on what I've read so far, I've figured that I need to do something like: f_in, f_out = popen4("python -u script.py") where I have extracted the text from the editor and put it in "script.py". (However, see below).
6
2996
by: Qun Cao | last post by:
Hi Everyone, I am a beginner on cross language development. My problem at hand is to build a python interface for a C++ application built on top of a 3D game engine. The purpose of this python interface is providing a convenient scripting toolkit for the application. One example is that a user can write a python script like: player = Player() game.loadPlayer(player) player.moveTo(location)
0
1204
by: Simon Eves | last post by:
I am trying to write a Python module to embed the functionality of Maya (the 3D modelling and animation application from Autodesk, formerly Alias) for doing scripted scene manipulation and rendering processes in Python. I am aware of the CGKit project, which does this and a lot more, but it is over-complex for our needs, and also does not work in the context of a pure command-line Python script, only as an alternative scripting language...
3
1931
by: Mark | last post by:
Hello, What I need to know is if there is a better method to run/edit modules on my pc. I'm currently running the IDLE shell under Python 2.5, on Windows XP. Every time I edit my .txt or .py file, I have to restart the IDLE shell for the changes to take effect. It's pretty annoying. Assuming IDLE is already open, here are the steps that I typically take:
5
2041
by: fernando | last post by:
Could someone post an example on how to register a python function as a callback in a C function? It expects a pointer to PyObject... how do I expose that? Basically, the signature of the function is foo(PyObject* obj), where obj is the callback function... It's not exactly extending or embedding, I've looked at those examples but they don't really show how to do this... Thanks for the help!
0
1716
by: futurcraft | last post by:
Hi, I'm trying to work on a python script that can iterate through the all the control vertices of a selected nurbs surface in MAYA & return the position of the 1st cv and then move onto all the cv's in the selected nurbs surface and get their respective point positions in space. I went through the maya documentation and found out that we need to use the MItSurfaceCV class and its functions to access a nurbs object at the cv level. ...
3
1827
by: dvschorre | last post by:
When I'm running Script Editor, I can get Maya to draw a sphere by typing: tell application "Maya" execute "sphere" end tell When I try this using Python, I get this error message: IDLE 1.2.2
9
2440
by: korean_dave | last post by:
From command Prompt, i type in a script, "tryme.py". This, instead, brings up PythonWin editor and Interactive Window. Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) How do I make it so that the script runs?
0
8361
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8278
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7299
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.