setNodePosition.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. return {
  2. summary = 'Set or blend the position of a node.',
  3. description = 'TODO',
  4. arguments = {
  5. index = {
  6. type = 'number',
  7. description = 'The index of the node.'
  8. },
  9. name = {
  10. type = 'string',
  11. description = 'The name of the node.'
  12. },
  13. position = {
  14. type = 'vector3',
  15. description = 'The target position.'
  16. },
  17. blend = {
  18. type = 'number',
  19. default = '1.0',
  20. description = [[
  21. A number from 0 to 1 indicating how much of the target position to blend in. A value of 0
  22. will not change the node's position at all, whereas 1 will fully blend to the target
  23. position.
  24. ]]
  25. }
  26. },
  27. returns = {},
  28. variants = {
  29. {
  30. arguments = { 'index', 'position', 'blend' },
  31. returns = {}
  32. },
  33. {
  34. arguments = { 'name', 'position', 'blend' },
  35. returns = {}
  36. }
  37. },
  38. related = {
  39. 'Model:getNodeOrientation',
  40. 'Model:setNodeOrientation',
  41. 'Model:getNodeScale',
  42. 'Model:setNodeScale',
  43. 'Model:getNodePose',
  44. 'Model:setNodePose',
  45. 'Model:getNodeTransform',
  46. 'Model:setNodeTransform',
  47. 'Model:animate'
  48. }
  49. }