Skip to content

OSC message to change a color property fails #490

@aalex

Description

@aalex

OSC message to change a color property fails.

Expected Behavior

We should be able to change a color property with a string argument such as "#ffcc33" for orange.

Actual Behavior

There is an error message in the console and it doesn't work.

Steps to Reproduce the Problem

  1. apt-get install liblo-tools
  2. Launch MapMap and open the project attached
  3. oscsend localhost 12345 /mapmap/paint/color is 0 "#ffcc33"

Specifications

  • Version: dev (soon to be 0.7)
  • Platform: Ubuntu 19.10

Error message

avr. 01 20 20:38 | Debug: C++OscReceiver Received: "/mapmap/paint/color" (QVariant(int, 0), QVariant(QString, "ffcc33")) - src/control/qosc/oscreceiver.cpp:24
avr. 01 20 20:38 | Debug: Attempt to set a paint property "color" QVariant(QString, "#ffcc33") - src/control/OscInterface.cpp:215
avr. 01 20 20:38 | Debug: Path could not be processed: "/mapmap/paint/color" - src/control/OscInterface.cpp:273
avr. 01 20 20:38 | Debug: "/mapmap/paint/color" - src/control/OscInterface.cpp:139
avr. 01 20 20:38 | Debug: "is" - src/control/OscInterface.cpp:139
avr. 01 20 20:38 | Debug: 0 - src/control/OscInterface.cpp:131
avr. 01 20 20:38 | Debug: "#ffcc33" - src/control/OscInterface.cpp:139
avr. 01 20 20:38 | Debug: - src/control/OscInterface.cpp:146

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions