Local host not opening, receiving error in prompt

I’m also adding support to the addon to update itself by clicking a button (so you dont have to manually download the zip and install it anymore)

Ohh sounds peaceful

by user 392979063620501504

Is the postprocessing and volume components not added to blender?

by user 392979063620501504

and how to I lock access when I add dragcontrol component to an object? I want to lock it from moving along the Z axis

by user 392979063620501504

Postprocessing is not exported yet from Blender.

The DragControls component doesnt have an option for that. You could add a minimal custom component to always set it to the same z position in onBeforeRender

import { Behaviour } from '@needle-tools/engine';

// Read about how to create a new component here: https://docs.needle.tools/scripting

export class LockZMovement extends Behaviour {

    private _startz?: number;

    start() {
        this._startz = this.gameObject.position.z
    }
    onBeforeRender(frame: XRFrame | null): void {
        this.gameObject.position.z = this._startz!;
    }
}

image.png

Like this ^

Got it

by user 392979063620501504

Thanks

by user 392979063620501504

to add it to your project you can click this button and paste the script above
image.png

Yep yep got it

by user 392979063620501504

Any way to resolve this error?

by user 392979063620501504

Either prefix with _ like _frame OR in this case just remove it and write onBeforeRender(): void

It’s stuck moving on just the x-axis now, also is this ball thing appearing normal?

by user 392979063620501504

This is what it’s like rn

by user 392979063620501504

Update your script like so (the DragControls component has a few more options that aren’t exposed in Blender, I’ll add it to the next version, see line 13 and 14 here)

import { Behaviour, DragControls } from '@needle-tools/engine';

// Read about how to create a new component here: https://docs.needle.tools/scripting

export class LockZMovement extends Behaviour {

    private _startz?: number;

    start() {
        this._startz = this.gameObject.position.z;
        const dg = this.gameObject.getComponent(DragControls);
        if (dg) {
            dg.useViewAngle = false;
            dg.showGizmo = false;
        }
    }
    onBeforeRender(): void {
        this.gameObject.position.z = this._startz!;
    }
}

Is the texture that was missing here used in two slots (basecolor and emissive for example) ?

Lemme check

by user 392979063620501504

Ball gone but it is still only moving along X axis

by user 392979063620501504

Yes it was, I need to head out somewhere, I’ll just quickly share the blend file rn

by user 392979063620501504

by user 392979063620501504