View Full Version : Various Approx. statements at a time
I want to control NURBS Tesellation through Approximation editor but it isn´t able to apply more than one at a time.
I tried to assign the same criteria for two or more objects at a time using MEL but when I assign one through the Aproximation editor no MEL scripting appears in the Script editor, I check if "echo all commands" is ON and it is, but no MEL appears either, is there any MEL command to apply an approximation criteria for two or more objects at a time?
Thank´s in advance!
05-12-2003, 03:50 PM
hello joie, i`m larry from esmaya.org
try it with the attribute spread sheet
Qué pacha Larry...
Hi, But..., does Atribute spread sheet contain MR ray attributes like those?, mmm, I think not, but I need to check it.
This annoys me since I don´t know why some kind of MR Attributes doesn´t appear in script editor, that´s all.
05-12-2003, 07:56 PM
yes, i read too fast the post, sorry.
05-13-2003, 11:47 AM
well, this is a basical script to change the attributes in thenurbs you have selected
at this time you can only set the u, v and sharp values
y must do a interface for easy use
the sintas is
fvTeselationMental uValue vValue sharpValue
// mel script to set the teselation of the nurbs surfaces in mental ray
// Fernando Vizoso Martinez
// is a basic script for select the surfaceApprox nodes
// an interface to control all the attributes of the node
global proc fvTeselationMental( float $u, float $v,float $sharp)
$lista=`ls -sl `;
for ($elemento in $lista)
$shapes=`pickWalk -d down $elemento`;
$existe=`attributeQuery -node $elemento -ex miSurfaceApprox`;
for ($elemento in $listaMental)
setAttr ($elemento+".uSubdivisions") $u;
setAttr ($elemento+".vSubdivisions") $v;
setAttr ($elemento+".sharp") $sharp;
change it to work as you want
WOW, you´re amazing!, surely you have to put this MEL in the MAYA FAQ section in here, people will thank you for a lifetime
Just curious..., how did you get that MR mel syntax?, just curious...
01-15-2006, 02:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.