AlanW Posted July 4, 2016 Share Posted July 4, 2016 (edited) Hi, Don't really know what I am doing but trying to get the 4 corners of the bounding box node. Changed a few things but get error 'tuple out of range' Can you tell me what i am doing wrong please. Thanks. Edited July 4, 2016 by Alan Woodwell Quote Link to comment
Patrick Winkler Posted July 4, 2016 Share Posted July 4, 2016 (edited) box = vs.GetBBox(obj) print (box) topL2D = box[0] topR2D = box[1] # Index out of range! botL2D = box[2] botR2D = box[3] http://developer.vectorworks.net/index.php/VS:GetBBox Hey Alan, the GetBBoc only provides two corners. You have to calculate the missing corners on you own. Edited July 4, 2016 by Patrick Winkler Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.