Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm developing in MAYA and looking for a good API to connect my models and to be able to control them programatically.
thanks.
hye oded, you can use MEL or python scripting for control objects and doing simple actions,
and you can use the c++ or Python via maya api to create complex tasks or heavy duty tasks, like creating deformers, expanding mel with new commands.
for resources in mel scripting i recommend "gnomon Mel fundemental" video tutor
and for the api i recommend "Complete Maya Programming" book
if you could do any scripting or api programming and you know some python,
you can easily program/script with python which is way easier than mel or c++
hope that will help you :D
There are a couple of apps for mel programming, but all they do is give you syntax coloring and maybe autocomplete. Nothing more advanced exists, which is just as well, because mel is just a terrible, terrible language: It really isnt good for anything other than quick hacks in Maya's script editor. You definitively should use Python.
You can use an external IDE, like Eclipse or WingIDE to control Maya, but it's tricky
http://www.wingware.com/doc/howtos/maya
Whether youll be doing Python scripting or API development, definitively have a look at PyMel, which is a vast improvment over Maya's native Pyhon implementation.
if you are on windows you can use PyScripter, to configure it you have to show autocomplete you have to follow these steps
Open Pyscripter for Python 2.6 if your python version in maya is 2.6.Click on Tools> Python Paths
Browse and add following path:('D:\Program Files (x86)\Autodesk\Maya2012\devkit\other\pymel\extras\completion\py')
if you are not able to add by step 2, you can manually add by
going to Tools > Edit Startup Scripts in python_init.py add the two lines
import sys
sys.path.append("D:\Program Files (x86)\Autodesk\Maya2012\devkit\other\pymel\extras\completion\py")
following above steps will give you ability to write in python and programmatically control you object inside maya.. externally from IDE... (this also give you the code autocomplete feature)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
The question is not the same as What’s the best way to generate a UML diagram from Python source code?, but the other way around.
Topcoder UML tool automatically generates code in only Java or C#. Since I need to create a very depended data structure at a point, I am hesitant to turn to Java. I want to use Python. So:
Is there an UML-like tool that
automatically generates Python code
from your diagram?
If there is, is it possible to generate it from the Topcoder UML tool?
Can you shortly compare the tools?
Enterprise Architect is able to generate python code code from UML diagrams.
It is also able to also perform some reverse engineering, and therefore maintain the two versions (UML and python) synchronized together.
However, I have never used it in that way, except for some small tests just to see it in action. I personally find productivity in Python so high, that even if I am really satisfied with EA, I prefer it just to document the design.
PyUML - a Python Roundtrip Tool for Eclipse
PyIdea: PyNSource UML & Patterns IDE for Python
You can use DIA, and then install dia2code, it will generate from UML to code in python. I use it in PHP5 and Java.
$ sudo apt-get install dia dia2code
The Umbrello UML modeller for KDE support Python as an export language.
Some tools:
Gaphor
pyUML for Eclipse
pyNSource
Search with Ubuntu found:
$ apt-cache search python uml
boa-constructor - RAD tool for Python and WxWindows application
dia2code - a dia-UML code generator
spe - Stani's Python Editor
Quick testing revealed that DIA is the only program, where you can export your UML diagram to Python. I am very suspicious about the quality of DIA because it is less intuitive to use than the Topcoder UML program. Perhaps, the other programs, suggested by other repliers, are better.
Try this link-
https://www.visual-paradigm.com/support/documents/vpuserguide/276/330/7400_instantgener.html
Select Tools > Code > Instant Generator from the toolbar. In the
Instant Generator window, select Python as the Language. Fill in the
Output Path, which is the directory where you want the code to
generate to. Select the classes to generate code. In the Diagrams
tab, you can select the diagrams to generate code for classes in the
selected diagrams. Alternatively, open the Model Elements tab and
select the classes to generate code.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I regularly get frustrated by text-overload in my IDE (Eclipse right now). I find myself separating my methods by big chunks of whitespace, and then regretting that later when I need to find something by scanning through the code.
Something I think does work well is the GrepCode way of viewing source code. Does anyone know if anything like this has been implemented in a code editor? More specifically, I want the ability to have nice, formatted and colourful documentation (preferably collapsable) to help me read my code. It could even have the ability to embed design images.
"Text-overload" is precisely why a plugin like Mylyn does exist.
Mylyn's task-focused interface reduces information overload and makes multitasking easy.
Mylyn makes tasks a first class part of the IDE, integrates rich and offline editing for ALM tools, and monitors your programming activity to create a "task context" that focuses your workspace and automatically links all relevant artifacts to the task-at-hand.
This puts the information you need at your fingertips and improves productivity by reducing information overload, facilitating multitasking and easing the sharing of expertise.
Plus you can add to your project WikiText, with Markdown support (see WikiText FAQ, and its User Guide)
To better manage huge amounts of code, you may want to reconsider these:
Use Eclipse Mylyn, as it will hide code that you don't work with.
Open Windows -> Preferences, type "Folding" in the preferences dialog
and check, which editors should provide more folding by default to
hide non relevant things from you.
Have a look at the Java browsing
perspective of Eclipse. It stems from the old Smalltalk code browsing
user interfaces and is meant to more easily manage (but not edit)
Java code.
If you are working much visually with your code (and remember its layout instead of the structure), you may find the Crazy Outline view very helpful. It provides an airplane layout view of your text.
If the more important aspect of your question is how to more easily see the documentation you wrote for your code, check this:
Make sure that the JavaDoc view and the Declaraction view are opened and visible all the time to show Javadoc and declaration of whatever your cursor points at. Make sure you actually provide JavaDoc comments, to begin with.
The Eclipse Code Recommenders project has advanced documentation views, which basically show the results of data mining of common Eclipse code. You can get a company internal (commercial) version of that tool, so it would recommend code completion, as other code in your projects was written.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Over the last year or so I've seen various announcements on the Clojure discussion list and other places about tools for documenting Clojure code. These range from full-on literate programming systems like Marginalia, and the tool being used to create the book "Clojure in Small Pieces" (or even emacs org-mode), to more conventional Javadoc-style solutions like Autodoc, and Javadoc itself which reportedly can be used with Clojure. A google search turns up various others, perhaps a few that deserve more attention, and for sure some that are just personal utilities for generating docs. My question is what are the best documentation tools, and what are their comparative strengths and weaknesses based on your experiences using them? I have not used any documentation tools to date, and am interested in experimenting with one or more.
I really like Marginalia if you want to take something like a literate programming approach. Marginalia traverses your source code, and produces an html formatted version with comments set beside code in a very clear text. Comments can be markdown formatted, making for a very readable final document. When reviewing source code that I've written some time ago, I find Marginalia really helps. Here's an example made from the Marginalia source itself.
Note that this differs from the original literate programming workflow, where you would write a file and source code is generated from that. With Marginalia, you write a regular source code file, and it's the documentation that's pulled out of that. The output is similar to what one might expect from literate programming, but this way you can still expect syntax highlighting in an editor, without any special literate programming support.
It interoperates with Leiningen, and I believe cake, though I haven't tried that myself.
Codox is a more recent documentation generator for Clojure.
Autodoc is an easy place to start and is what Clojure core and Clojure contrib produce.
Easy to use with Maven. I'm not sure if plugins exist for Leiningen or Cake.
If you want to go fully literate you should give org-babel-clojure a look. org-bable is a literate programming extension to the emacs org-mode.
If you want to use nrepl the following should be added to your .emacs:
(defun org-babel-execute:clojure (body params)
"Execute a block of Clojure code with Babel."
(let ((result-plist (nrepl-send-string-sync (org-babel-expand-body:clojure body params) nrepl-buffer-ns))
(result-type (cdr (assoc :result-type params))))
(org-babel-script-escape
(cond ((eq result-type 'value) (plist-get result-plist :value))
((eq result-type 'output) (plist-get result-plist :value))
(t (message "Unknown :results type!"))))))
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have a project under continuous integration and would like to add end user documentation to the project. The end user documentation is a user manual, not API documentation. In our environment we use windows, c#, msbuild, cruisecontrol.net and subversion. We are currently using DocToHelp to create our help file, which is based on an msword document.
I'm looking for some guidance on how to manage the end user documentation. What documentation tools should I use? Should any of the documentation tools be part of the build script? Should the output files from the documentation tool be stored in subversion? What type of help files would be best to use?
We has been using XMLMind XML Editor to produce user documentation in the unified docbook format that can be stored in a version control system for the past 6 years. We use standard XSL transformations to generate user documentation from docbook in HTML and PDF format. Of course, this all is a part of the Continuous Integration and release build cycle.
Hope this helps.
I don't know DocToHelp but here is my take:
Even if it's the only thing you do: Start with adding your generated help file and all the files you used to create it in your version control system.
If generating the help file is not much more then processing a Word doc file then perhaps I wouldn't bother integrating it on the CI server. Your CI server's build artifact folder will just contain the help file as fetched from version control.
If there is a whole bunch of files (perhaps externally linked images in the doc?) and there is a chance of failure you could add it (if the help file building tool allows).
Basically what your CI server would prove then is if it can reproduce your help file from version control (did you commit and add everything?).
Taking it even further you could build automated tests which would examine the build help file and compare it with the referenced helpcontext IDs in the software itself. But here I am speculating (I haven't done helpfiles in ages :-)).
You might want to take a look at Doxygen:
http://www.doxygen.nl/
Doxygen is a documentation system for C++, C, Java, Objective-C, Python, IDL (Corba and Microsoft flavors), Fortran, VHDL, PHP, C#
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there some nice documentation for Windows batch scripting I can download and refer to while offline?
I can recommend:
An A-Z Index of the Windows XP command line.
It is more thorough than help and most importantly it provides several examples for each command. Example: FIND. There are also cross-references to other commands.
For offline reading you can capture the pages by using e.g. Wget (or some other tool that can follow links and down the content). I use Bart Puype's Wget binary for Windows.
(There is a similar one for PowerShell: "An A-Z Index of Windows PowerShell commands".)
You can always look at the command help by typing one of:
<command> /?
help <command>
And to see a complete list of default batch commands you just type:
help
Also, you can look up the commands in Windows Help. Just click on "Start" -> "Help and Support", then search for "cmd reference" and you will get the "Command-line reference A-Z" page in Full-text Search Matches. It's a complete list of all cmd commands (some of the are only available in batch scripts) and other command line applications.
Here's an 8-page PDF you can print out: Win32 Shell Scripting Tutorial.
Consider using PowerShell instead, if you can. More power, fewer headaches. It's the way of the future, scripting-wise.
You sound like you have a lot of learning ahead of you. If you do that learning in PowerShell instead of batch, you'll be in a better position at the end.
While it's useful to learn batch, sometimes using batch can be quite a hassle, especially when it comes to things like number crunching, text file parsing, HTML parsing, etc., etc. It's better to also equip yourself with knowledge of scripting using languages such as Perl and Python. Natively, you can also learn how to use VBScript/JScript. Here is the guide you can download and read offline.
Another
Command-line reference A-Z
It seems like all kinds of command line are in the left sidebar.
Google hits, for "windows batch scripting documentation" - first page:
http://labmice.techtarget.com/scripting/batchfiles.htm
http://www.allenware.com/icsw/icswidx.htm