Frank Brübach wrote:


Dear Richard, first good work! :-) / Second: Cannot download the new Realman script ;-) at this moment (yesterday, today)..

- What is "color"? I would like to change the color of a cube (red cube) by a slider. I have got a lot of error input in my javascript, "color" not defined... - Color is included with "oops/color.js" so far as I know. If I will set a new Color to an object, this "color" isn't defined, color = new r3Vect(0,0,0), color = new r3Floatcolor(0)???, colorRGBA = new r4Vect(0,0,0); ? ---

Such thing "Surface.Color = color(0.7, 0.3, 0.25);" does work only with explaining the colorchannel separately in the script? or can I do this with a simple Cube.SetColor = new r3Vect(1.0, 0.0, 0.0); and then I can say by a "slider" function (float), that the color should change into another red color? (value 255 < 125 perhaps)... Perhaps I will send you my script and my problem... ;-) If you have time at the moment... Good luck for Realman, first of all! :-), Servus and best regards from Germany, Frank Brübach

Hi Frank,

There is a big difference between a Realman script and java scripts - they have different purposes and different syntax.

Please do sent me the java script that is giving you trouble - I'm no expert but am happy to look at it for you.

Regards

richard.



Reply via email to