Skip to content

Realize editor scripting through Python #393

Description

@markaren
class Spinner:
    speed = 1.5          # shows up in the inspector, saved with the scene

    def start(self, obj):
        self.obj = obj

    def update(self, dt):
        self.obj.rotation.y += self.speed * dt

    def stop(self):
        pass
Image

Builds on #392

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions