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¶
AddToResourceDictionary resourceId resource resourceDictionaryHost
Parameters¶
|
The resource ID. |
|
The resource that you add to a resource dictionary. |
|
The node to whose resource dictionary you add the resource. |
Examples¶
CreateBindingItem¶
Create a binding.
Syntax¶
CreateBindingItem parent bindingMode pushTarget targetPropertyTypeName attribute code
Parameters¶
|
The node or render pass to which you add the binding. |
|
The binding mode. For a one-way binding use ONE_WAY. For a to-source binding use TO_SOURCE. |
|
The target in a to-source binding. For a one-way binding use NULL. |
|
The property that you bind. |
|
The property field that you bind. To bind the entire property, use WHOLE_PROPERTY. |
|
The binding expression. |
Examples¶
# Add to the My Button node a binding that sets the Layout Width of that node
# to 300 pixels less than the width of its parent node, but always between
# 400 and 1200 pixels.
# To improve readability, this example splits the binding expression into two lines.
# Enclose between triple backticks a binding expression that spans multiple lines.
CreateBindingItem "/Screens/Screen/RootPage/My Button" ONE_WAY NULL Node.Width WHOLE_PROPERTY ```parentWidth = {@../Node.ActualWidth}
clamp(400, 1200, parentWidth - 300)```
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¶
ExposePrefabProperty source propertyType
Parameters¶
|
The prefab item whose property you expose. |
|
The property that you expose. |
Examples¶
# In the Prefabs create a Button 2D prefab named My Button.
CreateButton2D "/Prefabs" "My Button" true
# In the My Button prefab create an Image node named Image.
CreateImage2D "/Prefabs/My Button/My Button" Image true
# In the Image node expose the Image2D.Image property to the root of the My Button prefab.
# Let Kanzi Studio automatically generate a name for the exposed custom property.
ExposePrefabProperty "/Prefabs/My Button/My Button/Image" Image2D.Image
Syntax¶
ExposePrefabProperty source propertyType propertyName
Parameters¶
|
The prefab item whose property you expose. |
|
The property that you expose. |
|
The name for the exposed custom property. |
Examples¶
# In the Prefabs create a Button 2D prefab named My Button.
CreateButton2D "/Prefabs" "My Button" true
# In the My Button prefab create an Image node named Image.
CreateImage2D "/Prefabs/My Button/My Button" Image true
# In the Image node expose the Image2D.Image property to the root of the My Button prefab
# and name the exposed custom property MyButton.Icon.
ExposePrefabProperty "/Prefabs/My Button/My Button/Image" Image2D.Image MyButton.Icon
Advanced Editing¶
AddProperty¶
Add a property to an item.
Syntax¶
AddProperty propertyCollection propertyName valueAsString
Parameters¶
|
The node or resource to which you add the property. |
|
The property that you add. |
|
(Optional) The value of the property. |
Examples¶
AddPropertyNamespaceToPropertyTypes¶
Move all property types to the current project property namespace.
Syntax¶
AddPropertyNamespaceToPropertyTypes
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¶
BakeTransformation node
Parameters¶
|
The node whose transformation you want to bake to vertex data. |
Examples¶
CenterMesh¶
Centers the vertices of the mesh so that the center of the bounding box moves to origo.
Syntax¶
CenterMesh meshes
Parameters¶
|
The mesh data resource whose vertices you want to center. |
Examples¶
FlipMesh¶
Invert the direction of polygons and normals in the mesh data.
Syntax¶
FlipMesh meshes flipPolygons flipNormals flipTextureCoordinateU flipTextureCoordinateV
Parameters¶
|
The meshes in the mesh data of which you invert the direction of polygons, normals, and texture coordinates. Separate a list of meshes with semicolons. |
|
Whether to invert the direction of polygons in the mesh data without modifying normals. |
|
Whether to invert the direction of normals in the mesh data. |
|
Whether to invert the direction of the U coordinates of textures. |
|
Whether to invert the direction of the V coordinates of textures. |
Examples¶
GenerateNormals¶
Generate normals to the vertex buffer of the mesh.
Syntax¶
GenerateNormals meshes smoothingAngle
Parameters¶
|
The meshes to the vertex buffers of which you generate normals. Separate a list of meshes with semicolons. |
|
The smoothing angle in degrees. |
Examples¶
GenerateTangents¶
Generate tangents to the vertex buffer of the mesh.
Syntax¶
GenerateTangents meshes mode
Parameters¶
|
The meshes to the vertex buffers of which you generate tangents. Separate a list of meshes with semicolons. |
|
Tangent generation mode: AUTOMATIC, MIKKTSPACE, or LEGACY. |
Examples¶
Syntax¶
GenerateTangents meshes
Parameters¶
|
The meshes to the vertex buffers of which you generate tangents. Separate a list of meshes with semicolons. |
Examples¶
OptimizeAnimations¶
Remove all Animations Data resource without data and optimizes existing Animation Data items.
Syntax¶
OptimizeAnimations animations threshold
Parameters¶
|
The Animation Data resources from which you remove redundant keyframes. Separate a list of animations with semicolons. |
|
The threshold value for keyframe removal. When deleting a keyframe changes the animated value by less than the value that you set with this parameter, Kanzi Studio removes the keyframe. |
Examples¶
PrintDiagnosticReport¶
Print to the log the invalid project items and their error messages.
Syntax¶
PrintDiagnosticReport
Examples¶
RemovePropertyAndBindingFromItem¶
Remove a property and the associated local bindings from an item.
Syntax¶
RemovePropertyAndBindingFromItem host propertyName
Parameters¶
|
The item from which you remove the property and the local bindings that use that property. |
|
The property that you remove. |
Examples¶
# In the RootPage node add a To Source binding that targets the Viewport 2D node.
CreateBindingItem "/Screens/Screen/RootPage" TO_SOURCE "/Screens/Screen/RootPage/Viewport 2D" Node2D.BackgroundBrush WHOLE_PROPERTY ```{@./Node2D.BackgroundBrush}```
# Remove both the property and the To Source binding.
RemovePropertyAndBindingFromItem "/Screens/Screen/RootPage" Node2D.BackgroundBrush
RemovePropertyFromItem¶
Remove a property from an item.
Syntax¶
RemovePropertyFromItem host propertyName
Parameters¶
|
The item from which you remove the property. |
|
The property that you remove. |
Examples¶
RenameShaderFiles¶
Renames all the shader files to corresponding material type name.
Syntax¶
RenameShaderFiles materialTypes
Parameters¶
|
The material types whose shader files you rename. Separate a list of material types with semicolons. |
Examples¶
SetProperty¶
Set a property value.
Syntax¶
SetProperty parent propertyName propertyValueAsString
Parameters¶
|
The node or resource whose property you want to set. |
|
The name of the property. |
|
The value to which you want to set the property. |
Examples¶
# In the Screen node set the Metrics Type property to Absolute.
SetProperty "/Screens/Screen" Window.MetricsType Absolute
# In the Screen node set the Width property to 1200.
SetProperty "/Screens/Screen" WindowAbsoluteWidth 1200
# In the Screen node set the Height property to 720.
SetProperty "/Screens/Screen" WindowAbsoluteHeight 720
# In the My Text Block node, set the Text property to
# SERVICE
# VEHICLE
# SOON
#
# Enclose between triple backticks a property value that spans multiple lines.
SetProperty "/Screens/Screen/RootPage/My Text Block" TextConcept.Text ```SERVICE
VEHICLE
SOON```
# In the My Text Block node, add the Text Horizontal Alignment property and set it to Center.
AddProperty "/Screens/Screen/RootPage/My Text Block" TextConcept.TextHorizontalAlignment 2
Destroyer¶
DeleteAnimationsWithLessThanTwoEffectiveKeyframes¶
Delete all Animation Data items with one or no effective keyframes. Repeated keyframes with the same value are regarded as ineffective.
Syntax¶
DeleteAnimationsWithLessThanTwoEffectiveKeyframes animations
Parameters¶
|
The animations you want to delete if they have one or no effective keyframes. Separate a list of animations with semicolons. |
Examples¶
DeleteProjectItem¶
Delete the selected project item(s)
Syntax¶
DeleteProjectItem items
Parameters¶
|
The nodes and resources you want to delete. Separate a list of items with semicolons. |
Examples¶
Conversions¶
ConvertBindingsToTemplateBindings¶
Convert to template bindings those bindings whose source is the template root.
Syntax¶
ConvertBindingsToTemplateBindings targets
Parameters¶
|
The node the bindings of which you convert to template bindings. |
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¶
ConvertNode2DPrefabPlaceholderToPrefabView2D prefabPlaceholder
Parameters¶
|
The Prefab Placeholder 2D node that you convert to a Prefab View 2D node. |
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¶
ConvertNode3DPrefabPlaceholderToPrefabView3D prefabPlaceholder
Parameters¶
|
The Prefab Placeholder 3D node that you convert to a Prefab View 3D node. |
Examples¶
ConvertNodesToPrefabs¶
Create prefab templates for the selected nodes and replace the nodes with placeholders pointing to the created templates.
Syntax¶
ConvertNodesToPrefabs nodes
Parameters¶
|
The nodes that you convert to prefabs. Separate a list of nodes with semicolons. |
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¶
ConvertPageHostToPage pageHost
Parameters¶
|
The Page Host node that you convert to a Page node. |
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¶
ConvertPageToPageHost page
Parameters¶
|
The Page node that you convert to a Page Host node. |
Examples¶
ConvertProjectReferenceItemToKzbReferenceItem¶
Convert this Project Reference to a Kzb Reference.
Syntax¶
ConvertProjectReferenceItemToKzbReferenceItem projectReferenceItem
Parameters¶
|
The project reference you convert to a kzb file reference. |
Examples¶
Brush Creation¶
CreateBrush¶
Create a brush
Syntax¶
CreateBrush itemName brushTypeName
Parameters¶
|
The name of the brush. |
|
The type of the brush. |
Examples¶
Component Creation¶
CreateComponentNode2D¶
Create a 2D node.
Syntax¶
CreateComponentNode2D parent itemName componentTypeName
Parameters¶
|
The node in which you create the 2D node. |
|
The name of the 2D node. |
|
The type of the 2D node. |
Examples¶
CreateComponentNode¶
Create a 3D node.
Syntax¶
CreateComponentNode parent itemName componentTypeName
Parameters¶
|
The node in which you create the 3D node. |
|
The name of the 3D node. |
|
The type of the 3D node. |
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¶
CreateEmptyNode2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Empty Node 2D node or prefab. |
|
The name of the Empty Node 2D node or prefab. |
|
Whether Kanzi Studio selects the Empty Node 2D node or prefab that you created. |
Examples¶
CreateEmptyNode3D¶
Use an Empty Node 3D to group 3D objects and to apply property changes to these objects as a group.
Syntax¶
CreateEmptyNode3D parent itemName
Parameters¶
|
The node or prefab in which you create the Empty Node 3D node or prefab. |
|
The name of the Empty Node 3D node or prefab. |
Examples¶
Layout Node¶
CreateDockLayout2D¶
Use a Dock Layout 2D to divide objects relative to each other in 2D space.
Syntax¶
CreateDockLayout2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Dock Layout 2D node or prefab. |
|
The name of the Dock Layout 2D node or prefab. |
|
Whether Kanzi Studio selects the Dock Layout 2D node or prefab that you created. |
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¶
CreateFlowLayout2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Flow Layout 2D node or prefab. |
|
The name of the Flow Layout 2D node or prefab. |
|
Whether Kanzi Studio selects the Flow Layout 2D node or prefab that you created. |
Examples¶
CreateGridLayout2D¶
Use a Grid Layout 2D to arrange 2D content in a grid in 2D space.
Syntax¶
CreateGridLayout2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Grid Layout 2D node or prefab. |
|
The name of the Grid Layout 2D node or prefab. |
|
Whether Kanzi Studio selects the Grid Layout 2D node or prefab that you created. |
Examples¶
CreateStackLayout2D¶
Use a Stack Layout 2D to arrange content in a stack on the selected axis in 2D space.
Syntax¶
CreateStackLayout2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Stack Layout 2D node or prefab. |
|
The name of the Stack Layout 2D node or prefab. |
|
Whether Kanzi Studio selects the Stack Layout 2D node or prefab that you created. |
Examples¶
CreateTrajectoryLayout2D¶
Use a Trajectory Layout 2D to arrange content along a trajectory path in 2D space.
Syntax¶
CreateTrajectoryLayout2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Trajectory Layout 2D node or prefab. |
|
The name of the Trajectory Layout 2D node or prefab. |
|
Whether Kanzi Studio selects the Trajectory Layout 2D node or prefab that you created. |
Examples¶
Container Node¶
CreateGridListBox2D¶
Use a Grid List Box 2D to arrange 2D content in a grid in 2D space.
Syntax¶
CreateGridListBox2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Grid List Box 2D node or prefab. |
|
The name of the Grid List Box 2D node or prefab. |
|
Whether Kanzi Studio selects the Grid List Box 2D node or prefab that you created. |
Examples¶
Content Node¶
CreateImage2D¶
Use an Image to display a single or a render target texture.
Syntax¶
CreateImage2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Image node or prefab. |
|
The name of the Image node or prefab. |
|
Whether Kanzi Studio selects the Image node or prefab that you created. |
Examples¶
CreatePage¶
Use a Page to add structure to your Kanzi application.
Syntax¶
CreatePage parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Page node or prefab. |
|
The name of the Page node or prefab. |
|
Whether Kanzi Studio selects the Page node or prefab that you created. |
Examples¶
CreatePageHost¶
Use Page Host to manage the navigation between Page nodes within its subtree.
Syntax¶
CreatePageHost parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Page Host node or prefab. |
|
The name of the Page Host node or prefab. |
|
Whether Kanzi Studio selects the Page Host node or prefab that you created. |
Examples¶
CreateProgressiveRenderingNode2D¶
Use a Progressive Rendering Viewport 2D to display a view into a 3D scene through a camera.
Syntax¶
CreateProgressiveRenderingNode2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Progressive Rendering Viewport 2D node or prefab. |
|
The name of the Progressive Rendering Viewport 2D node or prefab. |
|
Whether Kanzi Studio selects the Progressive Rendering Viewport 2D node or prefab that you created. |
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¶
CreateTextBlock2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Text Block 2D node or prefab. |
|
The name of the Text Block 2D node or prefab. |
|
Whether Kanzi Studio selects the Text Block 2D node or prefab that you created. |
Examples¶
CreateViewport2D¶
Use a Viewport 2D to display a view into a 3D scene through a camera.
Syntax¶
CreateViewport2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Viewport 2D node or prefab. |
|
The name of the Viewport 2D node or prefab. |
|
Whether Kanzi Studio selects the Viewport 2D node or prefab that you created. |
Examples¶
Interactivity Node¶
CreateScrollView2D¶
Use a Scroll View 2D to get user input from scroll gestures in 2D space.
Syntax¶
CreateScrollView2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Scroll View 2D node or prefab. |
|
The name of the Scroll View 2D node or prefab. |
|
Whether Kanzi Studio selects the Scroll View 2D node or prefab that you created. |
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¶
CreateSlider2D parent name selectNewItems
Parameters¶
|
The node or prefab in which you create the Slider 2D node or prefab. |
|
The name of the Slider 2D node or prefab. |
|
Whether Kanzi Studio selects the Slider 2D node or prefab that you created. |
Examples¶
Material Creation¶
CreateMaterial¶
Create a material.
Syntax¶
CreateMaterial materialName selectNewItem materialType
Parameters¶
|
The name of the material. |
|
Whether Kanzi Studio selects the material. |
|
The material type that the material uses. |
Examples¶
CreateMaterialType¶
Create a material type.
Syntax¶
CreateMaterialType materialTypeName createMaterial
Parameters¶
|
The name of the material type. |
|
(Optional) Whether Kanzi Studio also creates a material which uses the material Type. The default value is false. |
Examples¶
Primitive Creation¶
CreateBoxNode¶
Create a cube mesh centered in its origin.
Syntax¶
CreateBoxNode parent itemName
Parameters¶
|
The node or prefab in which you create the Box node or prefab. |
|
The name of the Box node or prefab. |
Examples¶
CreateMeshNode¶
Use a Model to add imported 3D models created in third-party tools to your Kanzi application.
Syntax¶
CreateMeshNode parent itemName mesh
Parameters¶
|
The node or prefab in which you create the Model node or prefab. |
|
The name of the Model node or prefab. |
|
(Optional) The Mesh that the Model shows. |
Examples¶
CreatePlaneNode¶
Create a filled planar mesh with four vertices.
Syntax¶
CreatePlaneNode parent itemName
Parameters¶
|
The node or prefab in which you create the Plane node or prefab. |
|
The name of the Plane node or prefab. |
Examples¶
CreateSphereNode¶
Create a sphere mesh centered in its origin.
Syntax¶
CreateSphereNode parent itemName
Parameters¶
|
The node or prefab in which you create the Sphere node or prefab. |
|
The name of the Sphere node or prefab. |
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¶
CreateScene parent itemName createCameraAndLight
Parameters¶
|
The node or prefab in which you create the Scene node or prefab. |
|
The name of the Viewport 2D node or prefab. |
|
(Optional) Whether to create in the Scene node a Camera node and a Directional Light. The default value is true. |
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¶
CreateCameraNode parent itemName
Parameters¶
|
The node in which you create the Camera node. |
|
The name of the Camera node. |
Examples¶
Syntax¶
CreateCameraNode parent itemName activateAsPreviewCamera setAsDefaultCamera3D setDefaultOrientation
Parameters¶
|
The node in which you create the Camera node. |
|
The name of the Camera node. |
|
Whether to activate the camera as the Preview camera. |
|
Whether to set the camera as the default camera. |
|
Whether to set the Layout Transformation to the default orientation. |
Examples¶
# Create a Camera node named Camera in the Screen > RootPage > Viewport 2D > Scene node,
# activate the camera as the Preview camera, set the camera as the default camera,
# and set the Layout Transformation to the default orientation.
CreateCameraNode Camera "/Screens/Screen/RootPage/Viewport 2D/Scene" true true true
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¶
CreateDirectionalLightNode itemName parent
Parameters¶
|
The name of the light node. |
|
The node in which you create the light node. |
Examples¶
CreateInstantiatorNode¶
Use an Instantiator node to create a copy of the object it targets. Instantiated nodes are not interactive.
Syntax¶
CreateInstantiatorNode parent itemName target
Parameters¶
|
The node in which you create the Instantiator node. |
|
The name of the Instantiator node. |
|
(Optional) The node that the Instantiator node instantiates. |
Examples¶
# Instantiate the Screen > RootPage > Viewport 2D > Scene > Directional Light node into
# an Instantiator node named Directional Light Instance in the Screen > RootPage > Viewport 2D > Scene node.
CreateInstantiatorNode "/Screens/Screen/RootPage/Viewport 2D/Scene" "Directional Light Instance" "/Screens/Screen/RootPage/Viewport 2D/Scene/Directional Light"
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¶
CreateLevelOfDetailNode parent itemName
Parameters¶
|
The node or prefab in which you create the Level of Detail node or prefab. |
|
The name of the Level of Detail node or prefab. |
Examples¶
CreatePointLightNode¶
Point Light emits light from a specific location uniformly to all directions (360 degrees).
Syntax¶
CreatePointLightNode itemName parent
Parameters¶
|
The name of the light node. |
|
The node in which you create the light node. |
Examples¶
CreateSpotLightNode¶
Spot Light emits light from a specific location towards a specified direction in the shape of a cone.
Syntax¶
CreateSpotLightNode itemName parent
Parameters¶
|
The name of the light node. |
|
The node in which you create the light node. |
Examples¶
Render Pass Creation¶
CreateRenderPass¶
Create a render pass.
Syntax¶
CreateRenderPass parent itemName renderPassTypeName
Parameters¶
|
(Optional) The render pass or render pass prefab root in which you create the render pass. To create a render pass prefab, omit this parameter. |
|
The name of the render pass. |
|
The name of the render pass type. |
Examples¶
# Create a Group Render Pass render pass prefab named Group in the Library > Rendering > Render Pass Prefabs.
CreateRenderPass "Group" Kanzi.RenderPass
# Create a Clear Render Pass named Clear in the Library > Rendering > Render Pass Prefabs > Group.
CreateRenderPass "/Render Pass Prefabs/Group/Group" "Clear" Kanzi.ClearRenderPass
# Create a Gather Lights Render Pass named Gather Lights in the Library > Rendering > Render Pass Prefabs > Group.
CreateRenderPass "/Render Pass Prefabs/Group/Group" "Gather Lights" Kanzi.GatherLightsRenderPass
# Create a Draw Objects Render Pass named Draw in the Library > Rendering > Render Pass Prefabs > Group > Gather Lights.
CreateRenderPass "/Render Pass Prefabs/Group/Group/Gather Lights" "Draw" Kanzi.DrawObjectsRenderPass
# This example creates the render passes that you need to render content to a composition target.
# Create a Group Render Pass prefab named Render Composition Target in the Library > Rendering > Render Pass Prefabs.
CreateRenderPass "Render Composition Target" Kanzi.RenderPass
# In the Render Composition Target create a Composition Target Render Pass named Composition Target Render Pass.
CreateRenderPass "/Render Pass Prefabs/Render Composition Target/Render Composition Target" "Composition Target Render Pass" Kanzi.CompositionTargetRenderPass
# In the Composition Target Render Pass create a Default Render Pass which contains a basic set of render passes that first render opaque nodes and then transparent nodes.
CreateDefaultRenderPassTree "/Render Pass Prefabs/Render Composition Target/Render Composition Target/Composition Target Render Pass" "Default Render Pass"
# In the Render Composition Target create a Blit Render Pass named Blit Render Pass.
CreateRenderPass "/Render Pass Prefabs/Render Composition Target/Render Composition Target" "Blit Render Pass" Kanzi.BlitRenderPass
# In the Blit Render Pass bind the Texture 0 property to the Result Texture 0 property of the Composition Target Render Pass.
CreateBindingItem "/Render Pass Prefabs/Render Composition Target/Render Composition Target/Blit Render Pass" ONE_WAY null BlitRenderPass.Texture0 WHOLE_PROPERTY "{../Composition Target Render Pass/CompositionTargetRenderPass.ResultTexture0}"
# Create a Draw Objects With Material Render Pass named Draw Objects with Material in the Library > Rendering > Render Pass Prefabs > Group Render Pass render pass prefab.
CreateRenderPass "/Render Pass Prefabs/Group Render Pass/Group Render Pass" "Draw Objects with Material" Kanzi.DrawObjectsWithMaterialRenderPass
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¶
CreateComposeAndBlitRenderPassTree parent itemName
Parameters¶
|
(Optional) The render pass prefab or render pass in which you create the Compose to Blit Pass. To create a Compose to Blit Pass prefab, omit this parameter. |
|
The name of the Compose to Blit Pass. |
Examples¶
# Create a Group Render Pass render pass prefab named Group in the Library > Rendering > Render Pass Prefabs.
CreateRenderPass "Group" Kanzi.RenderPass
# Create a Compose and Blit Pass named Compose and Blit in the Group render pass prefab.
CreateComposeAndBlitRenderPassTree "/Render Pass Prefabs/Group/Group" "Compose and Blit"
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¶
CreateDefaultRenderPassTree parent itemName
Parameters¶
|
(Optional) The render pass prefab or render pass in which you create the Default Render Pass. To create a Default Render Pass prefab, omit this parameter. |
|
The name of the Default Render Pass. |
Examples¶
# Create a Group Render Pass render pass prefab named Group in the Library > Rendering > Render Pass Prefabs.
CreateRenderPass "Group" Kanzi.RenderPass
# Create a Default Render Pass named Default Render Pass in the Group render pass prefab.
CreateDefaultRenderPassTree "/Render Pass Prefabs/Group/Group" "Default Render Pass"
CreateRenderToTexturePassTree¶
Use the Render to Texture Pass render pass preset to create the render passes that you need to render to a texture.
Syntax¶
CreateRenderToTexturePassTree parent itemName
Parameters¶
|
(Optional) The render pass in which you create the Render to Texture Pass. To create a Render to Texture Pass prefab, omit this parameter. |
|
The name of the Render to Texture Pass. |
Examples¶
# Create a Group Render Pass render pass prefab named Group in the Library > Rendering > Render Pass Prefabs.
CreateRenderPass "Group" Kanzi.RenderPass
# Create a Render to Texture Pass named Render to Texture in the Group render pass prefab.
CreateRenderToTexturePassTree "/Render Pass Prefabs/Group/Group" "Render to Texture"
Effect Creation¶
CreateNodeEffect2D¶
Use effects to apply post-processing effects to 2D nodes.
Syntax¶
CreateNodeEffect2D itemName effectTypeName
Parameters¶
|
The name of the effect. |
|
The type of the effect. |
Examples¶
Effect Preset Creation¶
CreateDefaultEffectStack¶
Use the Default Effect Stack 2D preset to quickly create and apply common effect types.
Syntax¶
CreateDefaultEffectStack itemName
Parameters¶
|
The name of the Default Effect Stack 2D. |
Examples¶
Misc Creation¶
CreateApplicationConfiguration¶
Create a build configuration.
Syntax¶
CreateApplicationConfiguration itemName configurationType
Parameters¶
|
The name of the build configuration. |
|
(Optional) The type of the build configuration: Android, QNX, or Windows. The default is Common Build Configuration. |
Examples¶
# Create a common build configuration named My Build Configuration in the Library > Build Configurations.
CreateApplicationConfiguration "My Build Configuration"
# In My Build Configuration, set the Application Root Directory to ..\..\..\Application.
SetProperty "/Resource Files/Build Configurations/My Build Configuration" BuildConfigurationApplicationRootDirectory "..\..\..\Application"
# In My Build Configuration, set the Build Profile to Debug.
SetProperty "/Resource Files/Build Configurations/My Build Configuration" BuildConfiguration.BuildProfile Debug
# Create an Android build configuration named My Android Build Configuration in the Library > Build Configurations.
CreateApplicationConfiguration "My Android Build Configuration" Android
# In My Android Build Configuration, set the CPU Architecture to ARM.
SetProperty "/Resource Files/Build Configurations/My Android Build Configuration" BuildConfigurationTargetArchitecture ARM
# In My Android Build Configuration, set the Launch Application property to disabled.
SetProperty "/Resource Files/Build Configurations/My Android Build Configuration" BuildConfigurationRunApplication False
# In My Android Build Configuration, set the APK Path to output\my-directory.
SetProperty "/Resource Files/Build Configurations/My Android Build Configuration" BuildConfigurationAPKPath "output\my-directory"
CreateDataSource¶
Create a data source.
Syntax¶
CreateDataSource itemName dataSourceTypeName
Parameters¶
|
The name of the data source. |
|
The name of the data source type as declared in the Kanzi Engine data source plugin code. |
Examples¶
CreateFontFamily¶
Creates an empty font family.
Syntax¶
CreateFontFamily fontFamilyName fontFile
Parameters¶
|
The name of the font family. |
|
(Optional) The font file resource that you set the Font Family to use. |
Examples¶
CreateLocale¶
Create a locale.
Syntax¶
CreateLocale parent name
Parameters¶
|
The Localization Table in which you create the locale. |
|
The name of the locale. |
Examples¶
CreateLocalizationTable¶
Create a localization table.
Syntax¶
CreateLocalizationTable name selectNewItems
Parameters¶
|
The name of the Localization Table. |
|
(Optional) Whether Kanzi Studio selects the Localization Table. The default value is false. |
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¶
CreateNode3DPrefabPlaceholder parent itemName prefabTemplate
Parameters¶
|
The node in which you create the Prefab Placeholder 3D node. |
|
The name of the Prefab Placeholder 3D node. |
|
(Optional) The prefab template which you set the Prefab Placeholder 3D node to use. |
Examples¶
# Create a Prefab Placeholder 3D node named My Prefab Placeholder 3D in the Screen > RootPage > Viewport 2D > Scene node
# and set the Prefab Template property of the My Prefab Placeholder 3D node to the Prefabs > Toggle Button 3D prefab.
CreateNode3DPrefabPlaceholder "/Screens/Screen/RootPage/Viewport 2D/Scene" "My Prefab Placeholder 3D" "/Prefabs/Toggle Button 3D"
CreateResourceDictionary¶
Creates a resources dictionary in the selected node.
Syntax¶
CreateResourceDictionary parent
Parameters¶
|
The node to which you add the resource dictionary. |
Examples¶
CreateState¶
Create a state item in a state group.
Syntax¶
CreateState parent name selectNewItems
Parameters¶
|
The state group in which you create the state. |
|
The name of the state. |
|
Whether Kanzi Studio selects the state. |
Examples¶
CreateStateGroup¶
Create a state group.
Syntax¶
CreateStateGroup parent name selectNewItems
Parameters¶
|
The state manager in which you create the state group. |
|
The name of the state group. |
|
(Optional) Whether Kanzi Studio selects the state group. The default value is true. |
Examples¶
CreateStateManager¶
Create a state manager.
Syntax¶
CreateStateManager itemName selectNewItems
Parameters¶
|
The name of the state manager. |
|
(Optional) Whether Kanzi Studio selects the state manager. The default value is true. |
Examples¶
Syntax¶
CreateStateManager itemName selectNewItems createContent
Parameters¶
|
The name of the state manager. |
|
Whether Kanzi Studio selects the state manager. |
|
Whether to create in the state manager a state group with two states. |
Examples¶
CreateStateWithTarget¶
Create a child state object under a state
Syntax¶
CreateStateWithTarget parent name stateObjectPath selectNewItems
Parameters¶
|
The state in which you create the state object. |
|
The name of the state object. |
|
The value of the Target Object Path property of the state object. |
|
Whether Kanzi Studio selects the state object. |
Examples¶
# Create a state object named Car Object in the Library > State Managers > My State Manager > State Group > State 1 state,
# and set the Target Object Path property to Car. Do not select the Car Object state object.
CreateStateWithTarget "/State Managers/My State Manager/State Group/State 1" "Car Object" "Car" false
Syntax¶
CreateStateWithTarget name parent selectNewItems
Parameters¶
|
The name of the state object. |
|
The state in which you create the state object. |
|
Whether Kanzi Studio selects the state object. |
Examples¶
CreateTag¶
Use a Tag to categorize project objects. You can assign multiple tags to an object.
Syntax¶
CreateTag itemName selectNewItems
Parameters¶
|
The name of the tag. |
|
Whether Kanzi Studio selects the tag. |
Examples¶
CreateTheme¶
Create a theme.
Syntax¶
CreateTheme parent name
Parameters¶
|
The Theme Group in which you create the Theme. |
|
The name of the Theme. |
Examples¶
CreateThemeGroup¶
Create a theme group.
Syntax¶
CreateThemeGroup name selectNewItems
Parameters¶
|
The name of the Theme Group. |
|
(Optional) Whether Kanzi Studio selects the Theme Group. The default value is false. |
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¶
ExportLocalizationTable localizationTable localizationDirectoryPath
Parameters¶
|
The localization table that you export. |
|
The directory to which you export the localization table. |
Examples¶
# Export the Library > Localization > Localization Table to the C:\Temp directory.
# Kanzi Studio creates the C:\Temp\Localization Table directory, and exports to the directory
# the localization table template to a .pot file, and as many .po files as you have locales
# in that localization table.
ExportLocalizationTable "/Localization/Localization Table" "C:\Temp"
ImportAllLocalizationTables¶
Import all PO files from all localization table folders in the Localization directory of your project.
Syntax¶
ImportAllLocalizationTables localizationDirectoryPath
Parameters¶
|
Path to the directory that contains the localization table folders. Kanzi Studio looks in this directory for folders that contain PO files, and creates for each such folder a localization table named after the folder. If a localization table already exists, Kanzi Studio updates it. |
Examples¶
# Imports all PO files from all directories found in the
# C:\KanziWorkspace\Projects\MyProject\Tool_Project\Localization directory.
# Kanzi Studio imports the files for all localization tables in the Library > Localization.
ImportAllLocalizationTables "C:\KanziWorkspace\Projects\MyProject\Tool_Project\Localization"
ImportEnginePlugin¶
Import Kanzi Engine plugin. During import the components, property types, messages and triggers contained in the plugin become available to the project.
Syntax¶
ImportEnginePlugin loadPath existingPlugin
Parameters¶
|
To update an existing Kanzi Engine plugin leave this parameter empty. |
|
The Kanzi Engine plugin that you update. |
Examples¶
Syntax¶
ImportEnginePlugin existingPluginFile
Parameters¶
|
The Kanzi Engine plugin DLL. |
Examples¶
# Import the Kanzi Engine plugin DLL MyPluginProject\Application\lib\Win64\GL_vs2019_Debug_DLL\MyPluginProject.dll.
# Kanzi Studio adds to the Library > Kanzi Engine Plugins a reference to the Kanzi Engine plugin DLL that you import.
ImportEnginePlugin "C:\KanziWorkspace\Projects\MyPluginProject\Application\lib\Win64\GL_vs2019_Debug_DLL\MyPluginProject.dll"
TagItems¶
Adds a tag to a set of items.
Syntax¶
TagItems tags itemsToTag
Parameters¶
|
The tags that you assign. Separate a list of tags with semicolons. |
|
The nodes to which you assign the tags. Separate a list of nodes with semicolons. |
Examples¶
# Create a tag named Lights in the Library > Tags and select the tag.
CreateTag "Lights" true
# Create a Spot Light node named Spot Light in the Screen > RootPage > Viewport 2D > Scene node.
CreateSpotLightNode "Spot Light" "/Screens/Screen/RootPage/Viewport 2D/Scene"
# Tag the Directional Light and Spot Light nodes with the Lights tag.
TagItems "/Tags/Lights" "/Screens/Screen/RootPage/Viewport 2D/Scene/Directional Light; /Screens/Screen/RootPage/Viewport 2D/Scene/Spot Light"
UpdateDataSourceContents¶
Read and cache data from data source for creating data bindings in UI.
Syntax¶
UpdateDataSourceContents dataSource
Parameters¶
|
The data source that you update. |
Examples¶
UpdateProjectDataSources¶
Read and cache data from data sources defined in this project for creating data bindings in UI.
Syntax¶
UpdateProjectDataSources
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¶
UpdateProjectEnginePlugins
Examples¶
UpdateSolutionDataSources¶
Read and cache data from data sources defined in this solution for creating data bindings in UI.
Syntax¶
UpdateSolutionDataSources
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¶
UpdateSolutionEnginePlugins
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¶
CreateCombineObjectSource itemName
Parameters¶
|
The name of the Combine Object Source. |
Examples¶
# Create a Combine Object Source named My Combine Object Source in the Library > Rendering > Object Sources.
CreateCombineObjectSource "My Combine Object Source"
# In My Combine Object Source set the Inputs list to contain the Transparent and My Tag Filter filters.
SetProperty "/Object Sources/My Combine Object Source" CombineObjectSourceInputs "/Object Sources/Transparent#/Object Sources/My Tag Filter"
CreateContainsPropertyFilterObjectSource¶
Use a Contains Property Filter to collect nodes that contain, or do not contain a specific property.
Syntax¶
CreateContainsPropertyFilterObjectSource itemName
Parameters¶
|
The name of the filter. |
Examples¶
# Create a Contains Property Filter named My Contains Property Filter
# in the Library > Rendering > Object Sources.
CreateContainsPropertyFilterObjectSource "My Contains Property Filter"
# In My Contains Property Filter set the Property Type property to Ambient Color (Ambient).
SetProperty "/Object Sources/My Contains Property Filter" ContainsPropertyFilterPropertyTypeName Ambient
# In My Contains Property Filter set the Operation property to EXCLUDE.
SetProperty "/Object Sources/My Contains Property Filter" ContainsPropertyFilterOperation EXCLUDE
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¶
CreateFixedSortFilterObjectSource itemName
Parameters¶
|
The name of the filter. |
Examples¶
# Create a Sorting Filter named My Sorting Filter in the Library > Rendering > Object Sources.
CreateFixedSortFilterObjectSource "My Sorting Filter"
# Set the Sorting Type property of My Sorting Filter to Material type.
SetProperty "/Object Sources/My Sorting Filter" FixedSortType MATERIAL_TYPE
# In My Sorting Filter set the Reverse Order property to enabled.
SetProperty "/Object Sources/My Sorting Filter" FixedSortReverse true
CreateObjectTypeFilterObjectSource¶
Use an Object Type Filter to collect nodes based on their type.
Syntax¶
CreateObjectTypeFilterObjectSource itemName
Parameters¶
|
The name of the filter. |
Examples¶
# Create an Object Type Filter named My Object Type Filter in the Library > Rendering > Object Sources.
CreateObjectTypeFilterObjectSource "My Object Type Filter"
# In My Object Type Filter set the Type property to Light.
SetProperty "/Object Sources/My Object Type Filter" ObjectTypeFilterObjectType LIGHT
# In My Object Type Filter set the Operation property to Exclude.
SetProperty "/Object Sources/My Object Type Filter" ObjectTypeFilterOperation EXCLUDE
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¶
CreatePropertyIsEqualObjectSource itemName
Parameters¶
|
The name of the filter. |
Examples¶
CreateTagFilter¶
Use a Tag Filter to collect the nodes that have a specific tag assigned.
Syntax¶
CreateTagFilter itemName
Parameters¶
|
The name of the filter. |
Examples¶
# Create a Tag Filter named My Tag Filter in the Library > Rendering > Object Sources.
CreateTagFilter "My Tag Filter"
# Create a tag named My Tag in the Library > Tags.
CreateTag "My Tag" false
# Create a tag named Lights in the Library > Tags.
CreateTag "Lights" false
# In My Tag Filter set the Included Tags list to contain the My Tag and Lights tags.
SetProperty "/Object Sources/My Tag Filter" TagFilterIncludeList "/Tags/My Tag#/Tags/Lights"
# In My Tag Filter set the Excluded Tags list to contain the Transparent tag.
SetProperty "/Object Sources/My Tag Filter" TagFilterExcludeList "/Tags/Transparent"
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¶
CreateEnvironmentCubeMapTexture imageFile size name
Parameters¶
|
The HDR image from which you want to generate the environment cubemap texture. |
|
The width and height of the square-shaped cubemap side images. |
|
(Optional) The name of the environment cubemap texture. |
Examples¶
# Create an environment cubemap texture named My Environment Cubemap Texture
# from the Library > Resource Files > Images > my_skybox_image.exr image and
# set the size of the cubemap side images to 1024x1024 pixels.
CreateEnvironmentCubeMapTexture "/Resource Files/Images/my_skybox_image.exr" 1024 "My Environment Cubemap Texture"
# Create an environment cubemap texture from the Library > Resource Files >
# Images > my_skybox_image.exr image. Let Kanzi Studio name the texture
# my_skybox_image_environment and set the size of the cubemap side images to
# 1024x1024 pixels.
CreateEnvironmentCubeMapTexture "/Resource Files/Images/my_skybox_image.exr" 1024
Syntax¶
CreateEnvironmentCubeMapTexture imageFile
Parameters¶
|
The HDR image from which you want to generate the environment cubemap texture. |
Examples¶
# Create an environment cubemap texture from the Library > Resource Files >
# Images > my_skybox_image.exr image and let Kanzi Studio name the texture
# my_skybox_image_environment. Kanzi Studio creates cubemap side images whose
# dimensions are one quarter of the width of the input image.
CreateEnvironmentCubeMapTexture "/Resource Files/Images/my_skybox_image.exr"
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¶
CreateIrradianceCubeMapTexture sourceImage samples size name
Parameters¶
|
The HDR image from which you want to generate the irradiance cubemap texture. |
|
The number of samples to use to generate the cubemap. A larger number of samples results in a cubemap that approximates the environment lighting more accurately. |
|
The width and height of the square-shaped cubemap side images. |
|
(Optional) The name of the irradiance cubemap texture. |
Examples¶
# Create an irradiance cubemap texture named My Irradiance Cubemap Texture
# from the Library > Resource Files > Images > my_skybox_image.exr image.
# Use 256 samples and set the size of the cubemap side images to 1024x1024
# pixels.
CreateIrradianceCubeMapTexture "/Resource Files/Images/my_skybox_image.exr" 256 1024 "My Irradiance Cubemap Texture"
# Create an irradiance cubemap texture from the Library > Resource Files >
# Images > my_skybox_image.exr image and let Kanzi Studio name the texture
# my_skybox_image_irradiance. Use 1024 samples and set the size of the cubemap
# side images to 256x256 pixels.
CreateIrradianceCubeMapTexture "/Resource Files/Images/my_skybox_image.exr" 1024 256
Syntax¶
CreateIrradianceCubeMapTexture sourceImage
Parameters¶
|
The HDR image from which you want to generate the irradiance cubemap texture. |
Examples¶
# Create an irradiance cubemap texture from the Library > Resource Files >
# Images > my_skybox_image.exr image and let Kanzi Studio name the texture
# my_skybox_image_irradiance. Kanzi Studio uses 1024 samples to generate the
# cubemap and creates cubemap side images whose dimensions are one quarter
# of the width of the input image but at most 256 pixels.
CreateIrradianceCubeMapTexture "/Resource Files/Images/my_skybox_image.exr"
CreateRenderTargetTexture¶
Use a Render Target Texture to dynamically render content from 2D layouts into a texture.
Syntax¶
CreateRenderTargetTexture textureName
Parameters¶
|
The name of the texture. |
Examples¶
# Create a render target texture named My Render Target Texture in the Library > Materials and Textures > Textures.
CreateRenderTargetTexture "My Render Target Texture"
# In My Render Target Texture set the Width and Height properties to 256.
SetProperty "/Textures/My Render Target Texture" RenderTargetTextureWidth 256
SetProperty "/Textures/My Render Target Texture" RenderTargetTextureHeight 256
CreateSingleTexture¶
Use a Single Texture when you want to use a single image as a texture.
Syntax¶
CreateSingleTexture textureName image
Parameters¶
|
The name of the texture. |
|
(Optional) The image resource that you set the texture to use. |
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¶
CreateSpecularCubeMapTexture sourceImage samples size name
Parameters¶
|
The HDR image from which you want to generate the specular cubemap texture. |
|
The number of samples to use to generate the cubemap. A larger number of samples results in a cubemap that approximates the environment lighting more accurately. |
|
The width and height of the square-shaped cubemap side images. |
|
(Optional) The name of the specular cubemap texture. |
Examples¶
# Create a specular cubemap texture named My Specular Cubemap Texture
# from the Library > Resource Files > Images > my_skybox_image.exr image.
# Use 256 samples and set the size of the cubemap side images to 1024x1024 pixels.
CreateSpecularCubeMapTexture "/Resource Files/Images/my_skybox_image.exr" 256 1024 "My Specular Cubemap Texture"
# Create a specular cubemap texture from the Library > Resource Files >
# Images > my_skybox_image.exr image and let Kanzi Studio name the texture
# my_skybox_image_specular. Use 1024 samples and set the size of the cubemap
# side images to 256x256 pixels.
CreateSpecularCubeMapTexture "/Resource Files/Images/my_skybox_image.exr" 1024 256
Syntax¶
CreateSpecularCubeMapTexture sourceImage
Parameters¶
|
The HDR image from which you want to generate the specular cubemap texture. |
Examples¶
# Create a specular cubemap texture from the Library > Resource Files >
# Images > my_skybox_image.exr image and let Kanzi Studio name the texture
# my_skybox_image_specular. Kanzi Studio uses 1024 samples to generate the
# cubemap and creates cubemap side images whose dimensions are one quarter
# of the width of the input image but at most 256 pixels.
CreateSpecularCubeMapTexture "/Resource Files/Images/my_skybox_image.exr"
Trajectory Creation¶
CreateAngleTrajectory¶
Use an Angle Trajectory to create a path where two straight lines form an angle in 3D space.
Syntax¶
CreateAngleTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateAngleTrajectory itemName selectNewItems resourceDictionary
Parameters¶
|
The name of the trajectory. |
|
Whether Kanzi Studio selects the trajectory that you created. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
CreateArcTrajectory¶
Use an Arc Trajectory to create a path in the shape of an arc in 3D space.
Syntax¶
CreateArcTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateArcTrajectory library itemName selectNewItems resourceDictionary
Parameters¶
|
(Optional) The Trajectory Library in which you create the trajectory. |
|
The name of the trajectory. |
|
Whether Kanzi Studio selects the trajectory that you created. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
CreateCircleTrajectory¶
Use a Circle Trajectory to create a path in the shape of a circle in 3D space.
Syntax¶
CreateCircleTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateCircleTrajectory library itemName resourceDictionary
Parameters¶
|
(Optional) The Trajectory Library in which you create the trajectory. |
|
The name of the trajectory. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
CreateEllipseTrajectory¶
Use an Ellipse Trajectory to create a path in the shape of an ellipse in 3D space.
Syntax¶
CreateEllipseTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateEllipseTrajectory library itemName selectNewItems resourceDictionary
Parameters¶
|
(Optional) The Trajectory Library in which you create the trajectory. |
|
The name of the trajectory. |
|
Whether Kanzi Studio selects the trajectory that you created. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
CreateLineTrajectory¶
Use a Line Trajectory to create a path with a single straight line in 3D space.
Syntax¶
CreateLineTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateLineTrajectory library itemName selectNewItems resourceDictionary
Parameters¶
|
(Optional) The Trajectory Library in which you create the trajectory. |
|
The name of the trajectory. |
|
Whether Kanzi Studio selects the trajectory that you created. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
CreateRectangleTrajectory¶
Use a Rectangle Trajectory to create a path in the shape of a rectangle in 3D space.
Syntax¶
CreateRectangleTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateRectangleTrajectory library itemName selectNewItems resourceDictionary
Parameters¶
|
(Optional) The Trajectory Library in which you create the trajectory. |
|
The name of the trajectory. |
|
Whether Kanzi Studio selects the trajectory that you created. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
CreateSpiralTrajectory¶
Use a Spiral Trajectory to create a path in the shape of a spiral in 3D space.
Syntax¶
CreateSpiralTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateSpiralTrajectory library itemName selectNewItems resourceDictionary
Parameters¶
|
(Optional) The Trajectory Library in which you create the trajectory. |
|
The name of the trajectory. |
|
Whether Kanzi Studio selects the trajectory that you created. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
CreateTrapezoidTrajectory¶
Use a Trapezoid Trajectory to create a path in the shape of a trapezoid in 3D space.
Syntax¶
CreateTrapezoidTrajectory itemName
Parameters¶
|
The name of the trajectory. |
Examples¶
Syntax¶
CreateTrapezoidTrajectory library itemName selectNewItems resourceDictionary
Parameters¶
|
(Optional) The Trajectory Library in which you create the trajectory. |
|
The name of the trajectory. |
|
Whether Kanzi Studio selects the trajectory that you created. |
|
The resource dictionary to which you add the trajectory. |
Examples¶
Import¶
ImportImages¶
Import images into project
Syntax¶
ImportImages filePath createTextures
Parameters¶
|
The path to the image you import. |
|
Whether to create a texture of the image. |
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¶
CleanCachedFiles
Examples¶
CloseSolution¶
Close the currently open primary project and its referenced projects.
Syntax¶
CloseSolution
Examples¶
CompressImage¶
Preprocess the selected images. Preprocessing can include image compression and the generation of mipmaps.
Syntax¶
CompressImage imageFiles
Parameters¶
|
The image files that you want to preprocess. |
Examples¶
CreateKanziApplication¶
Create a Kanzi Engine application for the selected build configuration.
Syntax¶
CreateKanziApplication buildConfiguration
Parameters¶
|
The path to the build configuration for which you want to create the application. |
Examples¶
# Create an Android build configuration named MyAndroidProject in the
# Library > Build Configurations.
CreateApplicationConfiguration MyAndroidProject Android
# Create a Kanzi application directory hierarchy for the MyAndroidProject
# build configuration.
CreateKanziApplication "/Resource Files/Build Configurations/MyAndroidProject"
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¶
DeleteExportedBinaries
Examples¶
Syntax¶
DeleteExportedBinaries exportDirectory
Parameters¶
|
The directory from which you want to delete kzb files. |
Examples¶
ExitApplication¶
Close Kanzi Studio.
Syntax¶
ExitApplication allowCancel silentExit
Parameters¶
|
Whether the user can cancel the action. |
|
Whether Kanzi Studio closes without showing any dialogs. |
Examples¶
Syntax¶
ExitApplication
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¶
ExportAllProjectBinaries
Examples¶
Syntax¶
ExportAllProjectBinaries targetDirectory compressImages exportKzbPlayer
Parameters¶
|
The directory to which you want to export the kzb files. |
|
Whether to preprocess the images in the project. |
|
Whether to export the project as a standalone Windows application using the kzb Player. |
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¶
ExportBakedThemeBinaries
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¶
ExportBinary exportThemesAndLocaleResourcesSeparately exportXml
Parameters¶
|
Whether Kanzi Studio exports the theme and locale resources to separate kzb files. |
|
Whether Kanzi Studio exports kza file, which is the XML version of the kzb file. |
Examples¶
Syntax¶
ExportBinary fileName
Parameters¶
|
The name of the kzb file. |
Examples¶
ExportBinaryWithApplication¶
Export the project as a standalone Windows application using the kzb Player and kzb file.
Syntax¶
ExportBinaryWithApplication
ExportDescriptions¶
Export the content of all Description properties in the project to a plain text file.
Syntax¶
ExportDescriptions root outputFile
Parameters¶
|
(Optional) The root node of the node tree the descriptions of which you export. If you do not set this parameter, Kanzi Studio exports the descriptions of all items in the project. |
|
The file to which you export the descriptions. |
Examples¶
ImportProject¶
Import another Kanzi Studio project to the active project.
Syntax¶
ImportProject importProjectPath
Parameters¶
|
Full path name of the Kanzi Studio project file that you import. |
Examples¶
LoadMaterialType¶
Load material type from disk
Syntax¶
LoadMaterialType loadPath
Parameters¶
|
The path to the kzmat file you load. |
Examples¶
# Load the C:\Program Files\Rightware\Kanzi\Studio\Asset Library\MaterialTypes\VertexPhong\Postprocessing\PostprocessingBoxBlur.kzmat file.
# Kanzi Studio adds to the Library > Materials and Textures > Material Types the PostprocessingBoxBlur material type and
# creates the PostprocessingBoxBlurMaterial material which uses the PostprocessingBoxBlur material type.
LoadMaterialType "C:\Program Files\Rightware\Kanzi\Studio\Asset Library\MaterialTypes\VertexPhong\Postprocessing\PostprocessingBoxBlur.kzmat"
LoadProject¶
Open a project from disk.
Syntax¶
LoadProject path
Parameters¶
|
The project that you open. |
Examples¶
NewProject¶
Create a Kanzi Studio project.
Syntax¶
NewProject newProjectFilePath
Parameters¶
|
The path to the project you create. |
Examples¶
SaveMaterialType¶
Save material type to disk
Syntax¶
SaveMaterialType savePath materialType
Parameters¶
|
Full path to the file to which you save the material type. |
|
The material type that you save. |
Examples¶
SaveProject¶
Save the project to disk.
Syntax¶
SaveProject savePath continueWorkingInOldPath
Parameters¶
|
The location to which you save the project. |
|
whether Kanzi Studio continues working in the directory where you opened the project. When you save the project to a different location, set this parameter to false. |
Examples¶
Building¶
ExportApk¶
Build and deploy an Android Package (APK) using the build configuration set in Project > Properties > Building > Default Build Configuration.
Syntax¶
ExportApk buildConfiguration compressImages
Parameters¶
|
The build configuration to use when building the Android Package (APK). |
|
Whether to preprocess the images in the project. |
Examples¶
Preview¶
StartPreview¶
Start the Preview.
Syntax¶
StartPreview
Examples¶
General¶
Plugin¶
Execute commands defined in Kanzi Studio plugins.
Syntax¶
Plugin pluginCommandName projectItem
Parameters¶
|
The internal name of the plugin command. |
|
(Optional) The project item from the context menu of which you want to run the plugin command. |