impworks Logo - a grinning imp in flight

Switch Vue Bump Mapping Python Script

These three python scripts for Vue allow you to switch the bump maps of a set of selected objects to
either positive, negative or inverted values.

Switch Bump Map Invert

  1. #******************************************************
  2. # Invert the bump of one or more objects materials
  3. #
  4. # - bumpinvert.py
  5. # - By Mark Caldwell
  6. # - Version 0.1
  7. # - Version 0.1 16th August 2009
  8. # - Copyright Mark Caldwell 2009
  9. # - Tested with Vue 7.5 Infinite
  10. #
  11. # How to use in 3 easy steps
  12. #
  13. # 1. Download this file onto your computer
  14. #
  15. # 2. Select Objects invert the Bump map on
  16. #
  17. # 3. Then run script and wait for it to work
  18. # To run it go to Python -> Run Python Script
  19. # Then locate the file on your computer
  20. #
  21. #
  22. #******************************************************
  23.  
  24. #----------------------------------------------
  25. # Internal Variables Set Up: Don't alter these
  26. #----------------------------------------------
  27.  
  28. countobj=CountSelectedObjects()
  29.  
  30. #----------------------------------------------
  31. # Find Selected Objects and invert the
  32. # materials bump maps
  33. #----------------------------------------------
  34. if countobj>0:
  35. for i in range(0,countobj):
  36. obj=GetSelectedObjectByIndex(i)
  37. countmaterial=obj.CountMaterials ()
  38. for j in range (0,countmaterial):
  39. bumpdepth=obj.Material (j).GetBumpDepth ()
  40. obj.Material (j).SetBumpDepth (-bumpdepth)
  41.  
  42. #----------------------------------------------
  43. # Refresh Vue's Display
  44. #----------------------------------------------
  45.  
  46. Refresh()
  47.  
  48. #----------------------------------------------
  49. # End of Script
  50. #----------------------------------------------

Switch Bump Map Negative

  1. #******************************************************
  2. # Make the bump of one or more objects materials
  3. # negative
  4. #
  5. # - bumpnegative.py
  6. # - By Mark Caldwell
  7. # - Version 0.1
  8. # - Version 0.1 16th August 2009
  9. # - Copyright Mark Caldwell 2009
  10. # - Tested with Vue 7.5 Infinite
  11. #
  12. # How to use in 3 easy steps
  13. #
  14. # 1. Download this file onto your computer
  15. #
  16. # 2. Select Objects make the Bump map on negative
  17. #
  18. # 3. Then run script and wait for it to work
  19. # To run it go to Python -> Run Python Script
  20. # Then locate the file on your computer
  21. #
  22. #
  23. #******************************************************
  24.  
  25. #----------------------------------------------
  26. # Internal Variables Set Up: Don't alter these
  27. #----------------------------------------------
  28.  
  29. countobj=CountSelectedObjects()
  30.  
  31. #----------------------------------------------
  32. # Find Selected Objects and negate the
  33. # materials bump maps
  34. #----------------------------------------------
  35. if countobj>0:
  36. for i in range(0,countobj):
  37. obj=GetSelectedObjectByIndex(i)
  38. countmaterial=obj.CountMaterials ()
  39. for j in range (0,countmaterial):
  40. bumpdepth=obj.Material (j).GetBumpDepth ()
  41. obj.Material (j).SetBumpDepth (-abs(bumpdepth))
  42.  
  43. #----------------------------------------------
  44. # Refresh Vue's Display
  45. #----------------------------------------------
  46.  
  47. Refresh()
  48.  
  49. #----------------------------------------------
  50. # End of Script
  51. #----------------------------------------------

Switch Bump Map Positive

  1. #******************************************************
  2. # Make the bump of one or more objects materials
  3. # positive
  4. #
  5. # - bumppositive.py
  6. # - By Mark Caldwell
  7. # - Version 0.1
  8. # - Version 0.1 16th August 2009
  9. # - Copyright Mark Caldwell 2009
  10. # - Tested with Vue 7.5 Infinite
  11. #
  12. # How to use in 3 easy steps
  13. #
  14. # 1. Download this file onto your computer
  15. #
  16. # 2. Select Objects make the Bump map on negative
  17. #
  18. # 3. Then run script and wait for it to work
  19. # To run it go to Python -> Run Python Script
  20. # Then locate the file on your computer
  21. #
  22. #
  23. #******************************************************
  24.  
  25. #----------------------------------------------
  26. # Internal Variables Set Up: Don't alter these
  27. #----------------------------------------------
  28.  
  29. countobj=CountSelectedObjects()
  30.  
  31. #----------------------------------------------
  32. # Find Selected Objects and make the
  33. # materials bump maps value positive
  34. #----------------------------------------------
  35. if countobj>0:
  36. for i in range(0,countobj):
  37. obj=GetSelectedObjectByIndex(i)
  38. countmaterial=obj.CountMaterials ()
  39. for j in range (0,countmaterial):
  40. bumpdepth=obj.Material (j).GetBumpDepth ()
  41. obj.Material (j).SetBumpDepth (abs(bumpdepth))
  42.  
  43. #----------------------------------------------
  44. # Refresh Vue's Display
  45. #----------------------------------------------
  46.  
  47. Refresh()
  48.  
  49. #----------------------------------------------
  50. # End of Script
  51. #----------------------------------------------

impworks © Copyright Mark Caldwell 1996 - 2017