Archive for November, 2008

Friday, November 28th, 2008

DoubleSideTex

doublesidetex_01.JPG

Posted by fangloong | Filed in 更新 news | Comment now »

 

Friday, November 28th, 2008

Maya “RenderViewWindow” command script ;

currentTime 1 ;
RenderViewWindow;
renderWindowRender redoPreviousRender renderView;
renderWindowSaveImageCallback “renderView” “D:/project/tornado/images/test_01.tga” “Targa”;
playButtonStepForward;

Posted by fangloong | Filed in 更新 news | 2 Comments »

 

Friday, November 14th, 2008

Particle expression script ….

PARTICLES
A)Random Objects

1.    Create particle instancer with all the objects selected.
2.    Create custom attribute (custom_index) –float –per particle array
3.    Write creation expression – particleShape1.custom_index = rand(0,x) ( particleShape1 >change to particle name )

B)Random Scale for Instanced Objects

1. Create a new custom attribute (customScale) for the particle object -vector -per particle array
2. Write a creation expression for this new attribute.

particleShape1.customScale = rand(0.1,1); ( particleShape1 >change to particle name )

or

float $wateva = rand(1,2)
particleShape1.customScale = <<$wateva,$wateva,$wateva>> ( particleShape1 >change to particle name )

C)Random Orientation and Spinning Instanced Objects

1. Create new custom attribute (customRotation) for the particle object -vector -per particle array
2. And another (randomNumber) –float – per particle array
3. Write expressions for these:

Creation:

particleShape1.randomNumber = rand(-0.001,0.001); ( particleShape1 >change to particle name )

particleShape1.customRotation = <<rand(360),rand(360),rand(360)>> ( particleShape1 >change to particle name )

Posted by fangloong | Filed in - 作品 works | 2 Comments »