Adverti horiz upsell

Spiralizer 1.3.2 for Maya (maya script)

Create a spiral of any shape!

License
Button download
13,468 Downloads

Compatibility

  • 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 9.x, 2009, 2008, 8.x, 7.x

Operating Systems

  • Irix
  • Linux
  • Mac
  • Solaris
  • Windows

History

Created:02/14/2001
Last Modified:10/03/2017
File Size: 4.66 KB

Feature Request

I need some help if you can !

Status:pending
Date:03/06/2012
Submitted by:Ammer Ammer
E-Mail : fabulous_maya@yahoo.com Sir I need your help, I'm not a perfect programmer, and I know you'll help with this. issue... I'm trying to filter a selection of shaders in hypershade... so that the dialog recognizes phongs shaders and excludes the others.. lets say I selected a bunch of shaders of phongs, blinns, lamberts, etc... the simple script I designed is to deal with the phongs cosinePower attribute, and excludes the others... here is the script it is simple... I need your help... Thank you ! //------Try 3 //I'm trying to make a Filter array for phongs only... Status: Failed !!!! proc filterSelection() { string $sel [] = `ls -sl`; for ($obj in $sel) { if ( `nodeType $obj` == "phong" ) { print ($obj); string $phong [] = {$obj}; print ("This is phong ..... !! \n"); print ($phong) ; } if ( `nodeType $obj` == "blinn" ) print ($obj); } } // From here success .... ! proc Do() { string $sel[] = `ls -sl`; float $minX = 2; float $minX =`intSliderGrp -query -value sliderXMin`; for ( $obj in $sel ) { setAttr ($obj + ".cosinePower") $minX; } } //create a simple placement randomizer using slider values if (`window -exists intSliderWin`) { deleteUI intSliderWin; windowPref -remove intSliderWin; } // this is the window size window -widthHeight 400 250 intSliderWin; columnLayout -width 400; text -label "Adjust Cosine Power for selected phongs?"; //this button to start the filtering procedure... Status : Failed button -label "Filter Selection" -command "filterSelection()"; intSliderGrp -label "MinX" -field true -min 2 -max 100 -dc "Do()" sliderXMin; showWindow intSliderWin;

Post a comment: