User Tools

Site Tools


ig:gfx:photocreator:sampels

Sample Photo.json and parameter list

Photo.json Template

Copy these lines, adjust and save them as Photo.json

{
  "_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": []
}

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”
"Cameras":{
  "Standard": {
    "X": -3.0,
    "Y": 1.8,
    "Z": 3.0,
    "_X": 2.0,
    "_Y": 0.0,
    "_Z": -1.0
    "AutoPlace": "CenterXZ"
  },
  "Left": {},
  "Top": {}  
} 
CameraDefine which of the created cameras to use
MediaDefine a set of cameras to loop through.
"Media":[
  "C1",
  "C2",
  "C3"
]
MediaCameraLink the defined cameras to the media camera
"MediaCamera": {
  "C1": "Standard",
  "C2": "Left",
  "C3": "Top"
}
WidthImage pixel horizontal
HeightImage pixel vertical
EnvironmentDefine the background for your rendering (01, 02, 03, 04, 05, 06)
Additionally define the resolution for your rendering (?)
StateDefine 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.
 "State": {
  "P1": "V1",
  "P2": "V2"
} 
LoopsLoop over a property to get more than one state of it.
 "State": {
  "P2": "V2"
},
"Loops": {
  "P1": [
    "V1a",
    "V1b"
  ],
  "P3": [
    "V3a",
    "V3b"
  ]
}
ScopeDefine the scope for doing a rendering
PasswordA costumer personal password
ProductsDefine a list of products to render. Each product consists of:
"Id": "Name_Free_2_Choose",
"NativeId": "Id_From_Commercial_Data" 
SetsFrom the listed singel products, define a bigger set
"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
      }
    ]
  }
]
SetOnlyAdd this to the Product, if only render an article inside a set.
"Producs":[
  {
    "_": "This article will only be used in sets",
    "Id": "JustSet",
    "NativeId": "1234",
    "SetOnly": "True"
  }
]
SettingsIn this section, define costume key value pairs for costum render options. E.g.:
"Settings":{
  "Renderer": "Blender",
  "Output": "fbx"
}

:!: This values will only work if the render script does know how to handle them. Otherwise they will be ignored.

ig/gfx/photocreator/sampels.txt · Last modified: 2024/04/04 08:04 by 127.0.0.1