Announcement

Collapse
No announcement yet.

particle flow - scale particle by speed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • particle flow - scale particle by speed

    Do any of you script guys know how to do this ?
    Regards

    Steve

    My Portfolio

  • #2
    I found this:

    http://www.scriptspot.com/bobo/mxs5/...y_velocity.htm

    I might be able to change the length to scale....
    Regards

    Steve

    My Portfolio

    Comment


    • #3
      add a scriptmodifier and use the following script instead of the default one:

      Code:
      on ChannelsUsed pCont do
      (
      	 pCont.useSpeed = true
      	 pCont.useScale = true
      )
      
      on Init pCont do 
      (
       
      )
      
      on Proceed pCont do 
      (
      	count = pCont.NumParticles()
      
      
      	for i in 1 to count do
      	(
      		pCont.particleIndex = i
      		mult =10
      		pCont.particleScale = (length pCont.particleSpeed)*mult
      	)
      )
      
      on Release pCont do 
      (
       
      )
      change the mult value as a multiplier for the size. you can of course also tweak the line below the mult=10 to tweak the mapping of speed -> scale

      Regards,
      Thorsten

      Comment


      • #4
        Works like a charm ! Thanks
        Regards

        Steve

        My Portfolio

        Comment


        • #5
          wow this is really useful, thank you!
          i wish i could script myself.
          Reflect, repent and reboot.
          Order shall return.

          Comment


          • #6
            I can script to an extent but sometimes its easier to ask than spend hours trying to work through something like that..
            Regards

            Steve

            My Portfolio

            Comment


            • #7
              For particle related stuff like this i can really recommend Oleg's PFlow Tools Box#3 wich is basically like scripting, but visual and a LOT faster then script operators.

              Regards,
              Thorsten

              Comment

              Working...
              X