AnimationTreePlayer.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AnimationTreePlayer" inherits="Node" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Animation Player that uses a node graph for the blending.
  5. </brief_description>
  6. <description>
  7. Animation Player that uses a node graph for the blending. This kind of player is very useful when animating character or other skeleton based rigs, because it can combine several animations to form a desired pose.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="add_node">
  15. <return type="void">
  16. </return>
  17. <argument index="0" name="type" type="int" enum="AnimationTreePlayer.NodeType">
  18. </argument>
  19. <argument index="1" name="id" type="String">
  20. </argument>
  21. <description>
  22. Add a node of a given type in the graph with given id.
  23. </description>
  24. </method>
  25. <method name="advance">
  26. <return type="void">
  27. </return>
  28. <argument index="0" name="delta" type="float">
  29. </argument>
  30. <description>
  31. </description>
  32. </method>
  33. <method name="animation_node_get_animation" qualifiers="const">
  34. <return type="Animation">
  35. </return>
  36. <argument index="0" name="id" type="String">
  37. </argument>
  38. <description>
  39. Returns an animation given its name.
  40. </description>
  41. </method>
  42. <method name="animation_node_get_master_animation" qualifiers="const">
  43. <return type="String">
  44. </return>
  45. <argument index="0" name="id" type="String">
  46. </argument>
  47. <description>
  48. </description>
  49. </method>
  50. <method name="animation_node_set_animation">
  51. <return type="void">
  52. </return>
  53. <argument index="0" name="id" type="String">
  54. </argument>
  55. <argument index="1" name="animation" type="Animation">
  56. </argument>
  57. <description>
  58. Set the animation for an animation node.
  59. </description>
  60. </method>
  61. <method name="animation_node_set_filter_path">
  62. <return type="void">
  63. </return>
  64. <argument index="0" name="id" type="String">
  65. </argument>
  66. <argument index="1" name="path" type="NodePath">
  67. </argument>
  68. <argument index="2" name="enable" type="bool">
  69. </argument>
  70. <description>
  71. </description>
  72. </method>
  73. <method name="animation_node_set_master_animation">
  74. <return type="void">
  75. </return>
  76. <argument index="0" name="id" type="String">
  77. </argument>
  78. <argument index="1" name="source" type="String">
  79. </argument>
  80. <description>
  81. </description>
  82. </method>
  83. <method name="are_nodes_connected" qualifiers="const">
  84. <return type="bool">
  85. </return>
  86. <argument index="0" name="id" type="String">
  87. </argument>
  88. <argument index="1" name="dst_id" type="String">
  89. </argument>
  90. <argument index="2" name="dst_input_idx" type="int">
  91. </argument>
  92. <description>
  93. Returns whether node [code]id[/code] and [code]dst_id[/code] are connected at the specified slot.
  94. </description>
  95. </method>
  96. <method name="blend2_node_get_amount" qualifiers="const">
  97. <return type="float">
  98. </return>
  99. <argument index="0" name="id" type="String">
  100. </argument>
  101. <description>
  102. Returns the blend amount of a Blend2 node given its name.
  103. </description>
  104. </method>
  105. <method name="blend2_node_set_amount">
  106. <return type="void">
  107. </return>
  108. <argument index="0" name="id" type="String">
  109. </argument>
  110. <argument index="1" name="blend" type="float">
  111. </argument>
  112. <description>
  113. Sets the blend amount of a Blend2 node given its name and value.
  114. </description>
  115. </method>
  116. <method name="blend2_node_set_filter_path">
  117. <return type="void">
  118. </return>
  119. <argument index="0" name="id" type="String">
  120. </argument>
  121. <argument index="1" name="path" type="NodePath">
  122. </argument>
  123. <argument index="2" name="enable" type="bool">
  124. </argument>
  125. <description>
  126. </description>
  127. </method>
  128. <method name="blend3_node_get_amount" qualifiers="const">
  129. <return type="float">
  130. </return>
  131. <argument index="0" name="id" type="String">
  132. </argument>
  133. <description>
  134. Returns the blend amount of a Blend3 node given its name.
  135. </description>
  136. </method>
  137. <method name="blend3_node_set_amount">
  138. <return type="void">
  139. </return>
  140. <argument index="0" name="id" type="String">
  141. </argument>
  142. <argument index="1" name="blend" type="float">
  143. </argument>
  144. <description>
  145. Sets the blend amount of a Blend3 node given its name and value.
  146. </description>
  147. </method>
  148. <method name="blend4_node_get_amount" qualifiers="const">
  149. <return type="Vector2">
  150. </return>
  151. <argument index="0" name="id" type="String">
  152. </argument>
  153. <description>
  154. Returns the blend amount of a Blend4 node given its name.
  155. </description>
  156. </method>
  157. <method name="blend4_node_set_amount">
  158. <return type="void">
  159. </return>
  160. <argument index="0" name="id" type="String">
  161. </argument>
  162. <argument index="1" name="blend" type="Vector2">
  163. </argument>
  164. <description>
  165. Sets the blend amount of a Blend4 node given its name and value.
  166. </description>
  167. </method>
  168. <method name="connect_nodes">
  169. <return type="int" enum="Error">
  170. </return>
  171. <argument index="0" name="id" type="String">
  172. </argument>
  173. <argument index="1" name="dst_id" type="String">
  174. </argument>
  175. <argument index="2" name="dst_input_idx" type="int">
  176. </argument>
  177. <description>
  178. Connects node [code]id[/code] to [code]dst_id[/code] at the specified input slot.
  179. </description>
  180. </method>
  181. <method name="disconnect_nodes">
  182. <return type="void">
  183. </return>
  184. <argument index="0" name="id" type="String">
  185. </argument>
  186. <argument index="1" name="dst_input_idx" type="int">
  187. </argument>
  188. <description>
  189. Disconnects nodes connected to [code]id[/code] at the specified input slot.
  190. </description>
  191. </method>
  192. <method name="get_animation_process_mode" qualifiers="const">
  193. <return type="int" enum="AnimationTreePlayer.AnimationProcessMode">
  194. </return>
  195. <description>
  196. Returns playback process mode of this AnimationTreePlayer.
  197. </description>
  198. </method>
  199. <method name="get_base_path" qualifiers="const">
  200. <return type="NodePath">
  201. </return>
  202. <description>
  203. </description>
  204. </method>
  205. <method name="get_master_player" qualifiers="const">
  206. <return type="NodePath">
  207. </return>
  208. <description>
  209. </description>
  210. </method>
  211. <method name="get_node_list">
  212. <return type="PoolStringArray">
  213. </return>
  214. <description>
  215. Returns a PoolStringArray containing the name of all nodes.
  216. </description>
  217. </method>
  218. <method name="is_active" qualifiers="const">
  219. <return type="bool">
  220. </return>
  221. <description>
  222. Returns whether this AnimationTreePlayer is active.
  223. </description>
  224. </method>
  225. <method name="mix_node_get_amount" qualifiers="const">
  226. <return type="float">
  227. </return>
  228. <argument index="0" name="id" type="String">
  229. </argument>
  230. <description>
  231. Returns mix amount of a Mix node given its name.
  232. </description>
  233. </method>
  234. <method name="mix_node_set_amount">
  235. <return type="void">
  236. </return>
  237. <argument index="0" name="id" type="String">
  238. </argument>
  239. <argument index="1" name="ratio" type="float">
  240. </argument>
  241. <description>
  242. Sets mix amount of a Mix node given its name and value.
  243. </description>
  244. </method>
  245. <method name="node_exists" qualifiers="const">
  246. <return type="bool">
  247. </return>
  248. <argument index="0" name="node" type="String">
  249. </argument>
  250. <description>
  251. Check if a node exists (by name).
  252. </description>
  253. </method>
  254. <method name="node_get_input_count" qualifiers="const">
  255. <return type="int">
  256. </return>
  257. <argument index="0" name="id" type="String">
  258. </argument>
  259. <description>
  260. Return the input count for a given node. Different types of nodes have different amount of inputs.
  261. </description>
  262. </method>
  263. <method name="node_get_input_source" qualifiers="const">
  264. <return type="String">
  265. </return>
  266. <argument index="0" name="id" type="String">
  267. </argument>
  268. <argument index="1" name="idx" type="int">
  269. </argument>
  270. <description>
  271. Return the input source for a given node input.
  272. </description>
  273. </method>
  274. <method name="node_get_position" qualifiers="const">
  275. <return type="Vector2">
  276. </return>
  277. <argument index="0" name="id" type="String">
  278. </argument>
  279. <description>
  280. Returns position of a node in the graph given its name.
  281. </description>
  282. </method>
  283. <method name="node_get_type" qualifiers="const">
  284. <return type="int" enum="AnimationTreePlayer.NodeType">
  285. </return>
  286. <argument index="0" name="id" type="String">
  287. </argument>
  288. <description>
  289. Get the node type, will return from NODE_* enum.
  290. </description>
  291. </method>
  292. <method name="node_rename">
  293. <return type="int" enum="Error">
  294. </return>
  295. <argument index="0" name="node" type="String">
  296. </argument>
  297. <argument index="1" name="new_name" type="String">
  298. </argument>
  299. <description>
  300. Rename a node in the graph.
  301. </description>
  302. </method>
  303. <method name="node_set_position">
  304. <return type="void">
  305. </return>
  306. <argument index="0" name="id" type="String">
  307. </argument>
  308. <argument index="1" name="screen_position" type="Vector2">
  309. </argument>
  310. <description>
  311. Sets position of a node in the graph given its name and position.
  312. </description>
  313. </method>
  314. <method name="oneshot_node_get_autorestart_delay" qualifiers="const">
  315. <return type="float">
  316. </return>
  317. <argument index="0" name="id" type="String">
  318. </argument>
  319. <description>
  320. Returns autostart delay of a OneShot node given its name.
  321. </description>
  322. </method>
  323. <method name="oneshot_node_get_autorestart_random_delay" qualifiers="const">
  324. <return type="float">
  325. </return>
  326. <argument index="0" name="id" type="String">
  327. </argument>
  328. <description>
  329. Returns autostart random delay of a OneShot node given its name.
  330. </description>
  331. </method>
  332. <method name="oneshot_node_get_fadein_time" qualifiers="const">
  333. <return type="float">
  334. </return>
  335. <argument index="0" name="id" type="String">
  336. </argument>
  337. <description>
  338. Returns fade in time of a OneShot node given its name.
  339. </description>
  340. </method>
  341. <method name="oneshot_node_get_fadeout_time" qualifiers="const">
  342. <return type="float">
  343. </return>
  344. <argument index="0" name="id" type="String">
  345. </argument>
  346. <description>
  347. Returns fade out time of a OneShot node given its name.
  348. </description>
  349. </method>
  350. <method name="oneshot_node_has_autorestart" qualifiers="const">
  351. <return type="bool">
  352. </return>
  353. <argument index="0" name="id" type="String">
  354. </argument>
  355. <description>
  356. Returns whether a OneShot node will auto restart given its name.
  357. </description>
  358. </method>
  359. <method name="oneshot_node_is_active" qualifiers="const">
  360. <return type="bool">
  361. </return>
  362. <argument index="0" name="id" type="String">
  363. </argument>
  364. <description>
  365. Returns whether a OneShot node is active given its name.
  366. </description>
  367. </method>
  368. <method name="oneshot_node_set_autorestart">
  369. <return type="void">
  370. </return>
  371. <argument index="0" name="id" type="String">
  372. </argument>
  373. <argument index="1" name="enable" type="bool">
  374. </argument>
  375. <description>
  376. Sets autorestart property of a OneShot node given its name and value.
  377. </description>
  378. </method>
  379. <method name="oneshot_node_set_autorestart_delay">
  380. <return type="void">
  381. </return>
  382. <argument index="0" name="id" type="String">
  383. </argument>
  384. <argument index="1" name="delay_sec" type="float">
  385. </argument>
  386. <description>
  387. Sets autorestart delay of a OneShot node given its name and value in seconds.
  388. </description>
  389. </method>
  390. <method name="oneshot_node_set_autorestart_random_delay">
  391. <return type="void">
  392. </return>
  393. <argument index="0" name="id" type="String">
  394. </argument>
  395. <argument index="1" name="rand_sec" type="float">
  396. </argument>
  397. <description>
  398. Sets autorestart random delay of a OneShot node given its name and value in seconds.
  399. </description>
  400. </method>
  401. <method name="oneshot_node_set_fadein_time">
  402. <return type="void">
  403. </return>
  404. <argument index="0" name="id" type="String">
  405. </argument>
  406. <argument index="1" name="time_sec" type="float">
  407. </argument>
  408. <description>
  409. Sets fade in time of a OneShot node given its name and value in seconds.
  410. </description>
  411. </method>
  412. <method name="oneshot_node_set_fadeout_time">
  413. <return type="void">
  414. </return>
  415. <argument index="0" name="id" type="String">
  416. </argument>
  417. <argument index="1" name="time_sec" type="float">
  418. </argument>
  419. <description>
  420. Sets fade out time of a OneShot node given its name and value in seconds.
  421. </description>
  422. </method>
  423. <method name="oneshot_node_set_filter_path">
  424. <return type="void">
  425. </return>
  426. <argument index="0" name="id" type="String">
  427. </argument>
  428. <argument index="1" name="path" type="NodePath">
  429. </argument>
  430. <argument index="2" name="enable" type="bool">
  431. </argument>
  432. <description>
  433. </description>
  434. </method>
  435. <method name="oneshot_node_start">
  436. <return type="void">
  437. </return>
  438. <argument index="0" name="id" type="String">
  439. </argument>
  440. <description>
  441. Starts a OneShot node given its name.
  442. </description>
  443. </method>
  444. <method name="oneshot_node_stop">
  445. <return type="void">
  446. </return>
  447. <argument index="0" name="id" type="String">
  448. </argument>
  449. <description>
  450. Stops a OneShot node given its name.
  451. </description>
  452. </method>
  453. <method name="recompute_caches">
  454. <return type="void">
  455. </return>
  456. <description>
  457. </description>
  458. </method>
  459. <method name="remove_node">
  460. <return type="void">
  461. </return>
  462. <argument index="0" name="id" type="String">
  463. </argument>
  464. <description>
  465. </description>
  466. </method>
  467. <method name="reset">
  468. <return type="void">
  469. </return>
  470. <description>
  471. Resets this AnimationTreePlayer.
  472. </description>
  473. </method>
  474. <method name="set_active">
  475. <return type="void">
  476. </return>
  477. <argument index="0" name="enabled" type="bool">
  478. </argument>
  479. <description>
  480. Sets whether this AnimationTreePlayer is active. AnimationTreePlayer will start processing if set to active.
  481. </description>
  482. </method>
  483. <method name="set_animation_process_mode">
  484. <return type="void">
  485. </return>
  486. <argument index="0" name="mode" type="int" enum="AnimationTreePlayer.AnimationProcessMode">
  487. </argument>
  488. <description>
  489. Sets process mode (ANIMATION_PROCESS_*) of this AnimationTreePlayer.
  490. </description>
  491. </method>
  492. <method name="set_base_path">
  493. <return type="void">
  494. </return>
  495. <argument index="0" name="path" type="NodePath">
  496. </argument>
  497. <description>
  498. Sets base path of this AnimationTreePlayer.
  499. </description>
  500. </method>
  501. <method name="set_master_player">
  502. <return type="void">
  503. </return>
  504. <argument index="0" name="nodepath" type="NodePath">
  505. </argument>
  506. <description>
  507. </description>
  508. </method>
  509. <method name="timescale_node_get_scale" qualifiers="const">
  510. <return type="float">
  511. </return>
  512. <argument index="0" name="id" type="String">
  513. </argument>
  514. <description>
  515. Returns time scale value of a TimeScale node given its name.
  516. </description>
  517. </method>
  518. <method name="timescale_node_set_scale">
  519. <return type="void">
  520. </return>
  521. <argument index="0" name="id" type="String">
  522. </argument>
  523. <argument index="1" name="scale" type="float">
  524. </argument>
  525. <description>
  526. Sets time scale value of a TimeScale node given its name and value.
  527. </description>
  528. </method>
  529. <method name="timeseek_node_seek">
  530. <return type="void">
  531. </return>
  532. <argument index="0" name="id" type="String">
  533. </argument>
  534. <argument index="1" name="seconds" type="float">
  535. </argument>
  536. <description>
  537. Sets time seek value of a TimeSeek node given its name and value.
  538. </description>
  539. </method>
  540. <method name="transition_node_delete_input">
  541. <return type="void">
  542. </return>
  543. <argument index="0" name="id" type="String">
  544. </argument>
  545. <argument index="1" name="input_idx" type="int">
  546. </argument>
  547. <description>
  548. </description>
  549. </method>
  550. <method name="transition_node_get_current" qualifiers="const">
  551. <return type="int">
  552. </return>
  553. <argument index="0" name="id" type="String">
  554. </argument>
  555. <description>
  556. </description>
  557. </method>
  558. <method name="transition_node_get_input_count" qualifiers="const">
  559. <return type="int">
  560. </return>
  561. <argument index="0" name="id" type="String">
  562. </argument>
  563. <description>
  564. </description>
  565. </method>
  566. <method name="transition_node_get_xfade_time" qualifiers="const">
  567. <return type="float">
  568. </return>
  569. <argument index="0" name="id" type="String">
  570. </argument>
  571. <description>
  572. </description>
  573. </method>
  574. <method name="transition_node_has_input_auto_advance" qualifiers="const">
  575. <return type="bool">
  576. </return>
  577. <argument index="0" name="id" type="String">
  578. </argument>
  579. <argument index="1" name="input_idx" type="int">
  580. </argument>
  581. <description>
  582. </description>
  583. </method>
  584. <method name="transition_node_set_current">
  585. <return type="void">
  586. </return>
  587. <argument index="0" name="id" type="String">
  588. </argument>
  589. <argument index="1" name="input_idx" type="int">
  590. </argument>
  591. <description>
  592. </description>
  593. </method>
  594. <method name="transition_node_set_input_auto_advance">
  595. <return type="void">
  596. </return>
  597. <argument index="0" name="id" type="String">
  598. </argument>
  599. <argument index="1" name="input_idx" type="int">
  600. </argument>
  601. <argument index="2" name="enable" type="bool">
  602. </argument>
  603. <description>
  604. </description>
  605. </method>
  606. <method name="transition_node_set_input_count">
  607. <return type="void">
  608. </return>
  609. <argument index="0" name="id" type="String">
  610. </argument>
  611. <argument index="1" name="count" type="int">
  612. </argument>
  613. <description>
  614. </description>
  615. </method>
  616. <method name="transition_node_set_xfade_time">
  617. <return type="void">
  618. </return>
  619. <argument index="0" name="id" type="String">
  620. </argument>
  621. <argument index="1" name="time_sec" type="float">
  622. </argument>
  623. <description>
  624. </description>
  625. </method>
  626. </methods>
  627. <members>
  628. <member name="playback_process_mode" type="int" setter="set_animation_process_mode" getter="get_animation_process_mode" enum="AnimationTreePlayer.AnimationProcessMode">
  629. </member>
  630. </members>
  631. <constants>
  632. <constant name="NODE_OUTPUT" value="0">
  633. Output node.
  634. </constant>
  635. <constant name="NODE_ANIMATION" value="1">
  636. Animation node.
  637. </constant>
  638. <constant name="NODE_ONESHOT" value="2">
  639. OneShot node.
  640. </constant>
  641. <constant name="NODE_MIX" value="3">
  642. Mix node.
  643. </constant>
  644. <constant name="NODE_BLEND2" value="4">
  645. Blend2 node.
  646. </constant>
  647. <constant name="NODE_BLEND3" value="5">
  648. Blend3 node.
  649. </constant>
  650. <constant name="NODE_BLEND4" value="6">
  651. Blend4 node.
  652. </constant>
  653. <constant name="NODE_TIMESCALE" value="7">
  654. TimeScale node.
  655. </constant>
  656. <constant name="NODE_TIMESEEK" value="8">
  657. TimeSeek node.
  658. </constant>
  659. <constant name="NODE_TRANSITION" value="9">
  660. Transition node.
  661. </constant>
  662. <constant name="ANIMATION_PROCESS_FIXED" value="0">
  663. </constant>
  664. <constant name="ANIMATION_PROCESS_IDLE" value="1">
  665. </constant>
  666. </constants>
  667. </class>