It's possible to work with the delivered channels
( open the Windows-->Attribute, then drag the desired
object into this window)

Try the following:

Open the PropertiesWindow of an object
Go to Script Tab
Set Command language to Javascript

Type in:
//_________________________________
abc = Self.GetColor();

//split the rotation
xrot = abc.x;
yrot = abc.y;
zrot = abc.z;

//set a new rotation
Self.SetTotalRotate(new r3Vect(xrot, yrot , zrot));
//_________________________________

now animate the color.  (or look at the attached file)

Hope this is helpy.

Matthias

BTW: It was not possible for me to acces userdefined channels.
But it's possible to overwrite the color with a material.





----- Original Message -----
From: "George Jenner" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, November 18, 2005 8:46 AM
Subject: Re: Working with channels in javascript


>
> >>Is that possible, combining VSL with JS or RPL? Worth a look... I
remember
> >>that in V3, RPL scripts could be attached to materials - in fact I
already
> >>made an RPL slope-dependant material in V3. It would be strange if this
> >>wasn't possible in V5, but the great power of VSL alone makes it less
> >>necessary.
> >>Enough ranting for today - back to the landscapes,
> >>
> >>
> >
> >George just commented yesterday that it was indeed possible . Actually ,
> >the mail that you replied to was my reply to George on that topic .
> >
> >
> >
> No he didn't - the thread is a bit tangled :-)  The thread started with
> the question "can you work with channels in javascript".  You would then
> work with the channels in VSL.  The question is as yet unanswered.
>
> George
>
> >  No prob's anyway , obviously you are very busy , but there have been
> >very many key points tossed back and forth in the last while ... long
mails
> >might be making those elaborate points mute , however .
> >
> >
> >
> >>-Mark H
> >>
> >>
> >
> >Please do keep up the awesome work Mark !!!!!
> >
> >studio
> >www.niagara.com/~studio
> >www.studiodynamics.net
> >
> >
> >
> >
> >
> >
> >
>
>

Attachment: java-channel.r3d
Description: Binary data

Reply via email to