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__()[source]
addTag(tag)[source]
disableManipulation(allowSelectionOnly=False)[source]
disableWidgetMove()[source]
drawMarquee(startX, startY)[source]
enableManipulation()[source]
enableWidgetMove()[source]
followSelectedNodePathTask(state)[source]
getEditTypes(objects)[source]
gridSnapping(nodePath, offset)[source]
manipulateObject()[source]
manipulateObjectCleanup()[source]
manipulateObjectTask(state)[source]
manipulationStart(modifiers)[source]
manipulationStop()[source]
plantSelectedNodePath()[source]

Move selected object to intersection point of cursor on scene

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

Virtual trackball rotation of widget

rotateAboutViewVector(state)[source]
scale1D(state)[source]
scale3D(state)[source]
scaleWidget(factor)[source]
spawnFollowSelectedNodePathTask()[source]
spawnManipulateObjectTask()[source]
supportMultiView()[source]
switchToLocalSpaceMode()[source]
switchToMoveMode(state)[source]
switchToWorldSpaceMode()[source]
toggleObjectHandlesMode()[source]
watchMarqueeTask(state)[source]
watchMouseTask(state)[source]
widgetCheck(type)[source]
xlate1D(state)[source]
xlate2D(state)[source]
xlateCamXY(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(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__(name='objectHandles')[source]
activate()[source]
coaModeColor()[source]
createGuideLines()[source]
createObjectHandleLines()[source]
deactivate()[source]
disableHandle(handle)[source]
disableHandles(handles)[source]
disabledModeColor()[source]
enableHandle(handle)[source]
enableHandles(handles)[source]
getAxisIntersectPt(axis)[source]
getMouseIntersectPt()[source]
getScalingFactor()[source]
getWidgetIntersectPt(nodePath, plane)[source]
growToFit()[source]
hideAllHandles()[source]
hideGuides()[source]
hideWidget()[source]
manipModeColor()[source]
multiplyScalingFactorBy(factor)[source]
setDirectScalingFactor(factor)[source]
setScalingFactor(scaleFactor)[source]
showAllHandles()[source]
showGuides()[source]
showHandle(handle)[source]
showWidget()[source]
showWidgetIfActive()[source]
toggleWidget()[source]
transferObjectHandlesScale()[source]
drawBox(lines, center, sideLength)[source]