Get en Set HOME position

I am trying to read the home position from KUKA.sim pro 3.1. After researching the internet for more than 4 hours I can’t find the answer. After some trying I get this:

from vcScript import *

comp = getComponent()
Property = comp.getProperty('HOME')

print(value)

I only get this in my ‘output panel’:

The value I want is this:

I think I am in the right way but I don’t know what I am doing wrong. Next to that, I want to be able to change the value of the HOME.

I hope some of you can help me. Sorry for my bad English btw

Hi @Borito

This forum is primarily for the Visual Components software. However, there are a lot of similarities with KUKA sim pro.
Using prop = comp.getProperty(‘property_name’) will get you the property object.
You can get and print the value of that property with print (prop.Value).
Setting a property value is done the same way, so prop.Value = “XYZ”.

1 Like

Hi @Este

Thank you for your help. The problem was indeed after the object I had to specify prop.Value. I want to thank you for your fast reply.

KInd regards,

Borito

It is one my problem too, please explain if anyone knows