Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML as config syntax? #13

Open
erazor83 opened this issue Sep 26, 2013 · 1 comment
Open

YAML as config syntax? #13

erazor83 opened this issue Sep 26, 2013 · 1 comment

Comments

@erazor83
Copy link

Hi,

I was wondering if it'd make sense to convert the project-config format to yaml.

Here are old and new formats compared to each other:

Legs:18:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024:1024
Pose=ik_neutral:512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512
Nuke=Lizard 3DOF,6,++++++++++++++++++,55,66,130,125,60,50,0,0,2,1,4,3,6,5,14,13,16,15,18,17,8,7,10,9,12,11

YAML:

name: Legs
count: 18
resolution: [1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024]
poses:
  ik_neutral: [512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512]
Nuke: "Lizard 3DOF,6,++++++++++++++++++,55,66,130,125,60,50,0,0,2,1,4,3,6,5,14,13,16,15,18,17,8,7,10,9,12,11"

The first line could contain "#YAML" so pyPose would distinguish between old and YAML format.

What do you think?

@erazor83
Copy link
Author

Well, I've implemented this in erazor83@a1d7930 already tested and seems to work nicely. I also added the option to store the connection setup. When the user does not have pyYAML, the old syntax is used. Yaml is used when supported and first char of file is #.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant