vtool.maya_lib.curve

Class Summary

CurveToData(curve)

Convenience for dealing with curve data.

CurveDataInfo()

Function Summary

set_nurbs_data(curve, curve_data_array)

get_nurbs_data_mel(curve)

set_nurbs_data_mel(curve, mel_curve_data)

add_curve_to_default(curve_name)

This will add a curve to the default library.

create_curve_from_default(curve_name)

get_library_shape_names()

get_shapes(transform)

is_a_shape(node)

get_attribute_input(node_and_attribute[, ...])

set_shapes_as_text_curves(transform, text_string)

create_curve_type_attribute(node, value)

create_nurbs_from_mel(name, mel_data)

match_shapes_to_data(curve, mel_data)

rename_shapes(transform)

class CurveToData(curve)

Convenience for dealing with curve data.

get_degree(index=0)

Get the degree of the curve.

Parameters

index (int) – The shape index. 0 for first shape, 1 for the second shape, etc…

Returns

The number of degrees.

Return type

int

get_knots(index=0)

Get the degree of the curve.

Parameters

index (int) – The shape index. 0 for first shape, 1 for the second shape, etc…

Returns

The number of degrees.

Return type

int

get_cvs(index=0)
get_cv_count(index=0)
get_span_count(index=0)
get_form(index=0)
create_curve_list()
create_mel_list()
set_nurbs_data(curve, curve_data_array)
get_nurbs_data_mel(curve)
set_nurbs_data_mel(curve, mel_curve_data)
class CurveDataInfo
curve_data_path = '/home/docs/checkouts/readthedocs.org/user_builds/vetala-auto-rig/checkouts/docs/python/vtool/maya_lib/curve_data'
set_directory(directorypath)
set_active_library(library_name, skip_extension=False)
load_data_file(path=None)
write_data_to_file()
get_library_names()
get_curve_names()
set_shape_to_curve(curve, curve_in_library, check_curve=False, add_curve_type_attribute=True)
add_curve(curve, library_name=None)
remove_curve(curve, library_name=None)
create_curve(curve_name)
create_curves()
add_curve_to_default(curve_name)

This will add a curve to the default library. Future updates of Vetala won’t keep these changes.

create_curve_from_default(curve_name)
get_library_shape_names()
get_shapes(transform)
is_a_shape(node)
get_attribute_input(node_and_attribute, node_only=False)
set_shapes_as_text_curves(transform, text_string)
create_curve_type_attribute(node, value)
create_nurbs_from_mel(name, mel_data)
match_shapes_to_data(curve, mel_data)
rename_shapes(transform)