George Cocea Posted November 3, 2008 Share Posted November 3, 2008 I searched the VW vectorscript appendix for the viewport > advanced properties > black & white only preference assigned number but I could not find a listing. I attached a screen capture of the dialog window for info clarity. Does anybody know if there is a preference available for this option. I want to create a toggle preference script for this option. TIA, George Quote Link to comment
Pat Stanford Posted November 3, 2008 Share Posted November 3, 2008 Try 1030 This is from the Vectorscript Appendix, Object Selectors, Viewports. This is a boolean value. Pat Quote Link to comment
George Cocea Posted November 3, 2008 Author Share Posted November 3, 2008 Pat, Thank you, it does not seem to work. BTW, I am using this single line vs to clarify what I did with the info you provided. SetPref(1030, NOT GetPref(1030)); George Quote Link to comment
Pat Stanford Posted November 3, 2008 Share Posted November 3, 2008 Unfortunately it is not a pref. Try SetObjectVariableBoolean(FSActLayer,1030, Not GetObjectVariableBoolean(FSActLayer,1030)); Since it is an object variable, you need to provide a handle to the object. FSActLayer is a handle to the first selected object on the active layer. Regards, Pat Quote Link to comment
George Cocea Posted November 3, 2008 Author Share Posted November 3, 2008 Pat, It worked ! Thank you, George 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.