Difference between pages "ClosestPoints" and "ColorAtPointThruNurb"
From scripting
(Difference between pages)
(Created page with " Sub ClosestPoints(Point1 As Variant, Point2 As Variant) Dim SmallestDist As Double SmallestDist = 100000000 Dim WinHH, WinJJ As Integer WinHH = 0: WinJJ = 0 For...") |
(Created page with " global proc vector colorAtPointThruNurb(string $ObjName, float $UVal, float $VVal) { //Author Nick Pisca 0001d 2009 string $TRel[] = `listRelatives $ObjName`; string $TCon...") |
||
Line 1: | Line 1: | ||
− | + | global proc vector colorAtPointThruNurb(string $ObjName, float $UVal, float $VVal) { | |
− | + | //Author Nick Pisca 0001d 2009 | |
− | + | string $TRel[] = `listRelatives $ObjName`; | |
− | + | string $TCon[] = `listConnections $TRel[0]`; | |
− | + | string $TB[] = `listHistory $TCon[0]`; | |
− | + | string $TBOutput = $TB[2]; | |
− | + | float $CAPArr[2] = `colorAtPoint -o RGB -u $UVal -v $VVal $TBOutput`; | |
− | + | vector $CAPVec = <<$CAPArr[0], $CAPArr[1], $CAPArr[2]>>; | |
− | + | return $CAPVec; | |
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category: | + | |
+ | ''More information on navigating shader nodes, read pages 133-134 in [http://stores.lulu.com/nickpisca YSYT]. | ||
+ | [[Category:MEL]] |
Latest revision as of 05:15, 22 April 2017
global proc vector colorAtPointThruNurb(string $ObjName, float $UVal, float $VVal) { //Author Nick Pisca 0001d 2009 string $TRel[] = `listRelatives $ObjName`; string $TCon[] = `listConnections $TRel[0]`; string $TB[] = `listHistory $TCon[0]`; string $TBOutput = $TB[2]; float $CAPArr[2] = `colorAtPoint -o RGB -u $UVal -v $VVal $TBOutput`; vector $CAPVec = <<$CAPArr[0], $CAPArr[1], $CAPArr[2]>>; return $CAPVec; }
More information on navigating shader nodes, read pages 133-134 in YSYT.