Debian Codegraph @

doc/classes/CopyTransformModifier3D.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="CopyTransformModifier3D" inherits="BoneConstraint3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A [SkeletonModifier3D] that apply transform to the bone which copied from reference.
5 </brief_description>
6 <description>
7 Apply the copied transform of the bone set by [method BoneConstraint3D.set_reference_bone] to the bone set by [method BoneConstraint3D.set_apply_bone] with processing it with some masks and options.
8 There are 4 ways to apply the transform, depending on the combination of [method set_relative] and [method set_additive].
9 [b]Relative + Additive:[/b]
10 - Extract reference pose relative to the rest and add it to the apply bone's pose.
11 [b]Relative + Not Additive:[/b]
12 - Extract reference pose relative to the rest and add it to the apply bone's rest.
13 [b]Not Relative + Additive:[/b]
14 - Extract reference pose absolutely and add it to the apply bone's pose.
15 [b]Not Relative + Not Additive:[/b]
16 - Extract reference pose absolutely and the apply bone's pose is replaced with it.
17 [b]Note:[/b] Relative option is available only in the case [method BoneConstraint3D.get_reference_type] is [constant BoneConstraint3D.REFERENCE_TYPE_BONE]. See also [enum BoneConstraint3D.ReferenceType].
18 </description>
19 <tutorials>
20 </tutorials>
21 <methods>
22 <method name="get_axis_flags" qualifiers="const">
23 <return type="int" enum="CopyTransformModifier3D.AxisFlag" is_bitfield="true" />
24 <param index="0" name="index" type="int" />
25 <description>
26 Returns the axis flags of the setting at [param index].
27 </description>
28 </method>
29 <method name="get_copy_flags" qualifiers="const">
30 <return type="int" enum="CopyTransformModifier3D.TransformFlag" is_bitfield="true" />
31 <param index="0" name="index" type="int" />
32 <description>
33 Returns the copy flags of the setting at [param index].
34 </description>
35 </method>
36 <method name="get_invert_flags" qualifiers="const">
37 <return type="int" enum="CopyTransformModifier3D.AxisFlag" is_bitfield="true" />
38 <param index="0" name="index" type="int" />
39 <description>
40 Returns the invert flags of the setting at [param index].
41 </description>
42 </method>
43 <method name="is_additive" qualifiers="const">
44 <return type="bool" />
45 <param index="0" name="index" type="int" />
46 <description>
47 Returns [code]true[/code] if the additive option is enabled in the setting at [param index].
48 </description>
49 </method>
50 <method name="is_axis_x_enabled" qualifiers="const">
51 <return type="bool" />
52 <param index="0" name="index" type="int" />
53 <description>
54 Returns [code]true[/code] if the enable flags has the flag for the X-axis in the setting at [param index]. See also [method set_axis_flags].
55 </description>
56 </method>
57 <method name="is_axis_x_inverted" qualifiers="const">
58 <return type="bool" />
59 <param index="0" name="index" type="int" />
60 <description>
61 Returns [code]true[/code] if the invert flags has the flag for the X-axis in the setting at [param index]. See also [method set_invert_flags].
62 </description>
63 </method>
64 <method name="is_axis_y_enabled" qualifiers="const">
65 <return type="bool" />
66 <param index="0" name="index" type="int" />
67 <description>
68 Returns [code]true[/code] if the enable flags has the flag for the Y-axis in the setting at [param index]. See also [method set_axis_flags].
69 </description>
70 </method>
71 <method name="is_axis_y_inverted" qualifiers="const">
72 <return type="bool" />
73 <param index="0" name="index" type="int" />
74 <description>
75 Returns [code]true[/code] if the invert flags has the flag for the Y-axis in the setting at [param index]. See also [method set_invert_flags].
76 </description>
77 </method>
78 <method name="is_axis_z_enabled" qualifiers="const">
79 <return type="bool" />
80 <param index="0" name="index" type="int" />
81 <description>
82 Returns [code]true[/code] if the enable flags has the flag for the Z-axis in the setting at [param index]. See also [method set_axis_flags].
83 </description>
84 </method>
85 <method name="is_axis_z_inverted" qualifiers="const">
86 <return type="bool" />
87 <param index="0" name="index" type="int" />
88 <description>
89 Returns [code]true[/code] if the invert flags has the flag for the Z-axis in the setting at [param index]. See also [method set_invert_flags].
90 </description>
91 </method>
92 <method name="is_position_copying" qualifiers="const">
93 <return type="bool" />
94 <param index="0" name="index" type="int" />
95 <description>
96 Returns [code]true[/code] if the copy flags has the flag for the position in the setting at [param index]. See also [method set_copy_flags].
97 </description>
98 </method>
99 <method name="is_relative" qualifiers="const">
100 <return type="bool" />
101 <param index="0" name="index" type="int" />
102 <description>
103 Returns [code]true[/code] if the relative option is enabled in the setting at [param index].
104 </description>
105 </method>
106 <method name="is_rotation_copying" qualifiers="const">
107 <return type="bool" />
108 <param index="0" name="index" type="int" />
109 <description>
110 Returns [code]true[/code] if the copy flags has the flag for the rotation in the setting at [param index]. See also [method set_copy_flags].
111 </description>
112 </method>
113 <method name="is_scale_copying" qualifiers="const">
114 <return type="bool" />
115 <param index="0" name="index" type="int" />
116 <description>
117 Returns [code]true[/code] if the copy flags has the flag for the scale in the setting at [param index]. See also [method set_copy_flags].
118 </description>
119 </method>
120 <method name="set_additive">
121 <return type="void" />
122 <param index="0" name="index" type="int" />
123 <param index="1" name="enabled" type="bool" />
124 <description>
125 Sets additive option in the setting at [param index] to [param enabled]. This mainly affects the process of applying transform to the [method BoneConstraint3D.set_apply_bone].
126 If sets [param enabled] to [code]true[/code], the processed transform is added to the pose of the current apply bone.
127 If sets [param enabled] to [code]false[/code], the pose of the current apply bone is replaced with the processed transform. However, if set [method set_relative] to [code]true[/code], the transform is relative to rest.
128 </description>
129 </method>
130 <method name="set_axis_flags">
131 <return type="void" />
132 <param index="0" name="index" type="int" />
133 <param index="1" name="axis_flags" type="int" enum="CopyTransformModifier3D.AxisFlag" is_bitfield="true" />
134 <description>
135 Sets the flags to copy axes. If the flag is valid, the axis is copied.
136 </description>
137 </method>
138 <method name="set_axis_x_enabled">
139 <return type="void" />
140 <param index="0" name="index" type="int" />
141 <param index="1" name="enabled" type="bool" />
142 <description>
143 If sets [param enabled] to [code]true[/code], the X-axis will be copied.
144 </description>
145 </method>
146 <method name="set_axis_x_inverted">
147 <return type="void" />
148 <param index="0" name="index" type="int" />
149 <param index="1" name="enabled" type="bool" />
150 <description>
151 If sets [param enabled] to [code]true[/code], the X-axis will be inverted.
152 </description>
153 </method>
154 <method name="set_axis_y_enabled">
155 <return type="void" />
156 <param index="0" name="index" type="int" />
157 <param index="1" name="enabled" type="bool" />
158 <description>
159 If sets [param enabled] to [code]true[/code], the Y-axis will be copied.
160 </description>
161 </method>
162 <method name="set_axis_y_inverted">
163 <return type="void" />
164 <param index="0" name="index" type="int" />
165 <param index="1" name="enabled" type="bool" />
166 <description>
167 If sets [param enabled] to [code]true[/code], the Y-axis will be inverted.
168 </description>
169 </method>
170 <method name="set_axis_z_enabled">
171 <return type="void" />
172 <param index="0" name="index" type="int" />
173 <param index="1" name="enabled" type="bool" />
174 <description>
175 If sets [param enabled] to [code]true[/code], the Z-axis will be copied.
176 </description>
177 </method>
178 <method name="set_axis_z_inverted">
179 <return type="void" />
180 <param index="0" name="index" type="int" />
181 <param index="1" name="enabled" type="bool" />
182 <description>
183 If sets [param enabled] to [code]true[/code], the Z-axis will be inverted.
184 </description>
185 </method>
186 <method name="set_copy_flags">
187 <return type="void" />
188 <param index="0" name="index" type="int" />
189 <param index="1" name="copy_flags" type="int" enum="CopyTransformModifier3D.TransformFlag" is_bitfield="true" />
190 <description>
191 Sets the flags to process the transform operations. If the flag is valid, the transform operation is processed.
192 [b]Note:[/b] If the rotation is valid for only one axis, it respects the roll of the valid axis. If the rotation is valid for two axes, it discards the roll of the invalid axis.
193 </description>
194 </method>
195 <method name="set_copy_position">
196 <return type="void" />
197 <param index="0" name="index" type="int" />
198 <param index="1" name="enabled" type="bool" />
199 <description>
200 If sets [param enabled] to [code]true[/code], the position will be copied.
201 </description>
202 </method>
203 <method name="set_copy_rotation">
204 <return type="void" />
205 <param index="0" name="index" type="int" />
206 <param index="1" name="enabled" type="bool" />
207 <description>
208 If sets [param enabled] to [code]true[/code], the rotation will be copied.
209 </description>
210 </method>
211 <method name="set_copy_scale">
212 <return type="void" />
213 <param index="0" name="index" type="int" />
214 <param index="1" name="enabled" type="bool" />
215 <description>
216 If sets [param enabled] to [code]true[/code], the scale will be copied.
217 </description>
218 </method>
219 <method name="set_invert_flags">
220 <return type="void" />
221 <param index="0" name="index" type="int" />
222 <param index="1" name="axis_flags" type="int" enum="CopyTransformModifier3D.AxisFlag" is_bitfield="true" />
223 <description>
224 Sets the flags to inverte axes. If the flag is valid, the axis is copied.
225 [b]Note:[/b] An inverted scale means an inverse number, not a negative scale. For example, inverting [code]2.0[/code] means [code]0.5[/code].
226 [b]Note:[/b] An inverted rotation flips the elements of the quaternion. For example, a two-axis inversion will flip the roll of each axis, and a three-axis inversion will flip the final orientation. However, be aware that flipping only one axis may cause unintended rotation by the unflipped axes, due to the characteristics of the quaternion.
227 </description>
228 </method>
229 <method name="set_relative">
230 <return type="void" />
231 <param index="0" name="index" type="int" />
232 <param index="1" name="enabled" type="bool" />
233 <description>
234 Sets relative option in the setting at [param index] to [param enabled].
235 If sets [param enabled] to [code]true[/code], the extracted and applying transform is relative to the rest.
236 If sets [param enabled] to [code]false[/code], the extracted transform is absolute.
237 </description>
238 </method>
239 </methods>
240 <members>
241 <member name="setting_count" type="int" setter="set_setting_count" getter="get_setting_count" default="0">
242 The number of settings in the modifier.
243 </member>
244 </members>
245 <constants>
246 <constant name="TRANSFORM_FLAG_POSITION" value="1" enum="TransformFlag" is_bitfield="true">
247 If set, allows to copy the position.
248 </constant>
249 <constant name="TRANSFORM_FLAG_ROTATION" value="2" enum="TransformFlag" is_bitfield="true">
250 If set, allows to copy the rotation.
251 </constant>
252 <constant name="TRANSFORM_FLAG_SCALE" value="4" enum="TransformFlag" is_bitfield="true">
253 If set, allows to copy the scale.
254 </constant>
255 <constant name="TRANSFORM_FLAG_ALL" value="7" enum="TransformFlag" is_bitfield="true">
256 If set, allows to copy the position/rotation/scale.
257 </constant>
258 <constant name="AXIS_FLAG_X" value="1" enum="AxisFlag" is_bitfield="true">
259 If set, allows to process the X-axis.
260 </constant>
261 <constant name="AXIS_FLAG_Y" value="2" enum="AxisFlag" is_bitfield="true">
262 If set, allows to process the Y-axis.
263 </constant>
264 <constant name="AXIS_FLAG_Z" value="4" enum="AxisFlag" is_bitfield="true">
265 If set, allows to process the Z-axis.
266 </constant>
267 <constant name="AXIS_FLAG_ALL" value="7" enum="AxisFlag" is_bitfield="true">
268 If set, allows to process the all axes.
269 </constant>
270 </constants>
271 </class>