Issues with Character Picker layout load/save

   2912   2   2
User Avatar
Member
12 posts
Joined: Dec. 2014
Offline
Hello.

I'm having problems with Character Picker - can create and use it and all is working,
but cannot load layout previously saved to a .json file.
At first try with load simply nothing happens, at second try I get:
>>> Traceback (most recent call last):
  File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.632/houdini/python2.7libs\charpicker\mainw
idget.py", line 171, in menuActions
    self.loadFromJSONFile()
  File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.632/houdini/python2.7libs\charpicker\mainw
idget.py", line 598, in loadFromJSONFile
    jsonString = json.JSONDecoder().decode(jsonFile)
  File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.632\python27\lib\json\decoder.py", line 36
5, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer
in Python Shell.

my .json file looks like this:
[
  "/obj/player",
  [
    {
      "Name": "Default",
      "Splitters": [],
      "Views": [
        {
          "Background Image": null,
          "Buttons": [
            {
              "Character Path": "/obj/player",
              "Color": "",
              "Controls Paths": [
                "head_ctrl"
              ],
              "Default Behavior": "None",
              "Label": "Head",
              "id": "1",
              "x": 188,
              "y": 83
            },
            {
              "Character Path": "/obj/player",
              "Color": "",
              "Controls Paths": [
                "hips_ctrl"
              ],
              "Default Behavior": "None",
              "Label": "Hips ",
              "id": "2",
              "x": 152,
              "y": 153
            }
          ],
          "Sliders": [],
          "View Scale": 1,
          "id": 0
        }
      ]
    }
  ]
]

Thanks for any help
M.
User Avatar
Member
118 posts
Joined: Dec. 2013
Offline
I am having the same issue when loading the .json file. Was there a solution besides rebuilding the entire layout again?

Glen
User Avatar
Member
96 posts
Joined: May 2008
Offline
This is still broken with 16.5.405. I mean, seriously?
  • Quick Links