Musisback Posted November 23, 2012 Share Posted November 23, 2012 Hello, I have 2D Custom tools that work only when the active plane is "screen plane". So if I change the active plane to layer plane, they don't work correctly. How can I change the active plane to screen in my tool script? Thanks, Quote Link to comment
MullinRJ Posted November 25, 2012 Share Posted November 25, 2012 I believe SetPref(1099, True); sets the mode to Screen Plane. False sets it to Layer Plane. If you save the value before you start, you can restore it when you're done. HTH, Raymond Quote Link to comment
Musisback Posted November 26, 2012 Author Share Posted November 26, 2012 Thanks Raymond, It works fine. I have an extra question though. How do you find those constants? I couldn't find it in the appendix or anywhere on the sites : www.vectorlab.info & developer.vectorworks.net Are they other interesting websites I should know about to help me find answers by myself ? Thanks, Quote Link to comment
Hippocode Posted November 26, 2012 Share Posted November 26, 2012 (edited) ===> Here Edited November 26, 2012 by hippothamus Quote Link to comment
MullinRJ Posted November 26, 2012 Share Posted November 26, 2012 Most of the constants are in the Appendix of the VS Function Reference. There is an online version at: developer.vectorworks.net Other constants can be found in the SDK. Still others can only be found by asking the engineers at NV. Raymond Quote Link to comment
maarten. Posted November 26, 2012 Share Posted November 26, 2012 Or by duplicating an object, adjusting something in the duplicate and then run through the ObjectVariables of both object and write down the differences. Some very interesting but also confusing stuff can be found there. 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.