SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Maya Questions / Dynamics & Special Effects / Script to randomize a property.

Dynamics & Special Effects Maya Particles, nDynamics, Fluids, Rigid Bodies & General VFX

Join the conversation. Reply to post
 
Thread Tools
03-02-2003, 06:01 AM   #1
grunze
Registered User
 
grunze's Avatar
 
Join Date: Nov 2002
Posts: 117
Script to randomize a property.
Hi,
does anyone know a script that can randomize a given property, i.e. the initial spin of a rigid body?
__________________
Thanks,
Ari
  Reply with quote
03-02-2003, 06:18 AM   #2
Emo
Subscriber
 
Emo's Avatar
 
Join Date: Jul 2002
Location: MELville
Posts: 1,100
I dont know about ridid bodies but a while ago I did a tutorial and they used Sprites and in the properties they were using Per Particle Array Attribues to do random things...

so one of the things they did there was give each sprite a random twist... the code was:
Quote:
ParticleShape1.spriteTwistPP = rand(360)
I dont know how this is going to help you though...

-Emo
  Reply with quote
03-02-2003, 06:47 AM   #3
ragecgi
Registered User
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Dude! hehe...

If you look at the very 1st of the 3 threads you made regarding this, I answered that for you with an expression.

PS, For future reference, Dynamics and Special Effects would be the best place for posts like this

Here is my answer for ya:

http://forum.simplymaya.com/showthre...&threadid=3707


Good luck!
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
  Reply with quote
03-02-2003, 06:48 AM   #4
ragecgi
Registered User
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Moving this to Dynamics and Special Effects
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the "Quick help" window size in the maya 2012 script editor. Jouri Programming 3 27-11-2011 06:15 AM
load pre-made script rejh2 Maya Basics & Newbie Lounge 3 28-02-2010 12:33 AM
GI_Joe script Blayd Maya Basics & Newbie Lounge 7 01-10-2006 10:07 PM
looking for a mel script on UV mapping junkyBob Maya Basics & Newbie Lounge 1 14-11-2005 03:21 AM
Simple script for you all.... ragecgi Programming 7 24-01-2003 03:34 AM