kai.scorpio Posted October 8, 2007 Share Posted October 8, 2007 I'm trying to make a copy/stamp with the color of the boxes to be stamped based on the color of the template points. So I created a copy node with 3 stamp attributes, RED, GREEN, BLUE, set to point("../point1", $PT, "???",0). what would I have to put instead of the ??? to get only the red, green or blue value of Cd (Cd[0], Cd[1], and Cd[2]). If this is not enough to go on I can post the .hip file later. Quote Link to comment Share on other sites More sharing options...
graham Posted October 8, 2007 Share Posted October 8, 2007 (edited) The last argument of the point expression is the attribute index, so all you need to do is put in point("../point1", $PT, "Cd", #) to the 3 fields, replacing # with 0 for red, 1 for green and 2 for blue. Edited October 8, 2007 by Hammy Quote Link to comment Share on other sites More sharing options...
SpencerL Posted October 8, 2007 Share Posted October 8, 2007 I'm trying to make a copy/stamp with the color of the boxes to be stamped based on the color of the template points. So I created a copy node with 3 stamp attributes, RED, GREEN, BLUE, set to point("../point1", $PT, "???",0). what would I have to put instead of the ??? to get only the red, green or blue value of Cd (Cd[0], Cd[1], and Cd[2]). you are just about there. RED would be point("../point1", $PT, "Cd",0), GREEN would be point("../point1", $PT, "Cd",1), BLUE would be point("../point1", $PT, "Cd",2). the last field represnts what index of the attribute, in this case Cd, you want to access. so 0 is RED, 1 is BLUE, and 2 is GREEN. Quote Link to comment Share on other sites More sharing options...
SpencerL Posted October 8, 2007 Share Posted October 8, 2007 Ah, beat me to it...yeah, do what Hammy said. Quote Link to comment Share on other sites More sharing options...
kai.scorpio Posted October 9, 2007 Author Share Posted October 9, 2007 Wow replies already... thanks a lot! I thought the last value was what is put if nothing is found, like with stamp(). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.