# ASRS-Crane syntax problem in VC

**URL:** <https://forum.visualcomponents.com/t/asrs-crane-syntax-problem-in-vc/832>\
**Category:** Python Programming\
**Created:** [October 7, 2019, 12:14pm UTC](https://forum.visualcomponents.com/t/asrs-crane-syntax-problem-in-vc/832 "2019-10-07T12:14:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ming-wang](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@ming-wang](https://forum.visualcomponents.com/u/ming-wang)\
**Post date:** [October 7, 2019, 12:14pm UTC](https://forum.visualcomponents.com/t/asrs-crane-syntax-problem-in-vc/832/1 "2019-10-07T12:14:12Z")

</div>

```
triggerCondition(lambda: getTrigger() == crane_ready )
  newMtx = vcMatrix.new(comp.InverseWorldPositionMatrix * toComp.WorldPositionMatrix * locationMatrix)
  goY = newMtx.P.Y 
  goZ = newMtx.P.Z - gripper.ProcessHeight 
  servo.move(goY, goZ)
  print (newMtx)
```

I want to ask how the code (comp.InverseWorldPositionMatrix \* toComp.WorldPositionMatrix \* locationMatrix) multiplies these three to get newMtx and then take the Y and Z axis coordinates.  
I see that the value obtained by newMtx is\<vcMatrix object at 0x0000000034A089D8\> but I can’t understand the meaning.

&nbsp;

---

<div class="post-metadata">

**Author:** ![captain\_feature](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/captain_feature/32/5547_2.png) [@captain\_feature](https://forum.visualcomponents.com/u/captain_feature)\
**Post date:** [October 7, 2019, 8:29pm UTC](https://forum.visualcomponents.com/t/asrs-crane-syntax-problem-in-vc/832/2 "2019-10-07T20:29:15Z")

</div>

Hy,

If you search the vc-help you can find out that the “\*”-operator is a matrix multiplication. Find details about this mathematical operation by searching the internet.

In the vc-help you also can also find python method which is called “printMatrix”, maybe this is helpful for you?

Regards

---

<div class="post-metadata">

**Author:** ![ming-wang](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@ming-wang](https://forum.visualcomponents.com/u/ming-wang)\
**Post date:** [October 8, 2019, 8:37am UTC](https://forum.visualcomponents.com/t/asrs-crane-syntax-problem-in-vc/832/3 "2019-10-08T08:37:06Z")

</div>

Thank you for your guide to printMatrix usage.  
I want to ask what **comp.InverseWorldPositionMatrix** , **toComp.WorldPositionMatrix** , **locationMatrix** are defined. I have a view on vc-help that I don’t understand.
