Lastly, you can create a Control Rig Asset based on a Skeleton or Skeletal Mesh with the following example code: Rig = factory.create_new_control_rig_asset(desired_package_path = '/Game/TestRig') Rigs = _currently_open_rig_blueprints()Ĭreating a new Control Rig Asset is done using:įactory = unreal.ControlRigBlueprintFactory() You can also load any currently open Control Rig Asset using: Rig = unreal.load_object(name = '/Game/ControlRig/Samples/Mannequin_ControlRig', outer = None) To access an existing rig, load the asset with the following example command: Unreal.load_module('ControlRigDeveloper') There are several ways to access it, however your first command will usually be to load the ControlRigDeveloper module in order to make changes to Control Rig. The first step when scripting is to access the main object you will be interacting with, in this case the ControlRigBlueprint object. The plugin also automatically enables when the Control Rig Plugin is enabled, as it is a dependency. Python is enabled from the Python Editor Script Plugin, which itself is enabled by default in Unreal Engine. This is used throughout the Unreal Editor to create assets. The asset containing the Graph, the Controller, Compiler and VM.Īn object responsible for creating and importing new objects. The virtual machine runtime used to execute the rig.Ī value that can be used as an input to or output from the rigĪ value that can be changed and runtime and is retained following executions of the rig. Similar to the Controller, the Hierarch圜ontroller is used to make changes to the hierarchy.Īn object to turn a Control Rig graph into a high performance runtime. The model is the graph itself using the following terminology:Ī C++ struct defining a function for a rig (Example: FRigUnit_GetBoneTransform).Ī directed graph containing all nodes and links within a rig.Ī string describing the address of a pin within the graph (Example: ).Īn object used to make changes in the graph.Ĭhosen from Bone, Control, Null, or Curve.Īn element of the rig in the skeleton used for deformation.Īn element of the rig used for interaction.Īn element of the rig used for intermediate transforms.Īn element of the rig used to store a float channel.Ī visual representation of a Control in the Viewport.Ī container storing all Bones, Controls, Nulls, and Curves within the rig. The Control Rig Graph has been implemented using the Model - View - Controller design pattern. Python is primarily used in Control Rig to interact with the Rig Graph, which consists of multiple modules:Ĭontains all of the functionality to make changes to rigs.Ĭontains front-end and user-interface logic. You have some experience with Python scripting in Unreal Engine. This document provides an overview of Python scripting in Control Rig, the Control Rig Python Log, and a few scripting examples. You can also use the Control Rig Python Log to reverse-engineer commands and copy scripts to share to other projects. Use Python scripting in Control Rig to automate workflows and create tools for the rigging process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |