Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Hiding frames

#1
Is it possible to hide the station reference frame, and the robot flange reference using Python? I have tried to use the setVisible() method as shown below, but it does not seem to apply to these two frames:

Code:
def makeStation():
   station = RDK.ActiveStation()
   station.setName('Student Station')
   station.setVisible(False)                               # Does not work.
   
   station.AddFile(PATH + 'UR5_2014350238.robot')
   ur5_2014350238_base = RDK.Item('UR5 Base')
   ur5_2014350238_base.setName('UR5_2014350238 Base')
   ur5_2014350238_base.setPose(eye(4))
   ur5_2014350238_base.setVisible(False)
   
   ur5_2014350238 = RDK.Item('UR5')
   ur5_2014350238.setName('UR5_2014350238')
   ur5_2014350238.setVisible(True, False)                  # Does not work.
#2
Thank you for noticing this issue, we just fixed it with the latest version:
robodk.com/downloads/Win64

FYI, I'm moving this thread to the bugs section
  




Users browsing this thread:
1 Guest(s)