Empty Tool Example
Description
This demonstrates an empty tool UI panel
with minimal functionality as a starting point.
Python Script Files
-
pick_filter_ui.py
Significant Script
Features
import sys
import os
import apex_sdk
import clr
# .NET references
import System
import System.Windows.Controls as WPFControls
from System.Windows.Automation import AutomationProperties
from Microsoft.Win32 import OpenFileDialog
# Set pre-defined properties of ToolPropertyContainer
def getUIContent():
my_toolProperty = apex_sdk.ToolPropertyContainer()
return my_toolProperty
Notes
-
The above shows ideal standard
imports for the Apex API with Python
-
There is a mandatory
getUIContent
(
)
function that creates
a
ToolPropertyContainer
and returns it
- Log in to post comments