Page MenuHome

Blind Scripting
Closed, ArchivedPublic

Description

System Information
OS: Windows XP x64 SP2
CPU: AMD Athlon II x2 215
GPU: Galaxy GeForce GT 430

Blender Version
Broken: 2.70
Worked: 2.49 (havn't really played around with the newer versions until now)

Short description of error

I wouldn't call it an error, but it's definitely something that's either not working or not implemented.
when editing a python script, there's no auto-complete menu that lists the members of a class.

the online API does not readily give off-hand info regarding:

import bge
cont = bge.logic.getCurrentController()
obj = cont.owner
obj.?????

or any other details about things that should be referenced.

If there is anything in there about the info I need, then it's not easy to find and should be adjusted.

Exact steps for others to reproduce the error

Type the DOT operator after a python class reference.

Event Timeline

Tcll 5850 (Tcll) raised the priority of this task from to 90.
Tcll 5850 (Tcll) updated the task description. (Show Details)
Tcll 5850 (Tcll) added a project: BF Blender.
Tcll 5850 (Tcll) edited a custom field.
Tcll 5850 (Tcll) added a subscriber: Tcll 5850 (Tcll).

As variables are not declared, they do not have a data type. The same variable can reference any type of object, hence there is no intellisense support. So, not a bug, just a limitation of interpreted code.

thanks for the quick response :)

I see...
so I was right in assuming it's not implemented.

will there ever be any intellisense-like support in future releases??

heh... if I knew C, I could probably help out...
but heck I'm designing my own IDE (for noobs building scripts for my program) in python... heh
(it's supposed to act like Aptana conveniences with VS2010 intellisense with python)
^ as well as some extended features such as data types, pointers, and file analysis (shows you what your script does).

OT:
also, if I may mildly skim over this topic...
building an import script in newer versions of Blender is a real pain...
my interface offers a max of 70% less code needed in comparison to Blender26 by providing functions instead of classes (less complex),
and automating almost every transaction (where needed).

don't mean to bark... I just needed to bring that up to hopefully make a push to decrease the complexity of Blender scripts. :P

if you'd like to talk more about this, please email me: tcll5850@gmail.com :)
don't think we need a bug report containing a convo. XD

Blender is not a programming tool. But if you like Aptana, perhaps it is possible to make a plugin offering the possibility to execute a python script inside Blender. Perhaps Blender needs an extra interface to support this. But it is also a security risk.

Kévin Dietrich (kevindietrich) changed the task status from Unknown Status to Unknown Status.Jun 8 2014, 12:54 PM

@Tcll 5850 (Tcll): perhaps send a mail to the appropriate mailing list on that import script subject ? Indeed, it isn't a good idea to share your email on a public website.

> Indeed, it isn't a good idea to share your email on a public website.

thanks, but everyone knows me for technical stuff already, so I'm not afraid. :)
you can find my email all over anyways. XD

Blender is not a programming tool. But if you like Aptana, perhaps it is possible to make a plugin offering the possibility to execute a python script inside Blender. Perhaps Blender needs an extra interface to support this. But it is also a security risk.

actually, not that it matters, but I like VS2010 much more...
it's much more informative when it comes to intellisense,
and could tell me the members of a bge object (including some private members) from the code I posted above.

I mentioned Aptana because it's much more convennient :)
VS2010 doesn't auto-complete anything for you like Aptana does, but Aptana lacks the intellisense I need.

anyways... I can't seem to get Blender24 to do it atm, but I did get a menu for class members.
if anything, you could at least make the support like the IDLE shell. :)

or you could even do what I'm doing and provide a name-reference dictionary:
http://lh3.ggpht.com/-onzArcPdjJA/U46fpc6ra3I/AAAAAAAAGrw/-5RCmghwV2U/s1355/UMC_SIDE_progress_21.PNG
^ the area at the very left (every function you'll need for my program)

though I intend to add intellisense support to that later so I'll have the best of both...