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

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

Open
batchku opened this issue Nov 19, 2012 · 1 comment
Open

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

batchku opened this issue Nov 19, 2012 · 1 comment

Comments

@batchku
Copy link
Contributor

batchku commented Nov 19, 2012

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?

@bakercp
Copy link
Member

bakercp commented Jan 24, 2013

This is odd and I'm looking into it. I'm not sure at all why toFixed would not appear as a float. perhaps it is being interpreted as a string or something. checking on it ...

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

2 participants