Toggle navigation
Polycount
News
Forums
Patreon
Challenges
The BRAWL² Tournament Challenge!
Bi-Monthly Environment Art Challenge
Wiki
Moar
Recent
Activity
Badges
Drafts
Store
Help
Sign In
·
Register
Author:
Z0ltBa
Home
›
Search
Topic
(MEL) getting selected vtx index ?
Author
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
Search
Re: (MEL) getting selected vtx index ?
Reply by
haiddasalami
·
May 2020
·
Home
›
Coding, Scripting, Shaders
Wouldnt size($id) give you +1 for your array. You probably need to subtract 1 since arrays are 0 index'd. Doing print ($id[size($id)-1] + "\n"); outputs the correct numbers from a quick test.
(MEL) getting selected vtx index ?
Topic by
onionhead_o
·
May 2020
·
Home
›
Coding, Scripting, Shaders
{<br> string $compSel[]= `ls -sl -fl`;<br> string $obj[]= `ls -hilite -type "transform"`;<br> string $storeEdgeLoop[];<br> int $numTokens;<br> string $buffer[];<br> int $id[];<br> for($comp in $compSel){<br> $numTokens = `tokenize $comp ".[]" $buffer`;<br> //print ($buffer[2] + "\n");<br> $id[size($id)] =…
2 results