sorry, but when I run the scrit I get this error:
# ====================================================================================================================
def worldUpZ(* args):
cmds.floatFieldGrp("rbgWorldUp", e=True, v1=0.0)
cmds.floatFieldGrp("rbgWorldUp", e=True, v2=0.0)
cmds.floatFieldGrp("rbgWorldUp", e=True, v3=1.0);
// Error: #===============================================================================================================================€ //
// Error: invalid directive //
// Error: firstVector[1] = xformFirstObj[1] - xformSecondObj[1];
//
// Error: Invalid use of Maya object "xformFirstObj[1]". //
// Error: firstVector[2] = xformFirstObj[2] - xformSecondObj[2];
//
// Error: Invalid use of Maya object "xformFirstObj[2]". //
// Error: #B->C so C-B.
//
// Error: Syntax error //
// Error: secondVector[1] = xformThirdObj[1] - xformSecondObj[1];
//
// Error: Invalid use of Maya object "xformThirdObj[1]". //
// Error: secondVector[2] = xformThirdObj[2] - xformSecondObj[2];
//
// Error: Invalid use of Maya object "xformThirdObj[2]". //
// Error: #THE MORE YOU KNOW - 3D MATH
//
// Error: Syntax error //
// Error: Nothing is currently selected. //
# ====================================================================================================================
def worldUpZ(* args):
cmds.floatFieldGrp("rbgWorldUp", e=True, v1=0.0)
cmds.floatFieldGrp("rbgWorldUp", e=True, v2=0.0)
cmds.floatFieldGrp("rbgWorldUp", e=True, v3=1.0);
// Error: #===============================================================================================================================€ //
// Error: invalid directive //
// Error: firstVector[1] = xformFirstObj[1] - xformSecondObj[1];
//
// Error: Invalid use of Maya object "xformFirstObj[1]". //
// Error: firstVector[2] = xformFirstObj[2] - xformSecondObj[2];
//
// Error: Invalid use of Maya object "xformFirstObj[2]". //
// Error: #B->C so C-B.
//
// Error: Syntax error //
// Error: secondVector[1] = xformThirdObj[1] - xformSecondObj[1];
//
// Error: Invalid use of Maya object "xformThirdObj[1]". //
// Error: secondVector[2] = xformThirdObj[2] - xformSecondObj[2];
//
// Error: Invalid use of Maya object "xformThirdObj[2]". //
// Error: #THE MORE YOU KNOW - 3D MATH
//
// Error: Syntax error //
// Error: Nothing is currently selected. //