Page 1 of 1

Read Anchor Position

Posted: Tue Jan 21, 2020 7:15 am
by stupid_moron
I was wondering, from the Cf client, I am able to "configure positions" and thereafter "get from anchors" or "write to anchors"

However, via the python scipt, fom the CFlibmaster>lpslib>, i only see the def setposition(self,anchor_id,position) and am successful in writing the values to the nodes. How am i able to read the values from the nodes instead?

I have trid adding my own code into the "" but it doesnt seem to working.

own code aded into

def get_positon (self,ancor_id)
data = stuct.pack('Bfff", LoPoAnchor.LPP_TYPE_POSITION, x, y, z)
return data