User Tools

Site Tools


ig:gfx:photocreator:sampels

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ig:gfx:photocreator:sampels [2021/05/06 09:39] – created ig_jscig:gfx:photocreator:sampels [2024/04/04 08:04] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Sample Photo.json and parameter list ====== ====== Sample Photo.json and parameter list ======
 +
 +===== Photo.json Template =====
 +
 +Copy these lines, adjust and save them as Photo.json
 +
 +<code javascript>
 +{
 +  "_Description": "Template Photo.json form the IG Doku Wiki",
 +  "Cameras": {
 +    "Standard": {
 +      "X": -3.0,
 +      "Y": 1.8,
 +      "Z": 3.0,
 +      "_X": 2.0,
 +      "_Y": 0.0,
 +      "_Z": -1.0
 +    }
 +  },
 +  "Camera": "Standard",
 +  "Width": 1920,
 +  "Height": 1080,
 +  "Environment": "?01",
 +  "State": {},
 +  "Scope": "Domain.Subdomain or ask the admin for help"
 +  "Password": "Creator Domain PWD for RO user"
 +  "Products":[
 +    {
 +      "_": "Write description here",
 +      "Id": "Id_Free_2_Choose",
 +      "NativeId": "Get_From_Commercial_Data"
 +    },
 +    {}
 +  ],
 +  "Sets": []
 +}
 +</code>
 +
 +
 +===== Parameters =====
 +
 +
 +|Cameras| Define 1 -n cameras \\ Each camera has a name, a position (X, Y, Z) and a view point (_X, _Y, _Z) \\ Additionally you can define an AutoPlace in "CenterXZ" or "CenterX" \\ <code javascript>"Cameras":{
 +  "Standard": {
 +    "X": -3.0,
 +    "Y": 1.8,
 +    "Z": 3.0,
 +    "_X": 2.0,
 +    "_Y": 0.0,
 +    "_Z": -1.0
 +    "AutoPlace": "CenterXZ"
 +  },
 +  "Left": {…},
 +  "Top": {…}  
 +} </code>|
 +|Camera|Define which of the created cameras to use|
 +|Media|Define a set of cameras to loop through. \\ <code javascript>"Media":[
 +  "C1",
 +  "C2",
 +  "C3"
 +]
 +</code>|
 +|MediaCamera|Link the defined cameras to the media camera <code javascript>"MediaCamera": {
 +  "C1": "Standard",
 +  "C2": "Left",
 +  "C3": "Top"
 +}</code>|
 +|Width|Image pixel horizontal|
 +|Height|Image pixel vertical|
 +|Environment|Define the background for your rendering (01, 02, 03, 04, 05, 06) \\ Additionally define the resolution for your rendering (?) |
 +|State|Define the properties and there values. The property can be take from the IG.Creator Configuration table. This is the Id of a property or a value. <code javascript> "State": {
 +  "P1": "V1",
 +  "P2": "V2"
 +} </code>|
 +|Loops|Loop over a property to get more than one state of it. <code javascript> "State": {
 +  "P2": "V2"
 +},
 +"Loops": {
 +  "P1": [
 +    "V1a",
 +    "V1b"
 +  ],
 +  "P3": [
 +    "V3a",
 +    "V3b"
 +  ]
 +}</code>|
 +|Scope|Define the scope for doing a rendering|
 +|Password|A costumer personal password|
 +|Products|Define a list of products to render. Each product consists of:<code javascript>"Id": "Name_Free_2_Choose",
 +"NativeId": "Id_From_Commercial_Data" </code>|
 +|Sets|From the listed singel products, define a bigger set <code javascript>"Sets":[
 +  {
 +    "Id": "Set_Name_Free_2_Choose",
 +    "Camera": "Top"
 +    "Products": [
 +      {
 +        "Id": "Id_From_Single_Article_1"
 +      },
 +      {
 +        "Id": "Id_From_Single_Article_2",
 +        "X": 1,
 +        "Z": 1,
 +        "YR": 90
 +      }
 +    ]
 +  }
 +]</code>|
 +|SetOnly|Add this to the Product, if only render an article inside a set. <code javascript>"Producs":[
 +  {
 +    "_": "This article will only be used in sets",
 +    "Id": "JustSet",
 +    "NativeId": "1234",
 +    "SetOnly": "True"
 +  }
 +]</code>|
 +|Settings|In this section, define costume key value pairs for costum render options. E.g.: <code javascript>"Settings":{
 +  "Renderer": "Blender",
 +  "Output": "fbx"
 +}</code> :!: This values will only work if the render script does know how to handle them. Otherwise they will be ignored.|
  
ig/gfx/photocreator/sampels.1620286773.txt.gz · Last modified: 2024/04/04 08:04 (external edit)