Will Posted August 19, 2022 Share Posted August 19, 2022 Been banging my head against the wall with this one for a while. How do I get 2D annotation e.g. text to show up in 3D view of a custom object? Is this possible? By default 2d objects are drawn to the top/plan plane of the custom object. I've tried using SetMatrix to set the matrix to a plane that is rotated 90º about the X axis. I've tried SetRot3D and this does nothing, as expected from the documentation. Anyone got any clues about how to do this? Quote Link to comment
Marionette Maven Marissa Farrell Posted August 19, 2022 Marionette Maven Share Posted August 19, 2022 Try using Set Planar Refhttps://developer.vectorworks.net/index.php/VS:SetPlanarRef 1 Quote Link to comment
Will Posted August 19, 2022 Author Share Posted August 19, 2022 (edited) Update: So I remembered about 3d polygons. I create a 3D polygon using ConvertTo3DPolys Or just the normal way with a list of vertices. Then I try to rotate it using SetRot3D No matter what I put into SetRot3D or SetEntityMatrix it rotates the 3D polygon to the screen plane. ???? Total Confusion. EDIT Just seen Marissa's reply will try that on a 2D object. Edited August 19, 2022 by Will Posted my reply a split second after Marissa might have answered the question Quote Link to comment
Will Posted August 19, 2022 Author Share Posted August 19, 2022 OK great this works: vs.SetWorkingPlane(0,0,0,self.p.tiltX,self.p.tiltY,0) vs.SetPlanarRef(solines.handle, vs.GetCurrentPlanarRefID()) Thanks Marissa! Just so I understand better, is SetEntityMatrix only meant to be used for 3D objects? Quote Link to comment
Will Posted August 19, 2022 Author Share Posted August 19, 2022 Also, what does vs.SetPlanarTransform(h) do? 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.