SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
MAYA:
MAYA Forum
MAYA Tutorials
MAYA
Re: Image sequence / math question...
Cow Forums
:
MAYA
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Respond to this post
•
Return to posts index
•
Read entire thread
Re: Image sequence / math question...
by
Michiel Duvekot
on Nov 1, 2009 at 5:03:23 pm
The color or the alpha of an image is not a single value, so if you want to get one value that you can use for something else, as in for example, a the translation of an object, you have to tell Maya which pixel to look at. Maya has the colorAtPoint command for this purpose.
Here's an example of an expression that will set the .translateY of a cylinder to the alpha value of a texture.
float $u = pCylinder1.translateX;
float $v = pCylinder1.translateZ;
float $alpha[] = `colorAtPoint -o A -u $u -v $v file1`;
pCylinder1.translateY = $alpha[0];
By moving the cylinder in x or z, it picks up a different alpha value and sets the translateY accordingly.
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
Image sequence / math question...
by stephen reber on Oct 31, 2009 at 9:23:30 pm
Re: Image sequence / math question...
by Michiel Duvekot on Nov 1, 2009 at 5:03:23 pm
Re: Image sequence / math question...
by stephen reber on Nov 4, 2009 at 9:26:33 pm
Note:
If you are a registered user please
click here to login
before posting.
Your post will not be accepted if your name and email address are not registered in our database. Click
here
if you do not have an account.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message:
Note:
The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key.
Read more...
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]