Vectorworks, Inc Employee Julian_Carr Posted December 30, 2022 Vectorworks, Inc Employee Share Posted December 30, 2022 I have a rectangular extrude within a point PIO that has a class texture applied. I would like to set the mapping to Auto-Align Plane and also Use World Z for Origin. Any clues? Thanks! Quote Link to comment
Jesse Cogswell Posted December 30, 2022 Share Posted December 30, 2022 What you are looking for is a combination of two different commands to get Auto-Align Plane and one command for World Z Origin: SetTexMapIntN(<Handle>,<texture part>,0,1,0); {Sets map type to Plane} SetTexMapBoolN(<Handle>,<texture part>,0,7,TRUE); {Sets map to Auto-Align} SetTexMapBoolN(<handle>,<texture part>,0,6,TRUE); {Sets map to use World Z Origin} One major thing if using VW2022 or later when using objects with class textures is that you MUST have a texture assigned to the class. If not, all of the mapping gets set back to default regardless of the script commands. I've attached a little plug-in that I used to learn texturing in VS that might help you out. For your extrude, you will likely be using texture part 3 for Overall or 4 for Top, 5 for Bottom, or 6 for Sides. Texturing Test No Event.vso 3 Quote Link to comment
Vectorworks, Inc Employee Julian_Carr Posted January 4, 2023 Author Vectorworks, Inc Employee Share Posted January 4, 2023 Thanks a lot Jesse. That info got it going properly. I stuck with class textures however, because the PIO has lots of different components with different textures. 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.