Documentation

​
​

Development

User Acquisition

Monetization

Industry

Asset Transformer Studio

2026.5.0

Supported
​

User Manual

Python API

Changelog

Asset Transformer Studio

2026.5.0

Supported
​

Asset Transformer Studio
​
​
pxz
  • Functions
Algo
  • Functions
  • Types
CAD
  • Functions
  • Types
Core
  • Functions
  • Events
  • Types
Geom
  • Functions
  • Types
Material
  • Functions
  • Events
  • Types
Polygonal
  • Functions
  • Types
Process [UI]
  • Functions
  • Types
Scene
  • Functions
  • Events
  • Types
Studio [UI]
  • Functions
    • askString
    • askYesNo
    • choose
    • findSelectionInTree
    • getVersion
    • setViewerProperty
    • showMessage
  • Types
View
  • Functions
  • Events
  • Types
  1. Asset Transformer Studio

Studio

Python API functions
Read time 1 minute
Last updated 8 hours ago

askString

Invite the user to enter a string.
studio.askString(msg, defaultValue="") -> core.String
Parameters

Type

Name

Description

StringmsgMessage to display.
StringdefaultValueMessage to display.
Returns

Type

Name

Description

StringtextThe string entered by the user.

askYesNo

Ask a question which need a Yes/No answer.
studio.askYesNo(question, defaultValue=False) -> core.Boolean
Parameters

Type

Name

Description

StringquestionQuestion to display.
BooleandefaultValueDefault value (if interfactive mode is disabled).
Returns

Type

Name

Description

BooleananswerTrue if the user say Yes, else False.

choose

Invite the user to choose one value between multiple choice.
studio.choose(message, values, defaultValue=0) -> core.Int
Parameters

Type

Name

Description

StringmessageMessage to display.
StringListvaluesPossible values to choose.
IntdefaultValueDefault value index.
Returns

Type

Name

Description

IntchoiceIndex of the chosen value in the values list.

findSelectionInTree

Expand tree to the selected occurrence.
studio.findSelectionInTree()

getVersion

Print the current pixyz Studio version.
studio.getVersion() -> core.String
Returns

Type

Name

Description

Stringversion

setViewerProperty

Set a viewer property for the Pixyz Studio main viewer (you can list the available properties with pxz.view.listViewerProperties()).
studio.setViewerProperty(propertyName, propertyValue)
Parameters

Type

Name

Description

StringpropertyName
StringpropertyValue

showMessage

Create a message box displaying the given text.
studio.showMessage(Text)
Parameters

Type

Name

Description

StringTextText to display.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • askString

    • askYesNo

    • choose

    • findSelectionInTree

    • getVersion

    • setViewerProperty

    • showMessage