Coder Social home page Coder Social logo

Comments (2)

jim-easterbrook avatar jim-easterbrook commented on June 24, 2024

As you will have seen from the API documentation, gp_camera_get_single_config returns a CameraWidget object. (In the C API it's an "output" parameter, in the Python interface it's appended to the int status that's returned by almost every function, as described in the README.)

The CameraWidget object has methods to get and set its value. After changing the value you write it back to the camera with gp_camera_set_single_config.

The "object oriented" versions Camera.get_single_config and Camera.set_single_config are easier to use as the returned status is checked for errors and removed from the return value.

I don't use any of these functions myself as I usually want to set several config values. I think you don't need the full widget path, just the last part of it, but I could be wrong.

Finally, this is not the place to ask for help with using libgphoto2, it's for reporting bugs in the Python interface.

from python-gphoto2.

rawexp avatar rawexp commented on June 24, 2024

Hi Jim, thanks for the response. That set me off in the right direction and I have it working now. I also found the pointers in these threads helpful:
#116
#137

from python-gphoto2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.