meshop.setVertAlpha for a single vertex

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Display Modes
  07 July 2018
meshop.setVertAlpha for a single vertex

In maxscript there is:

meshop.setVertAlpha <Mesh mesh> <intmapChannel> <vertlist> <float alpha>

But i want set alpha value just for 1 single vertex and not the complete vertlist, is there a way? I have not found a version of that function that acepts jus 1 index, but I am really new to max, so psibly I just mised something.
 
  07 July 2018
Originally Posted by gtafan: I have not found a version of that function that acepts jus 1 index, but I am really new to max, so psibly I just mised something.
meshop.setVertAlpha() takes an array, bitarray or an integer.
__________________
Jorge Rodríguez
PolyTools3D
 
  07 July 2018
Originally Posted by PolyTools3D: meshop.setVertAlpha() takes an array, bitarray or an integer.
So with:

meshop.setVertAlpha  msh -2 1 0.5

I can set the firs map vertex of msh chanel -2 to (0.5, 0.5, 0.5), right?
 
  07 July 2018
Originally Posted by gtafan: So with:

meshop.setVertAlpha  msh -2 1 0.5

I can set the firs map vertex of msh chanel -2 to (0.5, 0.5, 0.5), right?
Yes, I suppose you can.

(
    delete objects
    boxes = for j = -1 to 1 collect converttomesh (box pos:[j*30,0,0] showvertexcolors:on vertexcolortype:2)
    
    meshop.setvertalpha boxes[1] -2 #(2,7) 0.25    -- array
    meshop.setvertalpha boxes[2] -2 #{3,6} 0.25    -- bitarray
    meshop.setvertalpha boxes[3] -2      5  0.25    -- integer
)
__________________
Jorge Rodríguez
PolyTools3D
 
  07 July 2018
Originally Posted by PolyTools3D: Yes, I suppose you can.

(
    delete objects
    boxes = for j = -1 to 1 collect converttomesh (box pos:[j*30,0,0] showvertexcolors:on vertexcolortype:2)
    
    meshop.setvertalpha boxes[1] -2 #(2,7) 0.25    -- array
    meshop.setvertalpha boxes[2] -2 #{3,6} 0.25    -- bitarray
    meshop.setvertalpha boxes[3] -2      5  0.25    -- integer
)
I checked it myself and it worcks. But what the diference between array and bitarray? Like mentioned, really new to maxscript.
 
  07 July 2018
Originally Posted by gtafan: I checked it myself and it worcks. But what the diference between array and bitarray? Like mentioned, really new to maxscript.

What is the differences between Arrays and BitArrays?
__________________
Jorge Rodríguez
PolyTools3D
 
  07 July 2018
I know, this question sounds stupied for you, but I am a nob in maxscript.
 
  07 July 2018
Originally Posted by gtafan: I know, this question sounds stupied for you, but I am a nob in maxscript.

You are completely wrong in your assumptions, as well as in posting this kind of comments.
I asked myself this very same question the first time I heard about arrays and bitarrays.

And it seems we are not alone, otherwise there wouldn't be an entry for this in the Autodesk Help. Don't you think?

BTW: Arrays and BitArrays are not exclusive of MaxScript.
__________________
Jorge Rodríguez
PolyTools3D
 
  07 July 2018
Originally Posted by PolyTools3D: You are completely wrong in your assumptions, as well as in posting this kind of comments.
I asked myself this very same question the first time I heard about arrays and bitarrays.

And it seems we are not alone, otherwise there wouldn't be an entry for this in the Autodesk Help. Don't you think?

BTW: Arrays and BitArrays are not exclusive of MaxScript.
Sorry for the misunderstanding, maxscript is not my only problem, seems like english is even a biger one.
 
  07 July 2018
In first place, would like to know the diference between using the function with array and bitArray. Hope, was able to explain it correctly now, like mentioned english is my other problem.
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:58 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.