{lyn2265} adding a Python API for MotionGroup rules (#6215)
* {lyn2265} adding a Python API for MotionGroup rules
Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>
* updating the license headers
added more proper example code for motion group
Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>
* updating the actor group to use the common rules module
Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
"""
|
||||
Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
"""
|
||||
#
|
||||
# Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
#
|
||||
#
|
||||
import typing
|
||||
import json
|
||||
import azlmbr.scene as sceneApi
|
||||
from enum import IntEnum
|
||||
|
||||
|
||||
# Wraps the AZ.SceneAPI.Containers.SceneGraph.NodeIndex internal class
|
||||
class SceneGraphNodeIndex:
|
||||
def __init__(self, scene_graph_node_index) -> None:
|
||||
@@ -199,6 +199,16 @@ class SceneManifest:
|
||||
self.manifest['values'].append(prefab_group)
|
||||
return prefab_group
|
||||
|
||||
def add_actor_group(self, group) -> dict:
|
||||
groupDict = group.to_dict()
|
||||
self.manifest['values'].append(groupDict)
|
||||
return groupDict
|
||||
|
||||
def add_motion_group(self, group) -> dict:
|
||||
groupDict = group.to_dict()
|
||||
self.manifest['values'].append(groupDict)
|
||||
return groupDict
|
||||
|
||||
def mesh_group_select_node(self, mesh_group: dict, node_name: str) -> None:
|
||||
"""Adds a node as a selected node.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user