svētdiena, 2022. gada 31. jūlijs

how does javascript fixes this issue of threejs or enable3d? (PSEUDO CODE)

class MainScene extends Scene3D {

async create() {

for (let step = 0; step < skins.length; step++) {

setInterval(greet, 8000);
            this.man = new ExtendedObject3D()
            this.man.name = 'man'
            this.man.rotateY(Math.PI + 0.1) // a hack
            this.man.add(man)
function greet() {
this.man.position.set(vertibasx, vertibasy, vertibasz)
                // CANNOT ACCESS THIS.MAN.POSITION
}

}
}
}

//this does not work too

class MainScene extends Scene3D {

async create() {

for (let step = 0; step < skins.length; step++) {
        this.man = new ExtendedObject3D()
        this.man.name = 'man'
        this.man.rotateY(Math.PI + 0.1) // a hack
        this.man.add(man)
    }
setInterval(greet, 8000);

function greet() {
this.man.position.set(vertibasx, vertibasy, vertibasz)
                // CANNOT ACCESS THIS.MAN.POSITION
}

}
}


HOW DOES JAVASCRIPT FIXES THIS. ISSUE?.


*****************************************
BIG FIX THAT STILL LEADS TO ERROR DUE THREEJS


class MainScene extends Scene3D {

async create() {

for (let step = 0; step < skins.length; step++) {
this.man = new ExtendedObject3D()
this.man.name = 'man'
this.man.rotateY(Math.PI + 0.1) // a hack
this.man.add(man)
let that = this.man;
}
setInterval(greet, 8000);

function greet() {
that.position.set(vertibasx, vertibasy, vertibasz)
                
//THIS LEADS TO WHITE SCREEN AS GREET HAPPENS, CONSOLE
                //LOGS HERE, BUT POSITION CANNOT BE SET EVERY 8 SECONDS
}

}
}

**********************************






for example ----



class MainScene extends Scene3D {

async create() {

for (let step = 0; step < skins.length; step++) {
        this.man = new ExtendedObject3D()
        this.man.name = 'man'
        this.man.rotateY(Math.PI + 0.1) // a hack
        this.man.add(man)
            window.localStorage.setItem('x', vertibasx);             window.localStorage.setItem('y', vertibasy);             window.localStorage.setItem('z', vertibasz);
        }


        console.log("try", window.localStorage.getItem('x'));

        ///leaves undefined "try"

setInterval(greet, 8000);

function greet() {
this.man.position.set(vertibasx, vertibasy, vertibasz)
                // CANNOT ACCESS THIS.MAN.POSITION
}

}
}





piektdiena, 2022. gada 8. jūlijs

issues with programming and software:

 so, first things about github, watch out for files over 100mb, if You did fail, delete repositories, delete .git init and start over, none of the things that work are written on github's website or google articles... this takes like 5 hours, and it's not my comprehension level.


AVStream.codecpar #kdenlive , if You don't fix the issue of frames overwritten by ffmpeg, yall will have to do job so I don't have to.

fascism in software.


I write issue, correctly explain issue, and yall always disrespect concentration, if yall will have to concentrate on job I will do in real life I will make yall bounce on the bowl like an hippopotamus #irc #relaychats



list might go on......

SAVE/EXPORT MULTIPLE OPENED IMAGES IN GIMP

 SCRIPT - saveALL.scm

TO KNOW WHERE TO SET IT OPEN PREFERENCES - FOLDERS - PLUGINS

AND IT'S /home/username/.config/GIMP/2.10/plug-ins




extra tips, for video editing:

https://mytechservinginternetmeals.blogspot.com/2022/01/extract-frames-from-video-and-create.html


; This program is free software
; you can redistribute it and/or modify 
; it under the terms of the GNU General Public 
; License as published by 
; the Free Software Foundation
; either version 2 of the License, or 
; (at your option) any later version. 
; 
; This program is distributed in the hope that it will be useful, 
; but WITHOUT ANY WARRANTY; without even the implied warranty of 
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
; GNU General Public License for more details. 

(define (script-fu-save-all-images) 
  (let* ((i (car (gimp-image-list))) 
         (image)) 
    (while (> i 0) 
      (set! image (vector-ref (cadr (gimp-image-list)) (- i 1))) 
      (gimp-file-save RUN-NONINTERACTIVE 
                      image 
                      (car (gimp-image-get-active-layer image)) 
                      (car (gimp-image-get-filename image)) 
                      (car (gimp-image-get-filename image))) 
      (gimp-image-clean-all image) 
      (set! i (- i 1))))) 

(script-fu-register "script-fu-save-all-images" 
 "<Image>/File/Save ALL" 
 "Save all opened images" 
 "Saul Goode" 
 "Saul Goode" 
 "11/21/2006" 
 "" 
 )