<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Maya Python Script : Control Point and Vertex Colour and Massive confusion</title>
	<atom:link href="http://www.hodge.net.au/sam/blog/2010/01/16/maya-python-script-control-point-and-vertex-colour-and-massive-confusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hodge.net.au/sam/blog/2010/01/16/maya-python-script-control-point-and-vertex-colour-and-massive-confusion/</link>
	<description>Random Thoughts of Sam Hodge, about Life, Art and Technology</description>
	<lastBuildDate>Sat, 02 Feb 2019 04:05:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Simon</title>
		<link>http://www.hodge.net.au/sam/blog/2010/01/16/maya-python-script-control-point-and-vertex-colour-and-massive-confusion/comment-page-1/#comment-480</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 31 May 2012 16:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hodge.net.au/sam/blog/?p=176#comment-480</guid>
		<description><![CDATA[I realize this is out of date now but I managed to have some luck when using expressions to take the RGB from the texture UV.   The Python command has a flag to update frame for frame:  cmds.expression( o=i, ae=True, s=&quot;...&quot;)

here&#039;s an example of the expression that you might end up with:  

$foundUV = `polyListComponentConversion -fv -tuv FollowMesh_T.vtx[0]`;
$uv = `polyEditUV -q $foundUV`;
$RGBColor = `colorAtPoint -o RGB -u $uv[0] -v $uv[1] FollowMesh_Texture`;
FollowMesh_T_Locator_0_000.tx = $RGBColor[0] 

Thanks for the head start, keep up the good work! :)]]></description>
		<content:encoded><![CDATA[<p>I realize this is out of date now but I managed to have some luck when using expressions to take the RGB from the texture UV.   The Python command has a flag to update frame for frame:  cmds.expression( o=i, ae=True, s=&#8221;&#8230;&#8221;)</p>
<p>here&#8217;s an example of the expression that you might end up with:  </p>
<p>$foundUV = `polyListComponentConversion -fv -tuv FollowMesh_T.vtx[0]`;<br />
$uv = `polyEditUV -q $foundUV`;<br />
$RGBColor = `colorAtPoint -o RGB -u $uv[0] -v $uv[1] FollowMesh_Texture`;<br />
FollowMesh_T_Locator_0_000.tx = $RGBColor[0] </p>
<p>Thanks for the head start, keep up the good work! <img src='http://www.hodge.net.au/sam/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
