gear::xsi::uitoolkit Namespace Reference

Data Structures

class  ProgressLog
 Log progress step in the script editor and/or in a progress bar. More...

Functions

def fileBrowser
 Call a file browser UI.
def folderBrowser
 Call a folder browser UI.
def pickSession
 Launch a pickSession for a unique object.
def pickSessionMulti
 Launch a pickSession for multiple objects.
def pickPosition
 Launch a pick position session for a unique position.
def pickPositionMulti
 Launch a pick position session for multiple positions.
def msgBox
 Open a message box ui.
def popWindow
 Open property.
def progressBar
 Create a ProgressBar (XSI Object).
def resetProgressBar
 Reset a ProgressBar (XSI Object).

Detailed Description


This file is part of GEAR.

GEAR is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/lgpl.html>.

Author:     Jeremie Passerin      geerem@hotmail.com
Company:    Studio Nest (TM)
Date:       2010 / 11 / 15

Author:
Jeremie Passerin

Function Documentation

def gear::xsi::uitoolkit::fileBrowser (   title,
  initialDirectory = xsi.ActiveProject2.OriginPath,
  fileName = "",
  filters = [],
  save = False 
)

Call a file browser UI.

Parameters:
title String - Name of the UI.
initialDirectory String - Initial path of the file browser.
fileName String - Initial name of the file.
filters List of String - List of extension to filter.
save Boolean - True to make it a saving UI. (Will ask confirmation of the file already exists)
Returns:
String - The path of the file. False if command was aborded.
def gear::xsi::uitoolkit::folderBrowser (   title,
  initialDirectory 
)

Call a folder browser UI.

Parameters:
title String - Name of the UI.
initialDirectory String - Initial path of the file browser.
Returns:
String - The path of the folder. False if command was aborded.
def gear::xsi::uitoolkit::pickSession (   objectFilter = c.siGenericObjectFilter,
  message = "Pick Object",
  logWarning = True 
)

Launch a pickSession for a unique object.

Parameters:
objectFilter String - Object filter.
message String - Help message for picking session.
logWarning Boolean - True to log a warning if pick session is aborded.
Returns:
X3DObject - The picked object. False if PickSession is aborded.
def gear::xsi::uitoolkit::pickSessionMulti (   objectFilter = c.siGenericObjectFilter,
  message = "Pick Object",
  logWarning = True,
  minimum = 1,
  maximum = -1 
)

Launch a pickSession for multiple objects.

Parameters:
objectFilter String - Object filter.
message String - Help message for picking session.
logWarning Boolean - True to log a warning if pick session is aborded.
minimum Integer - Minimum number position picked.
maximum Integer - Maximum number of position picked. (set to -1 for infinite)
Returns:
List of X3DObject - The picked objects. False if PickSession is aborded.
def gear::xsi::uitoolkit::pickPosition (   message = "Pick position",
  logWarning = True 
)

Launch a pick position session for a unique position.

Parameters:
message String - Help message for picking session.
logWarning Boolean - True to log a warning if pick session is aborded.
Returns:
SIVector3 - The picked position. False if PickSession is aborded.
def gear::xsi::uitoolkit::pickPositionMulti (   message = "Pick position",
  logWarning = True,
  minimum = 1,
  maximum = -1 
)

Launch a pick position session for multiple positions.

Parameters:
message String - Help message for picking session.
logWarning Boolean - True to log a warning if pick session is aborded.
minimum Integer - Minimum number position picked.
maximum Integer - Maximum number of position picked. (set to -1 for infinite)
Returns:
List of SIVector3 - The picked positions. False if PickSession is aborded.
def gear::xsi::uitoolkit::msgBox (   message,
  flag = c.siMsgExclamation,
  caption = "" 
)

Open a message box ui.

Parameters:
message String - Text to display.
flag String - Flags to control the appearance of the dialog.
caption String - Text to show in the title of the Message Box.
Returns:
Integer - Return values from XSIUIToolkit.MsgBox that indicates which button was pressed by the user.
def gear::xsi::uitoolkit::popWindow (   prop,
  width = 100,
  height = 100,
  posX = None,
  posY = None 
)

Open property.

Parameters:
prop Property - The property to open.
width Integer - Width of the window.
height Integer - Height of the window.
posX Integer - X position of the window.
posY Integer - Y position of the window.
Returns:
def gear::xsi::uitoolkit::progressBar (   maximum,
  step,
  caption,
  statusText,
  cancel 
)

Create a ProgressBar (XSI Object).

Parameters:
maximum Double - Maximum length of the progressbar.
step Double - step of progression.
caption String - Main caption text.
statutText String - secondary caption text.
cancel Boolean - Display a cancel button on the progress bar.
Returns:
ProgressBar.
def gear::xsi::uitoolkit::resetProgressBar (   progressBar,
  maximum = None,
  step = None,
  caption = None,
  statusText = None 
)

Reset a ProgressBar (XSI Object).

Parameters:
progressBar ProgressBar.
maximum Double - Maximum length of the progressbar.
step Double - step of progression.
caption String - Main caption text.
statutText String - secondary caption text.
Returns:
ProgressBar.
Generated by  doxygen 1.6.2-20100208