I’ve been trying my hand at some sort of scene editor, and after getting some nice results with a maya style camera was slightly dismayed to find that it looks like there is something similar already in the directtools library.
On a closer look at Gyedo’s level editor it seems like he leverages a lot of stuff from this module as well - bounding boxes, selection, etc. Would there be any drawback from using this library? Is it here to stay? Is it intended to be purposed like this or is it tailored to the direct toolset? I don’t see any point in reinventing the wheel and I already use the Direct Grid for all my editor stuff, so I guess it makes sense to reuse what is already available.
Which brings me to my next problem. If I want a bounding box it seems like I should do this:
from direct.directtools.DirectSelection import DirectBoundingBox
However I get the following error:
Traceback (most recent call last): File "test.py", line 1, in <module> import direct.directtools.DirectSelection File "C:\Panda3D-1.7.0\direct\directtools\DirectSelection.py", line 421, in <module> class SelectionQueue(CollisionHandlerQueue): File "C:\Panda3D-1.7.0\direct\directtools\DirectSelection.py", line 422, in SelectionQueue def __init__(self, parentNP = render): NameError: name 'render' is not defined
Which seems odd because
from direct.directtools.DirectGrid import DirectGrid
Am I missing something? Or am I better off copying the bounding box code into my own module and going from there?