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 selected locators based on first and last plane (use for fingers).

find_bad_meshes()[source]

Find meshes with incorrect amount of vertices.

get_vectors_dialog()[source]

Query aim and up vectors using a LayoutPromptDialog.

logging_time()[source]

Print the logging time.

mirror_position(selected=False)[source]

Mirror selected along world Z+.

quick_distance()[source]

Get distance between two nodes.

set_default_clip_plane()[source]

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

set_near_clip_plane()[source]

Set nearClipPlane to 1.

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.

time_me(func)[source]

Use this decorator to time functions execution.

toggle_side_select(toggle=True)[source]

Toggle selection.