OrientJoint

vtool.maya_lib.space.OrientJoint(joint_name) This will orient the joint using the attributes created with OrientJointAttributes.
class OrientJoint(joint_name)

This will orient the joint using the attributes created with OrientJointAttributes.

set_aim_vector(vector_list)
Parameters:
  • vector_list (list) – [0,0,0] vector that defines what axis should aim.
  • joint should aim with X axis then vector should be [1,0,0] If joint should aim with Y axis then [0,1,0], etc. (If) –
  • up needs to be opposite of X axis then vector should be [-1,0,0] (If) –
set_up_vector(vector_list)
Parameters:
  • vector_list (list) – [0,0,0] vector that defines what axis should aim up.
  • joint should aim up with X axis then vector should be [1,0,0] If joint should aim up with Y axis then [0,1,0], etc. (If) –
  • up needs to be opposite of X axis then vector should be [-1,0,0] (If) –
set_world_up_vector(vector_list)
Parameters:
  • vector_list (list) – [0,0,0] vector that defines what world up axis be.
  • world should aim up with X axis then vector should be [1,0,0] If world should aim up with Y axis then [0,1,0], etc. (If) –
  • up needs to be opposite of X axis then vector should be [-1,0,0] (If) –
set_aim_at(int_value)

Set how the joint aims.

Parameters:int_value (int) – 0 aim at world X, 1 aim at world Y, 2 aim at world Z, 3 aim at immediate child. 4 aim at immediate parent. 5 aim at local parent, which is like aiming at the parent and then reversing direction.
set_aim_up_at(int_value)

Set how the joint aims up.

Parameters:int_value (int) – 0 world, 1 parent rotate, 2 child position, 3 parent position, 4 triangle plane, which need to be configured to see which joints in the hierarchy it calculates with.
set_aim_up_at_object(name)
run()