bgdev.utils.shape

Utility methods for shapes.

created

05/03/2017

author

Benoit Gielly <benoit.gielly@gmail.com>

get_shapes(node, intermediate=False, exclusive=False)[source]

Get the shapes of given node.

Parameters
  • node (str) – Node to query its shapes

  • intermediate (bool) – Get intermediate shapes when True.

  • exclusive (bool) – Only return the intermediate shapes if True. Please note that the intermediate flag must be True as well.

Returns

The shapes found below given node.

Return type

list

update_intermediate(source, target)[source]

Update shapeOrig of target with source shape.

This tool also works on nubrsCurve and any deformableShapes. It will only replace one with another.

Parameters
  • source (str) – source node

  • target (str) – target node

update_intermediate_callback()[source]

Call back update intermediate().

update_plug(source_shape, target_shape)[source]

Update the plug.

Parameters
  • source_shape (str) – Name of the source shape.

  • target_shape (str) – Name of the target shape to update.