Advertisement
Lucas_3D

Untitled

Apr 21st, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. rollout LandscapePlotUI "Landscape Plot Parameters"
  2. (
  3. group "Dimensions"
  4. (
  5. spinner WidthSpinner "Width: " range:[0,1000,37] type:#worldunits align:#left fieldwidth:64
  6. spinner LengthSpinner "Length: " range:[0,1000,100] type:#worldunits align:#left fieldwidth:64
  7. spinner HeightSpinner "Height: " range:[1,3,1] type:#worldunits align:#left fieldwidth:64
  8. )
  9. group "Deformation"
  10. (
  11. spinner BendSpinner "Bend Amount: " range:[0,100,0] type:#float align:#left fieldwidth:64
  12. spinner TwistSpinner "Twist Amount: " range:[0,100,0] type:#float align:#left fieldwidth:64
  13. spinner ScaleSpinner "Scale Amount: " range:[0,100,0] type:#float align:#left fieldwidth:64
  14. )
  15. button CreateButton "Create" align:#center width:100
  16. function createLandscapePlot _width _length _height _bendAmount _twistAmount _scaleAmount=
  17. (
  18. print "your landscape plot creation code goes here"
  19. print _width
  20. print _length
  21. print _height
  22. print _bendAmount
  23. print _twistAmount
  24. print _scaleAmount
  25. )
  26. on CreateButton pressed do
  27. (
  28. createLandscapePlot WidthSpinner.value LengthSpinner.value HeightSpinner.value BendSpinner.value TwistSpinner.value ScaleSpinner.value
  29. )
  30. )
  31. createDialog LandscapePlotUI (200) (200)
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement