direct.directtools.DirectManipulation

from direct.directtools.DirectManipulation import DirectManipulationControl, ObjectHandles, drawBox

Inheritance diagram

Inheritance diagram of direct.directtools.DirectManipulation

class DirectManipulationControl[source]

Bases: DirectObject

__init__(self)[source]
addTag(self, tag)[source]
disableManipulation(self, allowSelectionOnly=False)[source]
disableWidgetMove(self)[source]
drawMarquee(self, startX, startY)[source]
enableManipulation(self)[source]
enableWidgetMove(self)[source]
followSelectedNodePathTask(self, state)[source]
getEditTypes(self, objects)[source]
gridSnapping(self, nodePath, offset)[source]
manipulateObject(self)[source]
manipulateObjectCleanup(self)[source]
manipulateObjectTask(self, state)[source]
manipulationStart(self, modifiers)[source]
manipulationStop(self)[source]
plantSelectedNodePath(self)[source]

Move selected object to intersection point of cursor on scene

removeManipulateObjectTask(self)[source]
removeTag(self, tag)[source]
rotate1D(self, state)[source]
rotate2D(self, state)[source]

Virtual trackball rotation of widget

rotateAboutViewVector(self, state)[source]
scale1D(self, state)[source]
scale3D(self, state)[source]
scaleWidget(self, factor)[source]
spawnFollowSelectedNodePathTask(self)[source]
spawnManipulateObjectTask(self)[source]
supportMultiView(self)[source]
switchToLocalSpaceMode(self)[source]
switchToMoveMode(self, state)[source]
switchToWorldSpaceMode(self)[source]
toggleObjectHandlesMode(self)[source]
watchMarqueeTask(self, state)[source]
watchMouseTask(self, state)[source]
widgetCheck(self, type)[source]
xlate1D(self, state)[source]
xlate2D(self, state)[source]
xlateCamXY(self, state)[source]

Constrained 2D motion perpendicular to camera’s image plane This moves the object in the camera’s XY plane if shift is held Moves object toward camera if control is held

xlateCamXZ(self, state)[source]

Constrained 2D motion parallel to the camera’s image plane This moves the object in the camera’s XZ plane

class ObjectHandles(name='objectHandles')[source]

Bases: NodePath, DirectObject

__init__(self, name='objectHandles')[source]
activate(self)[source]
coaModeColor(self)[source]
createGuideLines(self)[source]
createObjectHandleLines(self)[source]
deactivate(self)[source]
disableHandle(self, handle)[source]
disableHandles(self, handles)[source]
disabledModeColor(self)[source]
enableHandle(self, handle)[source]
enableHandles(self, handles)[source]
getAxisIntersectPt(self, axis)[source]
getMouseIntersectPt(self)[source]
getScalingFactor(self)[source]
getWidgetIntersectPt(self, nodePath, plane)[source]
growToFit(self)[source]
hideAllHandles(self)[source]
hideGuides(self)[source]
hideWidget(self)[source]
manipModeColor(self)[source]
multiplyScalingFactorBy(self, factor)[source]
setDirectScalingFactor(self, factor)[source]
setScalingFactor(self, scaleFactor)[source]
showAllHandles(self)[source]
showGuides(self)[source]
showHandle(self, handle)[source]
showWidget(self)[source]
showWidgetIfActive(self)[source]
toggleWidget(self)[source]
transferObjectHandlesScale(self)[source]
drawBox(lines, center, sideLength)[source]