dev.UpdatingHomeTemplate - tixl3d/tixl GitHub Wiki
When user's create a new project it will be initialized with a template. This is stored in .Defaults/default-home/*.
These will use a {{handlebar}} syntax to describe the fields that will be initialized with the new project's name and author.
Here you will find three files:
{{PROJ}}.t3ui{{PROJ}}.t3{{PROJ}}.cs
- Create a new project called
MyNewProject. - Update the project's home with your new content.
- Save and exit TiXL editor.
- Copy the
.t3,.t3ui, and.csfiles from your project's folder (e.g.C:/Users/YourName/Documents/TiXl/MyNewProject) to.Defaults/default-home/in your tixl source code folder. - Rename the files (e.g.
MyNewProject.t3->{{PROJ}}.t3, replacing the original once. - Open all three files (or the folder) in a text editor like Visual Studio Code.
- Replace the Id, user name, project name and namespace as follows....
| Name | Example (in your file) | Replace with |
|---|---|---|
| Class-Id | 09a70ccd-f4b8-4640-b41d-62516a3f485d | {{GUID}} |
| Your user name | JonDoe | {{USER}} |
| Project Name | MyNewProject | {{PROJ}} |
| Namespace | JonDoe.MyNewProject | {{NAMESPACE}} |
using T3.Core.Operator;
using T3.Core.Operator.Attributes;
using System.Runtime.InteropServices;
using T3.Core.DataTypes;
using T3.Core.Operator.Interfaces;
using T3.Core.Operator.Slots;
using T3.Core.Resource;
namespace {{NAMESPACE}};
[Guid("{{GUID}}")]
internal sealed class {{PROJ}} : Instance<{{PROJ}}>
{
}{
"Name": "{{PROJ}}",
"Id": "{{GUID}}",{
"Id": "{{GUID}}"/*{{PROJ}}*/,
"Description": "{{USER}}'s workspace for {{PROJ}}.",
"InputUis": [],
"SymbolChildUis": [- Start TiXL
- Create new project (e.g. MyNewProject2) and verify that your changes were applied
- Commit or push your changes as a pull request on GitHub.