Kanzi Studio command reference¶
Here you can find the reference for the Kanzi Studio commands that you can execute by running a script from the command line interface. See Automating Kanzi Studio tasks.
Basic Editing¶
AddToResourceDictionary¶
Add to resources dictionary
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateBindingItem¶
Create a binding.
Syntax |
|
||||||||||||
Parameters |
|
||||||||||||
Examples |
|
ExposePrefabProperty¶
Expose a property to the root of a prefab. This enables you to customize the property in each instance of the prefab.
When you expose a property, Kanzi Studio:
Creates from the property a custom property.
Adds the custom property to the prefab and shows the custom property as a frequently used property in each instance of the prefab.
Creates in this item the ##Template binding to the custom property in the prefab root.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
||||||
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Advanced Editing¶
AddProperty¶
Add a property to an item.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
AddPropertyNamespaceToPropertyTypes¶
Move all property types to the current project property namespace.
Syntax |
|
|||
Examples |
|
BakeTransformation¶
Transform vertices in the vertex buffer of the model according to the current transformation of the node and set the transformation to an identity transformation.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CenterMesh¶
Centers the vertices of the mesh so that the center of the bounding box moves to origo.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
FlipMesh¶
Invert the direction of polygons and normals in the mesh data.
Syntax |
|
||||||||||
Parameters |
|
||||||||||
Examples |
|
GenerateNormals¶
Generate normals to the vertex buffer of the mesh.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
GenerateTangents¶
Generate tangents to the vertex buffer of the mesh.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
||||
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
OptimizeAnimations¶
Remove all Animations Data resource without data and optimizes existing Animation Data items.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
PrintDiagnosticReport¶
Print to the log the invalid project items and their error messages.
Syntax |
|
|||
Examples |
|
RemovePropertyFromItem¶
Remove a property from an item.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
RenameShaderFiles¶
Renames all the shader files to corresponding material type name.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
SetProperty¶
Set a property value.
Syntax |
|
||||||||||||||||||
Parameters |
|
||||||||||||||||||
Examples |
|
Destroyer¶
DeleteAnimationsWithLessThanTwoEffectiveKeyframes¶
Delete all Animation Data items with one or no effective keyframes. Repeated keyframes with the same value are regarded as ineffective.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
DeleteProjectItem¶
Delete the selected project item(s)
Syntax |
|
||||||||||||
Parameters |
|
||||||||||||
Examples |
|
Conversions¶
ConvertBindingsToTemplateBindings¶
Convert to template bindings those bindings whose source is the template root.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ConvertNode2DPrefabPlaceholderToPrefabView2D¶
Convert this Prefab Placeholder 2D node to a Prefab View 2D node.
When you instantiate a prefab with a Prefab View node, Kanzi monitors the value of the Prefab Template property and adds the prefab to which that property points as a child node of the Prefab View node. This allows you to change the prefab that the Prefab View instantiates and to keep your application responsive when it is loading resources.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ConvertNode3DPrefabPlaceholderToPrefabView3D¶
Convert this Prefab Placeholder 3D node to a Prefab View 3D node.
When you instantiate a prefab with a Prefab View node, Kanzi monitors the value of the Prefab Template property and adds the prefab to which that property points as a child node of the Prefab View node. This allows you to change the prefab that the Prefab View instantiates and to keep your application responsive when it is loading resources.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ConvertNodesToPrefabs¶
Create prefab templates for the selected nodes and replace the nodes with placeholders pointing to the created templates.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ConvertPageHostToPage¶
Convert this Page Host node to a Page node.
Use the Page nodes to create the structure of the user interface in your application, and the Page Host nodes to manage navigation requests and transitions between Page nodes under a Page Host node.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ConvertPageToPageHost¶
Convert this Page node to a Page Host node.
Use the Page Host nodes to manage navigation requests and transitions between Page nodes under a Page Host node.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ConvertProjectReferenceItemToKzbReferenceItem¶
Convert this Project Reference to a Kzb Reference.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
Brush Creation¶
CreateBrush¶
Create a brush
Syntax |
|
||||||||||||
Parameters |
|
||||||||||||
Examples |
|
Component Creation¶
CreateComponentNode2D¶
Create a 2D node.
Syntax |
|
|||||||||
Parameters |
|
|||||||||
Examples |
|
CreateComponentNode¶
Create a 3D node.
Syntax |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
Examples |
|
Empty Node¶
CreateEmptyNode2D¶
Use an Empty Node 2D to group 2D objects and to apply property changes to these objects as a group.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateEmptyNode3D¶
Use an Empty Node 3D to group 3D objects and to apply property changes to these objects as a group.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Layout Node¶
CreateDockLayout2D¶
Use a Dock Layout 2D to divide objects relative to each other in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateFlowLayout2D¶
Use a Flow Layout 2D to place 2D objects in rows in 2D space. When a row is full, it places objects in a new row.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateGridLayout2D¶
Use a Grid Layout 2D to arrange 2D content in a grid in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateStackLayout2D¶
Use a Stack Layout 2D to arrange content in a stack on the selected axis in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateTrajectoryLayout2D¶
Use a Trajectory Layout 2D to arrange content along a trajectory path in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Container Node¶
CreateGridListBox2D¶
Use a Grid List Box 2D to arrange 2D content in a grid in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Content Node¶
CreateImage2D¶
Use an Image to display a single or a render target texture.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreatePage¶
Use a Page to add structure to your Kanzi application.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreatePageHost¶
Use Page Host to manage the navigation between Page nodes within its subtree.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateProgressiveRenderingNode2D¶
Use a Progressive Rendering Viewport 2D to display a view into a 3D scene through a camera.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateTextBlock2D¶
Use a Text Block 2D to display text in 2D space. It uses fonts to render text and has location and orientation in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateViewport2D¶
Use a Viewport 2D to display a view into a 3D scene through a camera.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Interactivity Node¶
CreateScrollView2D¶
Use a Scroll View 2D to get user input from scroll gestures in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateSlider2D¶
Use a Slider 2D to allow users to set a value between a set of minimum and maximum values in 2D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Material Creation¶
CreateMaterial¶
Create a material.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateMaterialType¶
Create a material type.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
Primitive Creation¶
CreateBoxNode¶
Create a cube mesh centered in its origin.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateMeshNode¶
Use a Model to add imported 3D models created in third-party tools to your Kanzi application.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreatePlaneNode¶
Create a filled planar mesh with four vertices.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateSphereNode¶
Create a sphere mesh centered in its origin.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Node 3D Creation¶
CreateScene¶
Use a Scene node to show 3D content in your Kanzi application. A Scene node can contain light nodes, Camera node, and any other 3D node.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Helper Node 3D Creation¶
CreateCameraNode¶
Use a Camera node to show the content of a Scene in your Kanzi Studio project and in your Kanzi application.
Syntax |
|
||||||||||
Parameters |
|
||||||||||
Examples |
|
||||||||||
Syntax |
|
||||||||||
Parameters |
|
||||||||||
Examples |
|
CreateDirectionalLightNode¶
Directional Light emits light only in one direction. You can use Directional Light to model sunlight. By default each Scene node contains a Directional Light.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateInstantiatorNode¶
Use an Instantiator node to create a copy of the object it targets. Instantiated nodes are not interactive.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateLevelOfDetailNode¶
Use a Level of Detail node to display one object based on its relation to the view camera. A Level of Detail is similar to an Empty Node 3D.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreatePointLightNode¶
Point Light emits light from a specific location uniformly to all directions (360 degrees).
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateSpotLightNode¶
Spot Light emits light from a specific location towards a specified direction in the shape of a cone.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
Render Pass Creation¶
CreateRenderPass¶
Create a render pass.
Syntax |
|
|||||||||||||||
Parameters |
|
|||||||||||||||
Examples |
|
Render Pass Preset Creation¶
CreateComposeAndBlitRenderPassTree¶
Use the Compose and Blit Pass render pass preset to create the render passes that you need to blit a Composition Target Render Pass using a specific material.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateDefaultRenderPassTree¶
Use the Default Render Pass render pass preset to create a basic set of render passes that you need to get started. The Default Render Pass first renders opaque nodes and then transparent nodes.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateRenderToTexturePassTree¶
Use the Render to Texture Pass render pass preset to create the render passes that you need to render to a texture.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
Effect Creation¶
CreateNodeEffect2D¶
Use effects to apply post-processing effects to 2D nodes.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
Misc Creation¶
CreateDataSource¶
Create a data source.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateFontFamily¶
Creates an empty font family.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateLocale¶
Create a locale.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateLocalizationTable¶
Create a localization table.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateNode3DPrefabPlaceholder¶
Use a Prefab Placeholder 3D node to instantiate a 3D prefab.
Kanzi replaces the Prefab Placeholder node with the root node of the prefab it instantiates.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateResourceDictionary¶
Creates a resources dictionary in the selected node.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CreateState¶
Create a state item in a state group.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateStateGroup¶
Create a state group.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateStateManager¶
Create a state manager.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
||||||
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateStateWithTarget¶
Create a child state object under a state
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
CreateTag¶
Use a Tag to categorize project objects. You can assign multiple tags to an object.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateTheme¶
Create a theme.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
CreateThemeGroup¶
Create a theme group.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
ExportLocalizationTable¶
Export the localization table template to a .pot file, and as many .po files as there are locales in that localization table to <ProjectName>/Localization/<LocalizationTableName>.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
ImportAllLocalizationTables¶
Import all PO files from all localization table folders in the Localization directory of your project.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ImportEnginePlugin¶
Import Kanzi Engine plugin. During import the components, property types, messages and triggers contained in the plugin become available to the project.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
||||
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
TagItems¶
Adds a tag to a set of items.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
UpdateDataSourceContents¶
Read and cache data from data source for creating data bindings in UI.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
UpdateProjectDataSources¶
Read and cache data from data sources defined in this project for creating data bindings in UI.
Syntax |
|
|||
Examples |
|
UpdateProjectEnginePlugins¶
To see changes in the custom nodes, property types, triggers, and actions that the Kanzi Engine plugins in this project define, load the latest versions of the plugins.
Syntax |
|
|||
Examples |
|
UpdateSolutionDataSources¶
Read and cache data from data sources defined in this solution for creating data bindings in UI.
Syntax |
|
|||
Examples |
|
UpdateSolutionEnginePlugins¶
To see changes in the custom nodes, property types, triggers, and actions that the Kanzi Engine plugins in this solution define, load the latest versions of the plugins.
Syntax |
|
|||
Examples |
|
Object Source Creation¶
CreateCombineObjectSource¶
Use a Combine Object Source to collect and combine nodes from one or more input sources, such as filters.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CreateContainsPropertyFilterObjectSource¶
Use a Contains Property Filter to collect nodes that contain, or do not contain a specific property.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CreateFixedSortFilterObjectSource¶
Use a Sorting Filter to either order nodes by their position on the z axis or to group them by their material type.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CreateObjectTypeFilterObjectSource¶
Use an Object Type Filter to collect nodes based on their type.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CreatePropertyIsEqualObjectSource¶
Use a Property is Equal Filter to collect nodes that contain, or do not contain a specific property the value of which matches a specific value.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CreateTagFilter¶
Use a Tag Filter to collect the nodes that have a specific tag assigned.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
Texture Creation¶
CreateEnvironmentCubeMapTexture¶
Use an environment cubemap texture to represent the environment, such as an outdoor scene. An environment cubemap texture combines six square-shaped images into one texture.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
||||||
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateIrradianceCubeMapTexture¶
Use an irradiance cubemap texture for image-based lighting. An irradiance cubemap texture combines six square-shaped images into one texture to represent diffuse environment lighting.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
CreateRenderTargetTexture¶
Use a Render Target Texture to dynamically render content from 2D layouts into a texture.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
CreateSingleTexture¶
Use a Single Texture when you want to use a single image as a texture.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateSpecularCubeMapTexture¶
Use a specular cubemap texture for image-based lighting. A specular cubemap texture combines six square-shaped images into one texture to represent reflective environment lighting.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
Trajectory Creation¶
CreateAngleTrajectory¶
Use an Angle Trajectory to create a path where two straight lines form an angle in 3D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
||||||
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateArcTrajectory¶
Use an Arc Trajectory to create a path in the shape of an arc in 3D space.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
CreateCircleTrajectory¶
Use a Circle Trajectory to create a path in the shape of a circle in 3D space.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
||||||
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
CreateEllipseTrajectory¶
Use an Ellipse Trajectory to create a path in the shape of an ellipse in 3D space.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
CreateLineTrajectory¶
Use a Line Trajectory to create a path with a single straight line in 3D space.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
CreateRectangleTrajectory¶
Use a Rectangle Trajectory to create a path in the shape of a rectangle in 3D space.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
CreateSpiralTrajectory¶
Use a Spiral Trajectory to create a path in the shape of a spiral in 3D space.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
CreateTrapezoidTrajectory¶
Use a Trapezoid Trajectory to create a path in the shape of a trapezoid in 3D space.
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
||||||||
Syntax |
|
||||||||
Parameters |
|
||||||||
Examples |
|
Import¶
ImportImages¶
Import images into project
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
Disk¶
CleanCachedFiles¶
Delete the cache files that Kanzi Studio created in the project directory when you opened the project or exported the kzb file.
Syntax |
|
|||
Examples |
|
CloseSolution¶
Close the currently open primary project and its referenced projects.
Syntax |
|
|||
Examples |
|
CompressImage¶
Preprocess the selected images. Preprocessing can include image compression and the generation of mipmaps.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
DeleteExportedBinaries¶
Delete all exported files from the directory set in the Project > Properties in the Binary Export Directory property. This command deletes all exported files, including those from other projects.
Syntax |
|
|||
Examples |
|
|||
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
ExitApplication¶
Close Kanzi Studio.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
||||
Syntax |
|
||||
Examples |
|
ExportAllProjectBinaries¶
Export the kzb files of the main project and loaded referenced projects. Copy exported kzb files to the directory set in the Binary Export Directory property of the main project properties.
Syntax |
|
||||||
Examples |
|
||||||
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
ExportBakedThemeBinaries¶
Export a kzb file for each combination of theme groups and main localization table that have the Export Baked Usages property enabled.
Syntax |
|
|||
Examples |
|
ExportBinary¶
Export kzb files for use with the Kanzi Engine API and kzb resource packs for locales and themes according to their settings.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
||||
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
ExportBinaryWithApplication¶
Export the project as a standalone Windows application using the kzb Player and kzb file.
Syntax |
|
ExportDescriptions¶
Export the content of all Description properties in the project to a plain text file.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|
ImportProject¶
Import another Kanzi Studio project to the active project.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
LoadMaterialType¶
Load material type from disk
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
LoadProject¶
Open a project from disk.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
NewProject¶
Create a Kanzi Studio project.
Syntax |
|
|||
Parameters |
|
|||
Examples |
|
SaveMaterialType¶
Save material type to disk
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
SaveProject¶
Save the project to disk.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
Building¶
ExportApk¶
Build and deploy an Android Package (APK) using the build configuration set in Project > Properties > Building > Default Build Configuration.
Syntax |
|
||||
Parameters |
|
||||
Examples |
|
Preview¶
StartPreview¶
Start the Preview.
Syntax |
|
|||
Examples |
|
General¶
Plugin¶
Execute commands defined in Kanzi Studio plugins.
Syntax |
|
||||||
Parameters |
|
||||||
Examples |
|