Skip to content

/livedraw/layers/MOVIE_LAYER/transform/scale and int/float #14

@batchku

Description

@batchku

i'm using javascript to send message to ofxLiveDraw over OSC.

it seems that if i send an int from max as argument to scale, ofxLiveDraw won't accept it.
so:

outlet(0,"/livedraw/layers/"+name+"_LAYER"+"/transform/scale", scaleX, scaleY, scaleZ);

works only if scaleX, scaleY and scaleZ are floats;

it also appears that a "fixed" float doesn't work:

i.e.

outlet(0,"/livedraw/layers/"+name+"_LAYER"+"/transform/scale", scaleX.toFixed(4), scaleY.toFixed(4), scaleZ.toFixed(4));

which gives

print: /livedraw/layers/MOVIE_LAYER/transform/scale 1.5900 1.5900 1.5900

does nothing.

any work around?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions