How to fix wrong positions of object in the exposeJoint code


Hello I was coding and I added a sword to my character and this happened with these codes:
select = loader.loadModel(“phase_2/models/gui/avatar_chooser_rope.bam”)

cavernson = True
cavernsoff = False
SmashoOn = True
Cat = Actor(“phase_2/models/char/mp_2000.bam”,
{“running-jump-idle”:“phase_2/models/char/mp_jump.bam”,
“walk”:“phase_2/models/char/mp_walk.bam”,
“turnLeft1”:“phase_2/models/char/mp_turn_left.bam”,
“turnRight2”:“phase_2/models/char/mp_turn_left.bam”,
“neutral”:“phase_3/models/char/mp_sword_idle.bam”,
“run”:“phase_2/models/char/mp_run.bam”})

Cat.reparentTo(render)
Cat.findAllMatches("/clothing_layer1*").hide()
Cat.findAllMatches("
/clothing_layer2*").hide()
Cat.findAllMatches("/clothing_layer3*").hide()
Cat.findAllMatches("
/hair*").hide()
Cat.findAllMatches("/acc*").hide()
Cat.findAllMatches("
/beard*").show()
Cat.findAllMatches("/mustache*").show()
Cat.findAllMatches("
/gh_master_face*").hide()
Cat.findAllMatches("/body_armpit*").hide()
Cat.findAllMatches("
/body_forearm*").hide()
Cat.findAllMatches("/body_foot*").hide()
Cat.findAllMatches("
/body_shoulder*").hide()
Cat.findAllMatches("/body_torso*").hide()
Cat.findAllMatches("
/body_waist*").hide()
Cat.findAllMatches("/body_knee*").hide()
Cat.findAllMatches(’
/body_belt’).hide()

Cat.findAllMatches(’/clothing_layer1_hat_captain’).show()
Cat.findAllMatches(’
/clothing_layer1_hat_captain_feather’).show()
Cat.findAllMatches(’/clothing_layer2_vest_long_closed_legs_front’).show()
Cat.findAllMatches(’
/clothing_layer2_vest_long_closed_torso_front’).show()
Cat.findAllMatches(’/clothing_layer3_coat_long_torso’).show()
Cat.findAllMatches(’
/clothing_layer3_coat_long_legs’).show()
Cat.findAllMatches(’/clothing_layer1_pant_tucked_base’).show()
Cat.findAllMatches(’
/clothing_layer2_belt_square’).show()
Cat.findAllMatches(’/clothing_layer2_belt_buckle_square’).show()
Cat.findAllMatches(’
/clothing_layer1_shoe_boot_tall_left’).show()
Cat.findAllMatches(’/clothing_layer1_shoe_boot_tall_right’).show()
Cat.findAllMatches(’
/’).hide()

hat = loader.loadTexture(‘phase_2/maps/PM_hat_captain_prince.jpg’)
Cat.find(’**/clothing_layer1_hat_captain’).setTexture(hat, 1)

coat = loader.loadTexture(‘phase_2/maps/PM_coat_closed_china.jpg’)
Cat.find(’/clothing_layer3_coat_long_torso’).setTexture(coat, 1)
Cat.find(’
/clothing_layer3_coat_long_legs’).setTexture(coat, 1)

pants = loader.loadTexture(‘phase_2/maps/PM_pant_long_pants_untucked_blackgold.jpg’)
Cat.find(’**/clothing_layer1_pant_tucked_base’).setTexture(pants, 1)

vest = loader.loadTexture(‘phase_2/maps/PM_vest_long_closed_blackgold.jpg’)
Cat.find(’/clothing_layer2_vest_long_closed_legs_front’).setTexture(vest, 1)
Cat.find(’
/clothing_layer2_vest_long_closed_torso_front’).setTexture(vest, 1)

shoe = loader.loadTexture(‘phase_2/maps/PM_shoe_medium_boot_china.jpg’)
Cat.find(’/clothing_layer1_shoe_boot_tall_left’).setTexture(shoe, 1)
Cat.find(’
/clothing_layer1_shoe_boot_tall_right’).setTexture(shoe, 1)

belt = loader.loadTexture(‘phase_2/maps/PM_belt_strap_oval_goldskull_blackleather.jpg’)
Cat.find(’**/clothing_layer2_belt_square’).setTexture(belt, 1)

beltsquare = loader.loadTexture(‘phase_2/maps/PM_belt_buckle_square_privateer.jpg’)
Cat.find(’**/clothing_layer2_belt_buckle_square’).setTexture(beltsquare, 1)

Cats = [Cat]

rightHand = Cat.exposeJoint(None, ‘modelRoot’, ‘weapon_right’)
Cutlass = Actor(“phase_3/models/handheld/pir_m_hnd_swd_cutlass_a.bam”)
Cutlass.reparentTo(rightHand)

Is there a code that it will displayed in the exact other direction.
Cuz the guards have the same codes only they are looking to me so they have there sword in the good hand, but i watch the other way so it’s my placed in my character, but it’s turn 180 degrees. but there’s not my character!!!

anyone have a fix?

PLS Comment fast my Early Access Release is May 26th


I already fixed it.
Just turnerd the character back to 0.0 and not 180