michaelk Posted January 26, 2014 Share Posted January 26, 2014 I need help with 3 questions related to the command OpenScriptResPal(paletteName :STRING;open :BOOLEAN) ; and vs.OpenScriptResPal(paletteName, open) 1. Is there a way to set the screen position and size of the script palettes? I can't find a way to get the dialogID (if there is one). 2. What is the Python command to close a script palette? (It's not 'close', 'closed', 'NOT open', or 'FALSE' !) 3. I don't see a way to GET the open/close status of a script palette. What am I missing? Thanks! mk Quote Link to comment
michaelk Posted January 26, 2014 Author Share Posted January 26, 2014 Trial and error answers question 2! vs.OpenScriptResPal(paletteName,'') closes a script palette. New question 2: Why? mk Quote Link to comment
michaelk Posted February 9, 2014 Author Share Posted February 9, 2014 One last try. Anybody have any ideas? mk Quote Link to comment
Miguel Barrera Posted February 10, 2014 Share Posted February 10, 2014 I believe it may have to do with how Booleans are represented as bits. A Boolean is only one bit that has a value of 0 (false) or 1 (true). Since the length of the string evaluates to 0, it translates to false. I know that in lower level languages such as "C", you can use expressions or even functions that evaluate to numerical values in Boolean expressions. A zero is false and anything else is true. Quote Link to comment
michaelk Posted February 10, 2014 Author Share Posted February 10, 2014 Thanks, Miguel. I wish there was a VW specific Python language guide. And/Or an additional metric ton of example scripts. Any ideas about setting the screen position of script palettes? mk Quote Link to comment
MullinRJ Posted February 10, 2014 Share Posted February 10, 2014 I wish there was a VW specific Python language guide. And/Or an additional metric ton of example scripts. There will be, Michael, when "we" (meaning "you") finish writing them. ;-) Keep up the good work. Raymond 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.