Python Autocomplete - mit etwas Hilfe von Maxon
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/07/2012 at 07:55, xxxxxxxx wrote:
Hallo zusammen
(Ich versuchs nochmal hier da beim Support gescheitert)
Nachdem es für Notepad++ wie auch für Eclipse kein Autocomplete file gibt (wäre sehr hilfreich für neue Entwickler auf C4D) habe ich mich entschlossen sie selber zu erarbeiten. Anfangen tue ich mit "notepad++" da hier die Syntax beschrieben ist (Eclipse ist hier bisher ziemlich schwach, respektive die Community weiss hier auch nicht weiter)._<_o:_<_o:p_>_o:p>
Mit etwas Hilfe von Maxon ginge das natürlich viel einfacher Die Syntax ist recht e_<_o:_<_o:p_>_
<?xml version="1.0" encoding="Windows-12_<_o:_<_o:p_>_p;?>
<Aut_<_o:_<_o:p_>_te language="C++">
<Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," termina_<_o:_<_o:p_>_dditionalWordChar = "."/>
&n;_<_o:_<_o:p_>_t;KeyWord name="abs" func="yes">
<Overload retVal="int" de_<_o:_<_o:p_>_turns absolute value of given integer">
&n;_<_o:_<_o:p_>_sp; <Param name="int number" />
&nb;_<_o:_<_o:p_>_p; </Overload>
</KeyWord>
</AutoComplete>
</NotepadPlus>
Was ich gerne von Euch hätte ist ein delimitiertes file mit allen Funktion_<_o:_<_o:p_>_python API in folgendem Format - in der Annahme das ist für Euch nicht viel Aufwand:
"funktionsname", "funktionsbeschreibung", "typ return value", "beschreibung retVal" , _<_o:_<_o:p_>_ "parameter 1", "parameter 2", "parameter n"
_<_o:_<_o:p_>_tyle="color:#1F497D">(siehe auch oben als beispiel). Am besten in Englisch und Deutsch fürs erste.
Ich packe das Ganze dann ins nötige Format und stells aufs Netz.
Gruss,
Michael -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/07/2012 at 07:29, xxxxxxxx wrote:
No support here too? Come on maxon, I am trying to do someting for the community!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/07/2012 at 11:20, xxxxxxxx wrote:
Hi mboeni, the inspect module can help you here. There are a lot of examples available on the web. Please keep in mind, a built-in (C) function != Python function, therefore isfunction() does not work on c4d functions. Another solution would be dir().
Cheers, Sebastian
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/07/2012 at 11:43, xxxxxxxx wrote:
@Sebastian:
The inspect module won't help much, I think. It cannot retrieve function-arguments from built-in functions. The doc-strings and name of the functions wouldn't be a problem, though.
-Nik
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/07/2012 at 12:55, xxxxxxxx wrote:
The inspect module works fine on built-in functions. The arguments are just available on runtime, yes, but as you already mentioned you can at least extract (a minimal) doc string and the corresponding function names.
Cheers, Sebastian
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/07/2012 at 09:32, xxxxxxxx wrote:
Hi guys
I'll give the inspect / dir functions a spin. Thanks for your help.
I am surprised that there is complete and utter absence / silence from Maxon on this so far (for over two months now) - it would be far easier for them to export a list I can work with.
Cheers,
Michael -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2012 at 01:30, xxxxxxxx wrote:
Hey Michael,
What is the current status of your project? Do you still need this list of the python api?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/10/2012 at 10:41, xxxxxxxx wrote:
Hey Michael,
please keep your patience and keep up this topic.
autocomplete would give the c4d python usability a huge boost. can not understand the missing motivation of maxon.best regards
Jops