trigger.utils.shape_transfer.protocol_core
Core Class for protocols.
Classes
Property item for holding, getting and setting values. |
|
Base class for protocols. |
Module Contents
- class Property(attribute_name, attribute_type, default_value, minimum=None, maximum=None, items=None, node=None, nice_name=None)
Bases:
objectProperty item for holding, getting and setting values.
- static camel_case_to_nice_name(input_str)
Convert camel case to nice name.
- set_value(val)
Set the value.
- property value
- Get the current value.
- class ProtocolCore
Bases:
dictBase class for protocols.
- create_cluster()
Create a cluster to be used for offsetting the target mesh.
- create_protocol_group()
Create the protocol group if it doesn’t exist.
- destroy()
Destroy the protocol.
- get_blend_attributes()
Return the available blend attributes.
- static is_same_topology(source, target)
checks if the source and target shares the same topology
- prepare()
Prepare temporary meshes for the protocol.
- qc_blendshapes(separation=1, force=False)
Animate the blendshapes for preview.
- refresh()
Refresh the node state of the blendshape node. This is to fix the weird bug in blendshape node where it sometimes fails to update.
- ui_refresh()
Reinitialize the exposed (UI) properties.
- display_name = ''
- name = ''
- type = None