bgdev.utils.scripts

Random scripts and tools (needs to be sorted…).

author

Benoit GIELLY <benoit.gielly@gmail.com>

align_fingers(nodes=None, aim_vector=(1, 0, 0), up_vector=(0, 1, 0), gui=False)[source]

Align selection based on first and last plane (use for fingers).

change_default_clip_plane()[source]

Create a quick GUI to change the camera clipPlane values option vars.

find_bad_meshes()[source]

Find meshes with incorrect amount of vertices.

get_vectors_dialog()[source]

Query aim and up vectors using a LayoutPromptDialog.

mirror_position(selected=False)[source]

Mirror selected along world Z+.

quick_distance()[source]

Get distance between two nodes.

set_default_clip_plane()[source]

Set camera clipPlanes to default values.

show_cam_clip_planes()[source]

Turn nearClip and farClip planes visible in the CB for all cameras.

show_joint_orient(value=True)[source]

Display jointOrient attributes in channel box.

simple_snap(srt=None)[source]

Snap quickly.

snap(**kwargs)[source]

Snap an obj on a target.

toggle_side_select(toggle=True)[source]

Toggle selection.