Motion transfer setup #1
8
nodes.py
8
nodes.py
@ -601,9 +601,9 @@ class ToVector(AbstractPowerShipNode):
|
||||
self.outputs.new("NodeSocketVector", "Vector")
|
||||
|
||||
def execute(self, depsgraph: bpy.types.Depsgraph) -> None:
|
||||
x = self.inputs["X"].default_value or 0.0
|
||||
y = self.inputs["Y"].default_value or 0.0
|
||||
z = self.inputs["Z"].default_value or 0.0
|
||||
x = self.inputs["X"].default_value
|
||||
y = self.inputs["Y"].default_value
|
||||
z = self.inputs["Z"].default_value
|
||||
self.outputs["Vector"].default_value = Vector((x, y, z))
|
||||
|
||||
|
||||
@ -690,7 +690,7 @@ class RotateTowards(AbstractPowerShipNode):
|
||||
bl_icon = "EMPTY_ARROWS"
|
||||
|
||||
track: bpy.props.EnumProperty( # type: ignore
|
||||
name="Track", items=_enum_track_axis_items, default="X"
|
||||
name="Track", items=_enum_track_axis_items, default="Z"
|
||||
)
|
||||
|
||||
up: bpy.props.EnumProperty( # type: ignore
|
||||
|
Loading…
Reference in New Issue
Block a user