Poser Python Methods Manual
Poser Python Methods Manual
Poser Python Methods Manual
Table of Contents
TABLE OF CONTENTS
1 Running PoserPython Scripts..................................................................................... 1
The Scripts Menu............................................................................................................. 1 The Python Scripts Palette.............................................................................................. 1 Using the Script Buttons.............................................................................................. 1 Assigning Buttons Within the Console......................................................................... 1 Editing Scripts Within the Console.............................................................................. 2 Unassigning/Reassigning Buttons Within the Console................................................ 2 Running Python Scripts Directly.................................................................................... 2
ii
Table of Contents
iii
Launch the Python Scripts palette within Poser by selecting Window>Python Scripts. NOTE: Clicking some of the buttons will display a submenu of buttons within the Python Scripts palette. This is just one example of how Python scripts can be used to customize Poser. You can write scripts that will open button menus and submenus. If you are curious, you can open one of the existing submenu scripts to see how this is done.
Running PoserPython Scripts the desired script (.py file) using the standard operating system file picker. Once you have located the desired script, select it and click Open.
TYPES
A type is a category of data. Python includes several data types including IntType (integers), FloatType (floating decimal point numbers), StringType (alphanumeric), and NoneType (the type of the special constant None). The PoserPython extensions add the following data types to the standard Python types: Type
ActorType
Explanation
This type of data represents an actor within a figure or scene. Note the term actor refers to any individual item that can move, including body parts, cameras, lights, props, etc. Thus, a forearm is an actor, as is hair. A body is a figure. An animation set ClothSimulator data An option dictionary A figure within a scene FireFly renderer options data Pointer to a callback function Geometry forming part of a figure or prop Hair data Importer/Exporter data A node input Material data MovieMaker data A parameter (such as scale, twist, bend, etc.) Polygons (geometry surface faces) A Poser scene Shader Node Input data Shader Node data A ShaderTree Texture polygon data
AnimSetType ClothSimulatorType DictType FigureType FireFlyOptionsType FunctionType GeomType HairType ImExporterType InputType MaterialType MovieMakerType ParmType PolygonType SceneType ShaderNodeInputType ShaderNodeType ShaderTreeType TexPolygonType
Explanation
These additional data types let both you and Poser know exactly what kind of data is being manipulated and what can and cannot be done to that data.
CODES
In PoserPython, a code is a representation of a given parameter such as a coordinate, display mode, light attribute, etc. These codes make it easy to access Posers internal data and also make it easy to know which parameter is being called or set. When using them in your scripts, make sure to prefix them with poser. so that the PoserPython interpreter understands that they are predefined PoserPython member variables. For example, one might call scene.SetDisplayStyle(poser.kDisplayCodeCARTOONNOLINE) when setting the scenes display style.
DIALOG CODES
Dialog codes. They are typically used in conjunction with the DialogFileChooser( ) method.
kDialogFileChooserOpen Brings up a standard File Open dialog window. kDialogFileChooserSave Brings up a standard File Save dialog window.
DISPLAY CODES
Display codes specify the display mode, normally set by the Display Styles palette. They are typically used in conjunction with the scene.SetDisplayStyle() method.
kDisplayCodeCARTOONNOLINE Cartoon with no line display mode. kDisplayCodeEDGESONLY Outline display mode. kDisplayCodeFLATLINED Flat Lined display mode. kDisplayCodeFLATSHADED Flat Shaded display mode. kDisplayCodeHIDDENLINE Hidden Line display mode. kDisplayCodeSHADEDOUTLINED
KTextureCompressorCodeRLE Selects the Run-Length Encoding (RLE) format for texture compression. KTextureCompressorCodeZIP Selects the ZIP format for texture compression.
IMPORT/EXPORT CODES
The PoserPython options dictionary now includes enumerations of import and export options. These options correspond to UI option strings present in dialog boxes when importing/exporting files from within Poser 7 using the normal interface. For users who need access to the strings as they appear in the dialog boxes, you can query the strings by passing the enumeration constant into the ImportOptionString() and ExportOptionString() methods (discussed below). 8
The values 0 to 4 do not represent the values or choices the options are set to, but rather, they are simply codes uniquely identifying each option. It is unlikely that you will ever need to know or set them. A more typical use of import/export option enumeration values is illustrated in the following line of code:
options[poser.kExOptCodeFIRSTFRAME] = 2
10
kImOptCodeCENTERED Center object kImOptCodeFLIPNORMS Flip normals. kImOptCodeFLIPUTEXTCOORDS Flip U texture coordinates. kImOptCodeFLIPVTEXTCOORDS Flip V texture coordinates. kImOptCodeMAKEPOLYNORMSCONSISTENT Make polygon normals consistent. kImOptCodeOFFSETX X offset amount. kImOptCodeOFFSETY Y offset amount. kImOptCodeOFFSETZ Z offset amount. kImOptCodePERCENTFIGSIZE Figure scale in percent kImOptCodePLACEONFLOOR Place object on floor kImOptCodeWELDIDENTICALVERTS Weld identical vertices.
LANGUAGE CODES
Language codes are codes representing the various languages for which this copy of Poser 7 may be localized.
kLanguageCodeFRENCH Return value for the Poser.Language() method (described below) kLanguageCodeGERMAN Return value for the Poser.Language() method (described below)
11
LIGHT CODES
These codes are used to set the light types. They are typically used in conjunction with the actor.SetLightType() method.
kLightCodeIMAGE Image Based light. kLightCodeINFINITE Infinite light. kLightCodeLOCAL Local light. kLightCodePOINT Point light. kLightCodeSPOT Spotlight.
PALETTE CODES
These codes are used to specify specific palettes within Poser.
kCmdCodeAPPLYBULGES Enables the Apply Bulges checkbox on the Joint Editor. Note: This constant is not officially supported by e frontier, and we make no guarantees as to its functionality or future availability. kCmdCodeANIMATIONPALETTE Returns the Animation palette. kCmdCodeGROUPPALETTE Returns the Group Editor palette. kCmdCodeJOINTPALETTE Returns the Joint Editor palette. kCmdCodeLIBRARYPALETTE
12
kCmdCodeLIBRARYPALETTEFIGURES Returns the Library palette, open to the Figures category. Note: This constant is not officially supported by e frontier, and we make no guarantees as to its functionality or future availability. kCmdCodePANDPPALETTE Returns the Parameters and Properties palette. kCmdCodeWALKPALETTE Returns the Walk Designer. kCmdCodeZEROFIGURE Sends the Zero Figure command to the Joint Editor; returns the figure to its original neutral pose. Note: This constant is not officially supported by e frontier, and we make no guarantees as to its functionality or future availability.
PARAMETER CODES
These codes are used to specify specific Poser parameters. For example, instead of using the actor.Parameter(xTran) method, the actor.ParameterByCode(poser.kParmCodeXTRAN) can be used to return the x-axis translation parameter for the actor.
kParmCodeASCALE Uniform scale parameter. kParmCodeCENTER For internal Poser use only. KParmCodeCLOTHDYNAMICS Dynamic cloth simulation parameter. kParmCodeCURVE Strength of bend deformation for an object using curve deformation. kParmCodeDEPTHMAPSIZE Parameter representing the x and y depth map resolution attached to a given light. kParmCodeDEPTHMAPSTRENGTH Intensity of shadow produced from a given light. Valid values range from 0.0 to 1.0. A value of 1.0 indicates full shadow, and 0.0 indicates no shadow. kParmCodeFOCAL Camera focal length parameter. kParmCodeFOCUSDISTANCE
13
kParmCodeFOCUSDISTANCE Camera focus distance parameter (affects Depth of Field effect). kParmCodeFSTOP Camera f-stop parameter (affects Depth of Field effect). kParmCodeGEOMCHAN For objects containing more than one possible geometry, this parameter specifies which geometry to use (such as the hands in Poser 1 and 2 figures). kParmCodeGRASP Hand grasp parameter. KParmCodeHAIRDYNAMICS Dynamic hair simulation parameter. kParmCodeHITHER Camera parameter specifying a near clipping plane distance. kParmCodeKDBLUE Blue component of the diffuse color. kParmCodeKDGREEN Green component of the diffuse color. kParmCodeKDINTENSITY Uniform intensity scale of the diffuse color. kParmCodeKDRED Red component of the diffuse color. kParmCodeLITEATTENEND Light attenuation ending parameter. kParmCodeLITEATTENSTART Light attenuation starting parameter. kParmCodeLITEFALLOFFEND Ending distance for a lights falloff zone. kParmCodeLITEFALLOFFSTART Starting distance for a lights falloff zone. kParmCodePOINTAT
14
15
kParmCodeWAVEPHASE Wave objects phase parameter. kParmCodeWAVESINUSOIDAL Wave objects sinusoidal form parameter. kParmCodeWAVESQUARE Wave objects square form parameter. kParmCodeWAVESTRETCH Wave objects stretch parameter. kParmCodeWAVETRIANGULAR Wave objects triangular form parameter. kParmCodeWAVETURBULENCE Wave objects turbulence parameter. kParmCodeXROT Rotation about the X-axis. kParmCodeXSCALE Amount of scale along the X-axis kParmCodeXTRAN Translation along the X-axis. kParmCodeYON Camera parameter specifying a far clip plane distance. kParmCodeYROT Rotation about the Y-axis. kParmCodeYSCALE Amount of scale along the Y-axis. kParmCodeYTRAN Translation along the Y-axis. kParmCodeZROT Rotation about the Z-axis. kParmCodeZSCALE Amount of scale along the Z-axis
16
ROOM CODES
The following codes specify individual rooms within Poser that can be called within the PoserPython interface.
KCmdCodeCLOTHROOM Specifies the Cloth room. KCmdCodeCONTENTROOM Specifies the Content room. KCmdCodeFACEOOM Specifies the Face room. KCmdCodeHAIRROOM Specifies the Hair room. KCmdCodeMATERIALROOM Specifies the Material room. KCmdCodePOSEROOM Specifies the Pose room. KCmdCodeSETUPROOM Specifies the Setup room.
17
18
19
Specifies a Gather raytrace lighting node. kNodeTypeCodeGLOSSY Specifies a Glossy specular lighting node. kNodeTypeCodeGRANITE Specifies a Granite 3D texture node. kNodeTypeCodeHAIR Specifies a Hair special lighting node. kNodeTypeCodeHSV Specifies an HSV mode User Defined color node. kNodeTypeCodeIMAGEMAP Specifies an Image Map 2D texture node. kNodeTypeCodeLIGHT Specifies a Root Light shader node. kNodeTypeCodeMARBLE Specifies a Marble 3D texture node. kNodeTypeCodeMATH Specifies a Math Function math node. kNodeTypeCodeMOVIE Specifies a Movie 2D texture node. kNodeTypeCodeN Specifies an N variable node. kNodeTypeCodeNOISE Specifies a Noise 3D texture node. kNodeTypeCodeP Specifies a P variable node. kNodeTypeCodePHONG Specifies a Phong specular lighting node. kNodeTypeCodePOSERSURFACE Specifies the standard Poser surface root node.
20
kNodeTypeCodePROBELIGHT Specifies a ProbeLight diffuse lighting node. kNodeTypeCodeREFLECT Specifies a Reflect raytrace lighting node. kNodeTypeCodeREFRACT Specifies a Refract raytrace lighting node. kNodeTypeCodeSIMPLECOLOR Specifies a Simple Color math node. kNodeTypeCodeSKIN Specifies a Skin special lighting node. kNodeTypeCodeSPECULAR Specifies a standard Specular lighting node. kNodeTypeCodeSPHEREMAP Specifies a Sphere Map environment map lighting node. kNodeTypeCodeSPOTS Specifies a Spots 3D texture node. kNodeTypeCodeTILE Specifies a Tile 2D texture node. kNodeTypeCodeTOON Specifies a Toon diffuse lighting node. kNodeTypeCodeTURBULENCE Specifies a Turbulence 3D texture node. kNodeTypeCodeU Specifies a U Texture Coordinate variable node. kNodeTypeCodeUSERDEFINED Specifies a User Defined custom color math node. kNodeTypeCodeV Specifies a V Texture Coordinate variable node.
21
kNodeTypeCodeVELVET Specifies a Velvet special lighting node. kNodeTypeCodeWAVE2D Specifies a Wave2D 2D texture node. kNodeTypeCodeWAVE3D Specifies a Wave3D 3D texture node. kNodeTypeCodeWEAVE Specifies a Weave 2D texture node. kNodeTypeCodeWOOD Specifies a Wood 3D texture node.
22
CALLBACK CODES
A callback is a user-defined function called by the Poser code. In the following example, the callback is eventCallbackFunc. Users write this with their intended functionality then pass it back to Poser to call at the appropriate time. The constants can be used in the callback function to detect the events that occurred. For example, to test a passed back event type to see if a new actor was selected, do the following: First define a callback function:
def eventCallbackFunc(iScene, iEventType): if(iEventType & poser.kEventCodeACTORSELECTIONCHANGED): print A new actor was selected.
Now set this function to be the event callback for the scene:
scene = poser.Scene() scene.SetEventCallback(eventCallbackFunc
Now, whenever a new actor is selected, the python output window will display a message to that effect.
kCBFrameChanged not used kCBSceneChanged not used kCValueChanged not used kEventCodeACTORADDED Check to see if an actor has been added. kEventCodeACTORDELETED Check to see if an actor has been deleted. kEventCodeACTORSELECTIONCHANGED Check to see if a different actor has been selected. keventCodeANIMSETSCHANGED Check to see if the animation set has changed. kEventCodeITEMRENAMED Check to see if an item has been renamed. kEventCodeKEYSCHANGED Check to see if keyframes have changed.
23
METHODS
This section contains the list of custom PoserPython methods. Each method is listed in a separate table, and each table is laid out as follows: Method Name: The exact name of the method. Explanation: What the method does. Arguments: This is a list of possible arguments valid for the listed method. Syntax: Displays the methods syntax in the format Return, Method, Arguments, for example: <return value type> Method (<type of argument> argument 1, <type of argument> argument 2). Arguments enclosed in curly braces { } are optional and may default to a value if not specified by caller. Default values are shown following the equals sign. Example: Some method listings contain an example of how that method might be used.
NOTE: Please note that file paths differ between Mac and Windows operating systems. A Mac path might appear as MyHardDisk:SomeFolder:Poser:Runtime:Python: poserScripts:myscript.py, whereas a Windows path might look like C:\Some Folder\Poser\Runtime\Python\poserScripts\myscript.py. This is reflected in the different platform-specific versions of Python, and it is similarly reflected here. Please refer to one of the Python resources listed above for further information. Furthermore, PoserPython allows the user to refer to files relative to the Poser folder, for example: Runtime:Python:poserScripts: myscript.py and Runtime\Python\poser Scripts\ myscript.py, respectively.
GENERAL METHODS
Method Name Explanation Arguments Syntax AppLocation Query the file path location of the Poser application. none <StringType> AppLocation()
24
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
AppVersion Query the version of the Poser application. none <StringType> AppVersion() ClearCommands Clear the command stack. None <NoneType> ClearCommand() CloseDocument Close the current Poser document. When set to a value other than zero, the argument causes the method to discard any changes. Discard changes = 0 by default. <NoneType> CloseDocument({<IntType> discardChanges = 0}) CommandNames Returns a list of command names. The first name in the list is the oldest command in the stack. none <List of StrType> CommandNames() CurrentCommand Returns the current command index. none <IntType> CurrentCommand() DefineMaterialWacroButton Attach a python script to one of 10 user defineable material wacro buttons. This method is related to Wacro Setup. This method requires 3 arguments: Index: Index specifies to which button the script will be assigned, from 1 to 10, with 1 being the top button. File Path: The file name and path of the script that the button will access.
Label: How you wish to label the button. <NoneType> DefineMaterialWacroButton(<IntType> buttonIndex, <StringType> filePath, <StringType> label) DefineProjGuideHTMLWidget Specify which HTML document will appear in the Project Guide palette. Enter the palette title you wish to display while the HTML file is showing, and the file
25
Syntax Example
Button Number: From 1 to 10, the button to which the script will be assigned, with 1 being the top button. File Path: The complete path to the desired script. Label: How you wish to label the button.
<NoneType> DefineScriptButton(<IntType> buttonIndex, <StringType> filePath, <StringType> label) poser.DefineScriptButton (1, C:\Program Files\Curious Labs\Poser 4\Runtime\Python\test.py, Test Script) ExecFile Run a Python script using a Mac or Windows pathname. Enter the complete path of the script you wish to execute. <NoneType> ExecFile(<StringType> fileName) poser.ExecFile (My Macintosh:Curious Labs:Poser 4:Runtime: Python:test.py) Language Query the applications language. The integer returned will match one of the language codes explained above. none <IntType> Language() Libraries Query the file paths of the Libraries. Returns an array of the Library paths none <StringType> Libraries() NewDocument
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name
26
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
27
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
28
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
SCENE METHODS
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Actor Find a scene actor by its external name. This is the name seen in Poser GUI pull-down menus (such as Left Forearm). Enter the desired actors external name. <ActorType> Actor(<StringType> actorName) actor = scene.Actor(Left Forearm) ActorByInternalName Find a scene actor by its internal name. The argument string is the unique identifier for the object kept internally by Poser. Enter the actors internal name. <ActorType> ActorByInternalName(<StringType> internalName) actor = scene.ActorByInternalName(lRing2) Actors Get a list of the non-figure actor objects in the scene. Actors are items that populate the scene such as props, cameras, lights, or deformers. They can also be body-parts of a figure, although body-part actors will not be returned in this list. To get a list of actors belonging to a figure, use the Actors() method for a figure object. none
Arguments
29
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name
30
31
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax
CopyToClipboard Copy the current display to the clipboard. none <NoneType> CopyToClipboard() CreateAnimSet Create a new animation set with the selected name. Note that if entering a name of an already existing animation set will cause an exception error. Enter your desired animation set name, ensuring there is not already an existing animation set with the same name. <AnimSetType> CreateAnimSet(<StringType> AnimSetName) newAnimSet = scene.CreateAnimSet(MyNewAnimationSet) CreateClothSimulator Create a new ClothSimulator object. Specify the name of the ClothSimulator object. <ClothSimulatorType> CreateClothSimulator(<StringType> name) CreateGeomFromGroup Generate a new geometry object from a polygon group. Enter a valid group name from which the polygons will be obtained. <GeomType> CreateGeomFromGroup(<ActorType> actor, <StringType> groupName) geom = scene.CreateGeomFromGroup(Abdomen) CreateLight Create a new spotlight in the scene. none <NoneType> CreateLight() CreateMagnet Create a magnet on the current actor. none <NoneType> CreateMagnet() CreatePropFromGeom Create a new scene prop from a geometry. This method requires 2 arguments:
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
Geometry: This object can be obtained from existing actor geometry, or it can be
32
Syntax Example
<ActorType> CreatePropFromGeom(<GeomType> geometry, <StringType> propName) newProp = scene.CreatePropFromGeom(someActor.Geometry(), ImaProp) CreateWave Create a wave deformer on the current actor. none <NoneType> CreateWave() CurrentActor Get the currently selected actor. none <ActorType> CurrentActor() CurrentCamera Get the current camera. Note that cameras are a specific kind of actor. none <ActorType> CurrentCamera() CurrentFigure Get the currently selected figure. none <FigureType> CurrentFigure() CurrentFireFlyOptions Returns the current FireFly options. none <FireFlyOptionsType> CurrentFireFlyOptions() CurrentLight Get the current light. Note that lights are a specific kind of actor. none <ActorType> CurrentLight() CurrentMaterial Returns the currently selected material. Returns None if no material is selected. none
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
33
Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
<MaterialType> CurrentMaterial() CurrentRenderEngine Get the current render engine. none <IntType> CurrentRenderEngine() DeleteAnimSet Delete the specified animation set. Enter your desired animation set name. <NoneType> DeleteAnimSet(<StringType> AnimSetName) scene.DeleteAnimSet(MyNewAnimationSet) DeleteCurrentFigure Delete the currently selected figure. none <NoneType> DeleteCurrentFigure() DeleteCurrentProp Delete the currently selected prop. none <NoneType> DeleteCurrentProp() DisplayStyle Get the documents interactive display style. Typical return values correspond to poser member variable constants (such as poser.kDisplayCodeWIREFRAME). none <IntType> DisplayStyle() Draw Redraw modified objects. none <NoneType> Draw() DrawAll Redraw everything in the scene. none <NoneType> DrawAll()
34
35
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
Arguments Syntax
36
Arguments
Filename: Enter the complete path and file name. Left Hand: Entering 0 returns a left hand, any other value returns a right.
Syntax Example
<NoneType> LoadLibraryHand(<StringType> filePath, {<IntType> leftHand = 0}) scene.LoadLibraryHand(\Runtime\Libraries\MyHands. hd2, 1) LoadLibraryLight Load light positions from a light library file (.lt2). The filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under Poser/Runtime/libraries. Enter the complete path and file name. <NoneType> LoadLibraryLight(<StringType> filePath) scene.LoadLibraryLight(\Runtime\Libraries\ MyLight.lt2) LoadLibraryPose Load pose from a pose library file (.pz2). The filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under Poser/Runtime/libraries. Enter the complete path and file name.
Arguments
37
Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
38
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
NumCameras Return the number of cameras in the scene. none <IntType> NumCameras() NumClothSimulators Returns the number of ClothSimulators in the scene. none <IntType> NumClothSimulators() NumFigures Return the number of figures in the scene. none <IntType> NumFigures() NumFrames Return the number of frames of animation. none <IntType> NumFrames() NumGeometries Return the number of geometries in the scene (equal to the number of props [numProps] + plus the number of body parts [numBodyParts]). none <IntType> NumGeometries() NumImageMaps Return the number of image-maps in the scene. none <IntType> NumImageMaps() NumLights Return the number of lights in the scene. none <IntType> NumLights() NumProps Return the number of props in the scene. none <IntType> NumProps()
39
OutputRange Return a tuple containing the frame range to be used for image and library output. All frame numbers in PoserPython are relative to a starting frame of 0. For this reason, a frame number in Python is 1 less than the equivalent frame as referenced from the Poser GUI. none (<IntType> x, <IntType> y) OutputRange() OutputRes Return a tuple containing the output image. The resolution consists of a horizontal and a vertical number of pixels. none (<IntType> x, <IntType> y) OutputRes() PrevKeyFrame Return the frame number of the previous key frame for the current actor. none <IntType> PrevKeyFrame() PrevKeyFrameAll Return the frame number of the previous key frame in the scene. none <IntType> PrevKeyFrameAll() ProcessSomeEvents Process the specified number of Poser events. Enter the number of events to process (integer value). <NoneType> ProcessSomeEvents({<IntType> numEvents = <argument>) ProcessSomeEvents(numEvents = 1) Render Render to the current view. none <NoneType> Render() RenderAntiAliased Query renderers use of anti-aliasing. A return value of 1 indicates that the option is on, while a value of 0 indicates that it is off. none
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments
40
41
Format : Enter the three-character file suffix for your desired image format. Supported formats are BMP, JPG, PCT, PNG, and TIF. Filename: Enter the complete path and filename.
Syntax Example
<NoneType> SaveImage(<String Type> formatSuffix, <StringType> filePath) scene.SaveImage (bmp, C:\My Documents\My Pictures\mypic.bmp) SaveLibraryCamera Save the current cameras to a camera library file (.cm2). The filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under Poser/Runtime/libraries.
Arguments
Filename: Enter the complete path and filename. Multiple frames: Enter 0 for a single frame, any other value for multiple frames. Start Frame: Enter the starting frame of the current animation to save. End Frame: Enter the ending frame of the current animation to save.
Syntax
<NoneType> SaveLibraryCamera(<StringType> filePath, {<IntType> multiFrame, <IntType> startFrame, <IntType> endFrame}) scene.SaveLibraryCamera(Runtime\Libraries\ MyCamera.cm2, 1,25,68) SaveLibraryFace Save the current face as a face library file (.fc2). The Filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under
Example
42
Filename: Enter the complete path and filename. Multiple frames: Enter 0 for a single frame, any other value for multiple frames. Start Frame: Enter the starting frame of the current animation to save. End Frame: Enter the ending frame of the current animation to save.
Syntax
<NoneType> SaveLibraryFace(<StringType> filePath, {<IntType> multiFrame = 0, <IntType> startFrame = 0, <IntType> endFrame = 0}) scene.SaveLibraryFace(\Runtime\Libraries\MyFace. fc2, 1,25,68)
Example
SaveLibraryFigure Save current figure to a character library file (.cr2). The filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under Poser/Runtime/libraries. Enter the complete file name and path. <NoneType> SaveLibraryFigure(<StringType> filePath) scene.SaveLibraryFigure(Runtime:Libraries: MyFigure.cr2) SaveLibraryHair Save figure hair to a hair library file (.hr2). The filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under Poser/Runtime/libraries. Enter the complete file name and path. <NoneType> SaveLibraryHair(<StringType> filePath) scene.SaveLibraryHair(Runtime:Libraries:MyHair. hr2) SaveLibraryHand Save hand pose to a hand library file (.hd2). The filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under Poser/Runtime/libraries. Enter the complete file name and path. <NoneType> SaveLibraryHand(<StringType> filePath, {<IntType> multiFrame = 0, <IntType> startFrame = 0, <IntType> endFrame = 0}) scene.SaveLibraryHand(Runtime:Libraries:MyHair. hd2) SaveLibraryLight Save current lights to a light library file (.lt2). The filename should be a path (either absolute or relative to the Poser folder). Libraries are typically stored under Poser/Runtime/libraries. Enter the complete file name and path.
Arguments Syntax
Arguments
43
Arguments Syntax
Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
44
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0.
Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
<NoneType> SetBackgroundColor(<FloatType> R, <FloatType> G, <FloatType> B) scene.SetBackgroundColor(0.4,0.5,0.6) SetBackgroundImage Set the background image to the specified file. The filename should be a path (either absolute or relative to the Poser folder). Enter the complete file name and path. <NoneType> SetBackgroundImage(<StringType> filePath) scene.SetBackgroundImage(D:\Images\MyImage.jpg) SetBackgroundMovie Set background movie to show behind scene. The filename should be a path (either absolute or relative to the Poser folder). Enter the complete file name and path. <NoneType> SetBackgroundMovie(<StringType> movieName) scene.SetBackgroundImage(D:\Movies\MyMovie.avi) SetCurrentCamera Set the current camera. Note that cameras are a specific kind of actor. Enter a valid Poser camera object. <NoneType> SetCurrentCamera(<ActorType> camera) SetCurrentCamera(leftCamera) SetCurrentLight Set the current light. Note that lights are a specific kind of actor. Enter a valid Poser light actor. <NoneType> SetCurrentLight(<ActorType> light) scene.SetCurrentLight(spotLight) SetCurrentRenderEngine Set the current render engine.
45
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0.
<NoneType> SetForegroundColor(<FloatType> R, <FloatType> G, <FloatType> B) scene.SetForegroundColor(0.4,0.5,0.6) SetFrame Set the current frame number. All frame numbers in PoserPython are relative to a starting frame of 0. For this reason, a frame number in Python is 1 less than the equivalent frame as referenced from the Poser GUI. Enter a valid frame number. <NoneType> SetFrame(<IntType> frame) scene.SetFrame(23) SetGroundColor Set the ground RGB color using values in the range 0.0 to 1.0)
46
<NoneType> SetGroundColor(<FloatType> R, <FloatType> G, <FloatType> B) scene.SetGroundColor(0.4,0.5,0.6) SetGroundShadows Toggle display of ground shadows. The default argument of 1 specifies that the option should be turned on. To turn it off, call the function with an argument of 0. Enter 0 to disable ground shadows, or 1 to enable them. <NoneType> SetGroundShadows({<IntType> on = 1}) scene.SetGroundShadows(1) SetMeAsStartupScript Specify the current script as the Python script associated with the current Poser doc and executed on startup when the document is re-opened. none <NoneType> SetMeAsStartupScript() SetOutputRange Specify the output frame range to be used for image and library output (for images). All frame numbers in PoserPython are relative to a starting frame of 0. For this reason, a frame number in Python is 1 less than the equivalent frame as referenced from the Poser GUI.
Arguments
Start Frame (X): Enter a numeric value that is less than or equal to the end frame value. End Frame (Y): Enter a numeric value that is greater than or equal to the start frame value.
Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
<NoneType> SetOutputRange(<IntType> x, <IntType> y) scene.SetOutputRange(25,67) SetOutputRes Set output resolution (for images). Resolution consists of a horizontal and a vertical number of pixels. Enter a dimension in pixels using the format x,y. <NoneType> SetOutputRes(<IntType> x, <IntType> y) scene.SetOutput Res(640,480) SetRenderAntiAliased Toggle renderer anti-aliasing. The default argument of 1 specifies that the option should be turned on. To turn it off, call the function with an argument of 0.
47
48
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments
SetRenderToNewWindow Toggle render-to-new-window option. The default argument of 1 specifies that the option should be turned on. To turn it off, call the function with an argument of 0. Enter 1 to render to a new window, or 0 to disable it. <NoneType> SetRenderToNewWindow({<IntType> on = 1}) scene.SetRenderToNewWindow(0) SetShadowColor Set the shadow RGB color using values in the range 0.0 to 1.0)
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0.
<NoneType> SetShadowColor(<FloatType> R, <FloatType> G, <FloatType> B) scene.SetShadowColor(1.0,1.0,0.3) SetSound Specify the sound file to be associated with this Poser document. Sound files play during animation. Enter the complete path and file name.
49
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0.
(<FloatType> R, <FloatType> G, <FloatType> B) ShadowColor() scene.ShadowColor(1.0,1.0,0.3) Sound Return the name of the sound file associated with the current Poser document that plays during animations. none
50
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
MOVIEMAKER METHODS
Method Name FlashAutoPlay
51
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
FlashDrawInnerLines Query the Draw Inner Lines option for Flash export. A return value of 1 means that the option is on, while a 0 means that the option is off. none <IntType> FlashDrawInnerLines() FlashDrawOuterLines Query the Draw Outer Lines option for Flash export. A return value of 1 means that the option is on, while a 0 means that the option is off. none <IntType> FlashDrawInnerLines() FlashLineWidth Get the width of drawn lines for Flash export. Note that both inner and outer lines use the same line width. none <FloatType> FlashLineWidth() FlashNumColors Get the number of colors to be used for Flash export. none <IntType> FlashNumColors() FlashOverlapColors Query the Overlapping Colors option for Flash export. A return value of 1 means that the option is on, while a 0 means that the option is off. none <IntType> FlashOverlapColors() FlashQuantizeAll Query the Quantize All Frames option for exporting Flash. A return value of 1 means that the option is on, while a 0 means that the option is off. Note that this return value will always be the negation of moviemaker.FlashQuantizeOne. none <IntType> FlashQuantizeAll() FlashQuantizeFrame Get the frame to be quantized when exporting Flash with the quantize-one-frame option
52
Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
53
Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
54
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
SetFlashQuantizeFrame Specify the frame to be quantized when exporting Flash with the quantize-one-frame option on. Enter the number of the selected frame. <NoneType> SetFlashQuantizeFrame({<IntType> frame}) mm.SetFlashQuantizeFrame(4) SetFlashQuantizeOne Quantize a specified frame when exporting Flash. If the frame argument is supplied, the quantize frame will be set to it. Otherwise, the existing value will be used. Enter the desired frame number. <NoneType> SetFlashQuantizeOne({<IntType> frame}) mm.SetFlashQuantizeOne(12) SetOutputEndFrame Set the last frame to be used in making the movie. All frame numbers in PoserPython are relative to a starting frame of 0. For this reason, a frame number in Python is 1 less than the equivalent frame as referenced from the Poser GUI. Enter the number of the ending frame. <NoneType> SetOutputEndFrame(<IntType> frame) mm.SetOutputEndFrame(60) SetOutputRes Set output resolution (for movies). Enter the X and Y resolution in pixels. <NoneType> SetOutputRes(<IntType> x, <IntType> y) mm.SetOutputRes(640,640) SetOutputStartFrame Set the first frame to be used in making the movie. All frame numbers in PoserPython are relative to a starting frame of 0. For this reason, a frame number in Python is 1 less than the equivalent frame as referenced from the Poser GUI. Enter the number of the starting frame. <NoneType> SetOutputStartFrame(<IntType> frame) mm.SetOutputStartFrame(1)
Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
IMPORTER/EXPORTER METHODS
Method Name Explanation Export Export models using plug-ins. The file suffix argument is the extension typically following files of the type to be exported, such as dxf. The filePath string (which can
55
Syntax
Example
56
Arguments
57
Attribute Name: Enter the name of the attribute you wish to add. Value: Enter the desired value of the attribute.
<NoneType> AddAttribute(<StringType> name, <StringType> value) animset.AddAttribute(MyAttribute,1) AddObjectRange Add an object range to the animation set. The entity provided must be a figure, actor, or parameter.
Object: Enter the name of a valid figure, actor, or parameter. Start Frame: Enter the number of the starting frame you wish to include (Python frames begin with 0). This number should be less than the end frame number. End Frame: Enter the number of the last frame you wish to include (Python frames begin with 0). This number should be greater than the start frame number.
Syntax
<NoneType> AddObjectRange (<FigureType, Actor Type, or ParmType>, sceneEntity, <IntType> StartFrame, <IntType> EndFrame) animset.AddObjectRange(someActor,5,20) Attributes Get a list of all attributes in the current animation set. Attributes are tuples consisting of the name of animation set and the corresponding value strong. none <TupleType list> Attributes() ObjectRange Get the object range for the specified animation set. none (<IntType> startFrame, <IntType> endFrame) ObjectRange() RemoveAttribute Remove an existing attribute from the current animation set.
Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
Attribute Name: Enter the name of the attribute you wish to add. Value: Enter the desired value of the attribute.
58
Object: Enter the name of a valid figure, actor, or parameter. Start Frame: Enter the number of the starting frame you wish to include (Python frames begin with 0). This number should be less than the end frame number. End Frame: Enter the number of the last frame you wish to include (Python frames begin with 0). This number should be greater than the start frame number.
Syntax
<NoneType> RemoveObjectRange (<FigureType, ActorType, or ParmType>, sceneEntity, <IntType> StartFrame, <IntType> EndFrame) animset.RemoveObjectRange(someActor,5,20)
Example
ACTOR METHODS
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax AddKeyFrame Add a key frame for this parameter at the specified frame. If no frame is specified, a keyframe will be added at the current frame. Enter a valid frame number. <NoneType> AddKeyFrame({<IntType> frame}) AddKeyFrame(81) AlignmentRotationXYZ Get a tuple comprising the ordered rotation alignment for this actor. (order is X, Y, Z) none (<FloatType>, <FloatType>, <FloatType>) AlignmentRotationXYZ() AltGeomFileName Get the name of the alternate geometry file used by this actor (if specified). none <StringType> AltGeomFileName() AmbientOcclusion Query whether this light (if this actor is an image light) is using ambient occlusion. none <IntType> AmbientOcclusion()
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
59
60
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
Children Get a list of the actors that are the children of the actor given. none <ActorType List> Children() ClearLocalTransformCallback Clear the local transform callback. none <NoneType> ClearLocalTransformCallback() ClearVertexCallback Clear the vertex callback. none <NoneType> ClearVertexCallback() CreateHairGroup Create a new hair group. Specify the name of the hair group you wish to create. <HairType> CreateHairGroup(<StringType> name) CreateValueParameter Create a value parameter on the universe actor. This type of parameter is not linked to Poser elements such as figures, props, etc. Rather, it can be used to add user interface control to your Python scripts. Enter a name for the new parameter. <ParmType> CreateValueParameter(<StringType> valueParmName) parm = actor.CreateValueParameter(MyNewParameter) Delete Delete the actor from the scene if possible. Note that you cannot delete a body part from a figure. none <NoneType> Delete() DeleteKeyFrame Delete a key frame for this actor at the specified frame. If no frame is specified, a keyframe will be deleted at the current frame. Enter a valid frame number. <NoneType> DeleteKeyFrame({<IntType> frame}) parm.DeleteKeyFrame(30)
Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example
61
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation
DisplacementBounds Get the actor's displacement bounds. none <FloatType> DisplacementBounds() DisplayStyle Get the interactive display style for this actor. Typical return values correspond to poser member variable constants (such as poser.kDisplayCodeWIREFRAME). Enter a valid display code. <NoneType> SetDisplayStyle(<IntType> displayCode) actor.SetDisplayStyle(poser.kDisplayCode SMOOTHSHADED) DropToFloor Drop the actor downward (along the Y axis) until it touches the floor (Y==0). none <NoneType> DropToFloor() EndPoint Get the position of the current actors endpoint. The endpoint is typically also the origin of an objects child. Its also a specified endpoint used for on-screen interactions and potentially for IK relationships. It also typically ends a line along the first rotation (twist) axis. none (<FloatType> x, <FloatType> y, <FloatType> z) EndPoint() GeomFileName Returns the filename of the geometry bring used by the figure, if any. none <StringType> figure.GeomFileName() Geometry Get the geometry for the actor. The returned geometry object can then be queried for vertex, set, or polygon information. none <GeomType> Geometry() HairGroup Get the hair group specified by the index. Enter the index of the desired hair group.
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
62
63
64
Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax
65
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name
66
67
Reset Reset the actor to its default, or last memorized, values (See actor.Memorize()). none <NoneType> Reset() SaveMaterialCollection Save the material collection of this actor. Note that only selected materials will be included. See the SetSelected and Selected methods in the Material Methods section for information on selecting and querying selection of materials. Enter the file name for the material collection. <NoneType> SaveMaterialCollection(<StringType> FileName) ScaleMatrix Get the scale matrix for the actor. none <FloatType 4x4 Tuple> ScaleMatrix() SetAlignmentRotationXYZ Set the tuple comprising the ordered rotation alignment for this actor. Enter valid floating-point values for X, Y, and Z rotation (order is X, Y, and Z). Angles are in degrees. <NoneType> SetAlignmentRotationXYZ(<FloatType> Rx, <FloatType> Ry, <FloatType> Rz ) actor.SetAlignmentRotationXYZ(4.53, 7.61, 1.01) SetAmbientOcclusion Set whether this light (if this actor is an image light) is using ambient occlusion. Enter 1 to use ambient occlusion, or 0 to disable ambient occlusion for this light. <NoneType> SetAmbientOcclusion(<IntType> ambientocclusion) SetAmbientOcclusionBias Set the ambient occlusion bias of this light (if this actor is an image light). Enter the desired bias for this light. <NoneType> SetAmbientOcclusionBias(<FloatType> bias) SetAmbientOcclusionDistance Set the ambient occlusion maximum distance of this light (if this actor is an image light). Enter the desired maximum distance for this light. <NoneType> SetAmbientOcclusionDistance(<FloatType> distance)
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
68
SetAmbientOcclusionStrength Set the ambient occlusion strength of this light (if this actor is an image light). Enter the ambient occlusion strength value. <NoneType> SetAmbientOcclusionStrength(<FloatType> strength) SetAtmosphereStrength Set the atmosphere strength for this light (if this actor is a light). Atmosphere strength value. <NoneType> SetAtmosphereStrength(<FloatType> atmStrength) actor.SetAtmosphereStrength(0.15) SetBackfaceCull Set the actor's backface culling flag. Enter 1 to activate backface culling during rendering, or 0 to disable backface culling. <NoneType> SetBackfaceCull(<IntType> on = 1) SetBends Sets the actors bend flag. Enter 1 to set the flag, 0 to disable it. <NoneType> SetBends({<IntType> bends=<1 or 0>}) SetBends(bends=1) SetCastShadows Set whether this actor casts shadows. Enter 1 to cast shadows, or 0 to disable shadows. <NoneType> SetCastsShadows(<IntType> Cast) SetDisplacementBounds Set the actor's displacement bounds. Displacement bounds value. <NoneType> SetDisplacementBounds(<FloatType> dispBounds) actor.SetDisplacementBounds(0.9) SetDisplayStyle Set the display style to be used for this actor. Typical display code constants are defined as poser member variables (e.g. poser.kDisplayCodeWIREFRAME). Enter a valid display code. <NoneType> SetDisplayStyle(<IntType> displayCode)
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax
69
Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation
70
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments
Parameter Name: Enter a valid parameter name. Value: Enter a valid value for the selected parameter.
Syntax Example
71
SetParent Set the specified actor as the parent of the current actor. If inheritBends is 1, this actor will acquire the bend parameters of the parent. If Realign is 1, this actor will be realigned to the local space of the parent.
Arguments
New Parent: The actor that will become the new parent of this actor. Inherit Bends: Defaults to 0. Enter 1 to specify that this actor should inherit the bends from the new parent. Realign: Defaults to 0. Enter 1 to specify that this actor should be realigned to conform to the new parent.
<NoneType> SetParent(<ActorType> newParent, {<IntType> inheritBends = 0, <IntType> realign = 0}) childActor.SetParent(ParentActor, 1, 0) SetRangeConstant Set the given frame range to have constant (step) interpolation between keyframes for all parms of this actor. Note: automatically sets keyframes at start and end of specified range. Enter valid start and end frame numbers. <NoneType> SetRangeConstant(<IntType> startFrame, <IntType> endFrame) actor.SetRangeConstant(12,40) SetRangeLinear Set the given frame range to have linear interpolation between key frames for all parms of this actor. Note: automatically sets key frames at start and end of specified range. Enter valid start and end frame numbers. <NoneType> SetRangeLinear(<IntType> startFrame, <IntType> endFrame) actor.SetRangeLinear(12,40) SetRangeSpline Set the given frame range to have spline interpolation between key frames for all parms of this actor. Note: automatically sets key frames at start and end of specified range Enter valid start and end frame numbers. <NoneType> SetRangeSpline(<IntType> startFrame, <IntType> endFrame) actor.SetRangeSpline(12,40) SetRayTraceShadows Set whether this light (if this actor is a light) is using raytracing for shadows. Enter 1 to use raytracing, or 0 to disable raytracing for this light.
Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments
72
73
Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
74
Arguments
75
Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation
<IntType> Static() TwistVertexWeights Get a list of vertex weights for the specified twist axis on this actor. The axis argument should be x, y, or z. If no such joint is present, the method will return None. <FloatType list> TwistVertexWeights(<StringType> axis) actor.TwistVertexWeight(X) ValueParameter Get a value parameter from the universe actor. This type of parameter is not linked to Poser elements such as figures, props, etc. Rather, it can be used to add user interface control to your Python scripts. Enter a valid parameter name. <ParmType> ValueParameter(<StringType> valueParmName) parm = actor.ValueParameter(MyNewParameter) ValueParameters Get a list of value parameters from the universe actor. This type of parameter is not linked to Poser elements such as figures, props, etc. Rather, it can be used to add user interface control to your Python scripts. none <ParmType List> ValueParameters() VisibleInReflections Query whether this actor is visible in reflections. none <IntType> VisibleInReflections() VisibleInRender Query whether this actor is visible in renders. none <IntType> VisibleInRender() WeldGoalActors Get a list of actors that are welded to this one. Weld goal actors share edge vertices with this actor and are used to allow for geometric continuity when limbs bend. none <ActorType List> WeldGoalActors() WeldGoals
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name
76
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
FIGURE METHODS
Method Name Explanation Arguments Syntax Example Method Name Explanation Actor Get an actor, given its name. This is the name given in Posers GUI pull-down menus. Enter a valid actor name using the Poser external name. <ActorType> Actor(<StringType> name) fig.Actor(LeftForearm) ActorByInternalName Get an actor, given its internal name. This is a unique identifying string stored internally by Poser.
77
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
78
79
80
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
SetIkStatus Set the status of inverse kinematics for the specified IK chain index. Enter an index between 0 and figure.NumIkChains(), as well as a value specifying the status (0 for off, 1 for on). <NoneType> SetIkStatus(<IntType> whichLimb, <IntType> on) figure.SetIkStatus(0, 1) SetMeAsStartupScript Specify the current script as the Python script associated with the current Poser doc and executed on startup when the document is re-opened. none fig.SetMeAsStartupScript() SetOnOff Hide/show the figure. A value of 1 corresponds to on while a value of 0 corresponds to off Enter 1 to toggle the current figure visible, or 0 to toggle it invisible. <NoneType> SetOnOff(<IntType> on) fig.SetOnOff(1) SetParentActor Set the parent actor of the figure. The entire figure will be affected by parameter changes to its parent. Initially, the parent of a figure is typically the Body actor. Enter an actor which is to become the new parent of the figure. <NoneType> SetParentActor(<ActorType> newParent) fig.SetParentActor(someActor) SetStartupScript Specify the Python script to associate with the current Poser document and executed on startup when the file is re-opened. The filename should be a path (either absolute or relative to the Poser folder). Enter the complete path and file name. <NoneType> SetStartupScript(<StringType> filePath) fig.SetStartupScript(Runtime\Python\script.py) SetVisible Set the display status of the figure in the scene. Enter 1 to display the figure, and 0 to turn figure display off. <NoneType> SetVisible(<IntType> visible) StartupScript
Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name
81
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name
82
MATERIAL METHODS
Method Name Explanation Arguments Syntax AmbientColor Get the materials ambient color in the format RGB (values between 0.0 and 1.0). none (<FloatType> r, <FloatType> g, <FloatType> b) AmbientColor()
83
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
84
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example
85
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0.
Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments
<NoneType> SetDiffuseColor(<FloatType> r, <FloatType> g, <FloatType> b) mat.SetDiffuseColor(0.46,0.57,0.33) SetNs Set the materials Ns to a specific value. This is an exponent used in the calculation of the specular highlight. A higher exponent results in a smaller highlight and vice-versa. Enter an exponent value. <FloatType> SetNs(<FloatType> value) mat.SetNs(0.5) SetReflectionColor Set the materials reflection color.
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0.
<NoneType> SetReflectionColor(<FloatType> r, <FloatType> g, <FloatType> b) mat.SetReflectionColor(0.46,0.57,0.33) SetReflectionMapFileName Set the materials reflection map filename. Enter a valid path and file name. <NoneType> SetReflectionMapFileName(<StringType> filePath) mat.SetReflectionMapStrength(C:\My Documents\myrefmap.bmp) SetReflectionStrength Set the materials reflection strength to a specific value. Enter a value between 1.0 and 1.0. <FloatType> SetReflectionStrength(<FloatType> value) mat.SetReflectionStrength(0.5) SetSelected
86
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0.
<NoneType> SetSpecularColor(<FloatType> r, <FloatType> g, <FloatType> b) mat.SetSpecularColor(0.46,0.57,0.33) SetTextureColor Set the material texture color in the format RBG.
Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
R: Enter the red value from 0.0 to 1.0. G: Enter the green value from 0.0 to 1.0. B: Enter the blue value from 0.0 to 1.0. <NoneType> SetTextureColor(<FloatType> r, <FloatType> g, <FloatType> b, <FloatType> ) mat.SetTextureColor(0.46,0.57,0.33) SetTextureMapFileName Set the materials texture map filename. Enter the path and file name. <NoneType> SetTextureMapFileName(<StringType> filePath) mat.SetTexttureMapFileName(C:\Files\Textures\ tex1.bmp) SetTransparencyExpo Set the materials tExpo to a specific value. The tExpo parameter corresponds to the falloff of the the rate at which the transparency becomes opaque on the edges of an object. Enter a value between 0.0 and 10.0. <FloatType> SetTExpo(<FloatType> value) mat.SetTExpo(5.0). SetTransparencyMapFileName Set the materials transparency map filename. Enter the path and filename.
87
Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
88
PARAMETER METHODS
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Actor Return the actor which owns this parm. none <ActorType> Actor() AddKeyFrame Add a key frame for this parameter at the specified frame. If no frame is specified, a keyframe will be added at the current frame. Enter a valid frame number. <NoneType> AddKeyFrame({<IntType> frame}) AddKeyFrame(81) ApplyLimits Apply minimum and maximum limits to parameter. none
89
Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
<NoneType> ApplyLimits() ClearUpdateCallback Clear update callback for calculating this parameter value if it is set. none <NoneType> ClearUpdateCallback() ConstantAtFrame Query whether or not the given frame is within a constant range. If no frame is specified, the default frame is the current frame Optionally, enter a valid frame number. <IntType> ConstantAtFrame({<IntType> frame}) parm.ConstantAtFrame(12) DeleteKeyFrame Delete a key frame for this actor at the specified frame. If no frame is specified, a keyframe will be deleted at the current frame. Enter a valid frame number. <NoneType> DeleteKeyFrame({<IntType> frame}) parm.DeleteKeyFrame(30) Hidden Query whether or not the current parameter is hidden from the user interface (UI). Returns 1 if hidden, 0 if visible. none <IntType> Hidden() InternalName Get the parameters internal name. none <StringType> InternalName() IsMorphTarget Query whether or not this parameter is a morph target parameter. Returns 1 if it is and 0 if it is not. none <IntType> IsMorphTargetParamter() IsValueParameter Query whether or not this parameter is a value parameter. This type of parameter is not
90
Arguments Syntax
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name
91
Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation
<NoneType> SetHidden(<IntType> hide) parm.SetHidden(1) SetInternalName Set the parameters internal name. none <NoneType> SetInternalName() SetMaxValue Set the parameters maximum value. Enter a valid value for the current parameter. <FloatType> SetMaxValue(<FloatType> value) parm.SetMaxValue(100.00) SetMinValue Set the parameters minimum value. Enter a valid value for the current parameter. <FloatType> SetMinValue(<FloatType> value) parm.SetMinValue(1.35) SetMorphTargetDelta If this parameter is a morph target parameter, set the morph target delta value associated with the specified vertex index. Note: Deltas are 3D differences between the original geometry and the morphed geometry.
Arguments
Vertex Index: Enter the array index that identifies the desired vertex. Delta X: Enter the change in the X component of the vertex.
92
<NoneType> SetMorphTargetDelta(<IntType> vertexIndex, <FloatType> deltaX, <FloatType> deltaY, <FloatType> deltaZ) parm.SetMorphTargetDelta( vertexIndex, 0.12, 0.34, 0.45) SetName Set the parameters external name. Enter a valid name for the current parameter. <NoneType> SetName(<StringType> name) parm.SetName(Test1) SetRangeSpline Set the given frame range to have spline interpolation between key frames. Automatically sets key frames at start and end of specified range. Enter a valid starting and ending frame. <NoneType> SetRangeSpline(<IntType> startFrame, <IntType> endFrame) parm.SetRangeSpline(10,20) SetSensitivity Set the sensitivity of the mouse tracking (on the user interface). none <NoneType> SetSensitivity(<FloatType> value) SetUpdateCallback Set a per-update callback for calculating this parameter value. The callback function should take the parameter and the parameters current value as callbacks. <NoneType> SetUpdateCallback(<FunctionType> newCB, {<Object> cbArgs}) (See sample scripts) SetValue Set the parameter to a specific value. none <NoneType> SetValue(<FloatType> value) SplineAtFrame Query whether or not the given frame is within a spline range. If no frame is specified,
Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation
93
Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax
94
GEOMETRY METHODS
Method Name Explanation AddGeneralMesh Add a general mesh to existing geometry. Arguments are numerical Python arrays specifying polygons, sets, and vertices, as well as optionally texture-polygons, texturesets, and texture-vertices. (See Numerical Python documentation for more details). Required:
Arguments
Polygons: Enter the Numerical array specifying the polygonal connectivity of the sets. Each polygon stores the starting set index and the number of vertices it contains. Sets: Enter the Numerical array containing the IDs of the vertices. Each ID is an integer corresponding to the position of the vertex in the vertex array. Vertices: Enter the Numerical array containing the actual positions of the vertices. Each vertex has an X, Y, and Z component.
Optional:
Syntax
Texture Polygons: Enter the Numerical array specifying the polygonal connectivity of the texture-sets. Each polygon stores the starting set index and the number of vertices it contains. Texture Sets: Enter the Numerical array containing the IDs of the texture vertices. Each ID is an integer corresponding to the position of the vertex in the vertex array. Texture Vertices: Enter the Numerical array containing the actual positions of the texture vertices. Each vertex has an X, Y, and Z component.
<NoneType> AddGeneralMesh(<IntType nx2 Numeric.Array> polygons, <IntType nx1 Numeric.Array> sets, <FloatType nx3 Numeric.Array> vertices, {<IntType nx2 Numeric.Array> texPolygons, <IntType nx1 Numeric.Array> texSets, <FloatType nx3 Numeric.Array> texVertices}) See sample scripts. AddMaterialName Adds a material name to the geometry material name list and returns its index. Enter the name for the new material. <IntType> AddMaterialName(<StringType> name) j = geom.AddMaterialName(Chartreux) AddPolygon
95
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
96
97
98
VERTEX METHODS
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax SetX Set X coordinate. Enter a valid coordinate. <NoneType> SetX(<FloatType> value) vert.SetX(4.11) SetY Set Y coordinate. Enter a valid coordinate. <NoneType> SetY(<FloatType> value) vert.SetY(2.25) SetZ Set Z coordinate. Enter a valid coordinate. <NoneType> SetZ(<FloatType> value) vert.SetZ(6.52) X Get X coordinate. none <FloatType> X()
99
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
Y Get Y coordinate. none <FloatType> Y() Z Get Z coordinate. none <FloatType> Z()
POLYGON METHODS
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Groups Return a list of groups in which this polygon is included. Groups can be created using the grouping tool in the Poser GUI. none <StringType list> Groups() InGroup Determine if the polygon is in the specified group. Groups can be created using the grouping tool in the Poser GUI. Enter a valid group name. <IntType> InGroup(<StringType> groupName) poly.InGroup(MyNewGroup) IncludeInGroup Include the polygon in the specified group. Groups can be created using the grouping tool in the Poser GUI. Enter a valid group name. <NoneType> IncludeInGroup(<StringType> groupName) poly.IncludeInGroup(MyNewGroup) MaterialIndex Get the material index of the element. This is an index into the list of materials of this geometry object. none <IntType> MaterialIndex() MaterialName Get the elements material name.
100
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
none <StringType> MaterialName() NumVertices Get the number of vertices in the polygon. none <IntType> NumVertices() RemoveFromGroup Remove the polygon from the specified group. Groups can be created using the grouping tool in the Poser GUI. Enter a valid group name. <NoneType> RemoveFromGroup(<StringType> groupName) poly.RemoveFromGroup(MyNewGroup) SetMaterialIndex Set the polygons material index. This is an index into the list of materials of this geometry object. Enter the index of the desired material. <NoneType> SetMaterialIndex(<IntType> index) poly.SetMaterialIndex(3) SetMaterialName Set the material name of the polygon, returns material index. Enter a name for the polygons material. <IntType> SetMaterialName(<StringType> name) poly.SetMaterialName(cotton) Start Get the starting set index of the element. Using this value to index into the set list, one can get the index of the associated vertex. none <IntType> Start() Vertices Get a list of vertex objects for the polygon. none <VertType List> Vertices()
101
TEXPOLYGON METHODS
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax NumTexVertices Get the number of texture vertices in the geometry. none <IntType> NumTexVertices() Start Get the starting set index of the polygon. Using this value to index into the set list, one can get the index of the associated texture vertex. none <IntType> Start() TexVertices Get a list of texture vertex objects for the polygon. none <TexVertType List> TexVertices()
TEXVERTEX METHODS
Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Example Method Name Explanation Arguments Syntax Method Name Explanation Arguments SetU Set U coordinate. Enter a U coordinate. <NoneType> SetU(<FloatType> value) Geom..SetU(.96) SetV Set V coordinate. Enter a V coordinate. <NoneType> SetU(<FloatType> value) geom.SetV(.96) U Get U coordinate. none <FloatType> U() V Get V coordinate. none
102
Syntax
<FloatType> V()
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
103
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
none <ListType> Nodes() NumNodes Get the number of nodes in this ShaderTree. none <IntType> NumNodes() UpdatePreview Tell Poser that this ShaderTree has been modified. none <NoneType> UpdatePreview()
104
105
106
107
108
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
Displacement Query whether or not displacement is enabled. A return value of 1 indicates that displacement is enabled; a return value of 0 indicates that displacement is disabled. none <IntType> Displacement() DisplacementBounds Get the size of the displacement bounds. none <FloatType> DisplacementBounds() DrawToonOutline Query whether or not toon outlines are being drawn. A return value of 1 indicates that drawing is enabled; a return value of 0 indicates that toon outlines are turned off. none <IntType> DrawToonOutline() FilterSize Get the post filter size. none <IntType> FilterSize() FilterType Get the post filter type. none <IntType> FilterType()
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name
LoadPreset Load options from a render preset (.prp file). Specify the full path for the preset file. <NoneType> LoadPreset(<StringType> presetFilePath) Manual Query whether manual render settings apply. A return value of 1 indicates that manual settings apply; a return value of 0 indicates that automatic settings apply. none <IntType> Manual() MaxError
109
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
110
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
111
112
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
113
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
114
Arguments Syntax
Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation
Arguments Syntax
115
116
Arguments Syntax
HAIR METHODS
This class of methods was introduced in Poser 6.0.0.
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation AirDamping Get the air damping value. none <FloatType> AirDamping() BendResistance Get the bend resistance. none <FloatType> BendResistance() CalculateDynamics Calculate this groups hair dynamics. Note that this may take quite some time, depending on the complexity of the hair group, the scene geometry and the animation length. none <ActorType> CalculateDynamics()
Arguments Syntax
117
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
Clumpiness Get the clumpiness value. none <FloatType> Clumpiness() CollisionsOn Determine whether this hair group reacts to collisions. A return value of 1 indicates collision detection is on, and a value of 0 indicates collision detection is off. none <IntType> CollisionsOn() Delete Delete the hair group and its associated hair prop. none <ActorType> Delete() Density Get the density of populated hairs. none <FloatType> Density() Gravity Get the gravity value. none <FloatType> Gravity() GrowHair Grow guide hairs. none <NoneType> GrowHair() HairProp Get the prop that represents this hair group. none <ActorType> HairProp() KinkDelay Get the kink delay value. none <FloatType> KinkDelay()
118
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments
KinkScale Get the kink scale value. none <FloatType> KinkScale() KinkStrength Get the kink strength value. none <FloatType> KinkStrength() LengthMax Get the maximum hair length. none <FloatType> LengthMax() LengthMin Get the minimum hair length. none <FloatType> LengthMin() Name Get the name of this Hair. none <StringType> Name() NumbPopHairs Get the total number of Hairs. none <IntType> NumbPopHairs() NumbVertsPerHair Get the number of vertices per hair. none <IntType> NumbVertsPerHair() PositionForce Get the internal PositionForce simulation parameter. none
119
120
121
122
123
124
125
126
DIALOGSIMPLE METHODS
This class of methods was introduced in Poser 6.0.0.
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name AskActor Ask the user to select an actor. Enter the request message. <NoneType> AskActor(<StringType> message) AskFloat Ask the user for a floating-point number. Enter the request message. <FloatType> AskFloat(<StringType> message) AskInt Ask the user for an integer value. Enter the request message. <FloatType> AskInt(<StringType> message) AskMenu
127
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
DIALOG METHODS
This class of methods was introduced in Poser 6.0.0.
Method Name Explanation Arguments Syntax AddButtonCallback Assigns a method callback function to a button click. Enter the button to which you wish to assign a callback, and the function you wish to call when the button is clicked. <NoneType> AddButtonCallback(<StringType> buttonName, <FunctionType> function) Dialog Implements a message dialog callable from Posers Python interface. Enter the path for the of the XML file that defines the dialog layout, the title of the dialog, the message the dialog should contain, and the height and width of the dialog. <DialogType> Dialog(<StringType> layoutXMLPath,
128
DIALOGFILECHOOSER METHODS
This class of methods was introduced in Poser 6.0.0.
Method Name Explanation Arguments DialogFileChooser Implements a file chooser callable from Posers Python interface. This method requires 4 arguments:
Syntax
Type: Enter a Poser Dialog constant specifying either a File Open or File Save dialog (such as kDialogFileChooserOpen). Parent: Specify the window to which the file chooser will be parented. Message: Enter the message to be displayed in the dialog. Start Directory: Specify the file that will be selected by default in the dialog.
<DialogFileChooserType> DialogFileChooser(<IntType> type, <DialogType> parentDialog, <StringType> message, <StringType> startDir) Path Get the path specified by the user in the dialog. None <StringType> Path() Show Brings up the File Chooser modal dialog. None <NoneType> Show()
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
129
DIALOGDIRCHOOSER METHODS
This class of methods was introduced in Poser 6.0.0.
Method Name Explanation Arguments Syntax DialogDirChooser Implements a directory chooser callable from Posers Python interface. Specify the window to which the dialog will be parented, the specific message text, and the directory that will be selected by default in the dialog. <DialogDirChooserType> DialogDirChooser(<DialogType> parentDialog, <StringType> message, <StringType> startDir) Path Get the path specified by the user in the dialog. None <StringType> Path() Show Brings up the Directory Chooser dialog. None <NoneType> Show()
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
DIALOGTEXTENTRY METHODS
This class of methods was introduced in Poser 6.0.0.
Method Name Explanation Arguments Syntax DialogTextEntry Implements a simple (one-field) text entry dialog. Specify the window to which the dialog will be parented, and the message to be displayed in the dialog. <DialogTextEntry> DialogTextEntry(<DialogType> parentDialog, <StringType> message) Show Brings up a text entry dialog. None <NoneType> Show() Text Get the text entered by the user in the dialog. None <StringType> Text()
Method Name Explanation Arguments Syntax Method Name Explanation Arguments Syntax
130