Coder Social home page Coder Social logo

List Input node about sverchok HOT 19 CLOSED

nortikin avatar nortikin commented on July 30, 2024
List Input node

from sverchok.

Comments (19)

zeffii avatar zeffii commented on July 30, 2024

The only real way to know is by trying :)

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

list2
Made it look a bit better.

from sverchok.

zeffii avatar zeffii commented on July 30, 2024

also convenient for vectors :)

from sverchok.

nortikin avatar nortikin commented on July 30, 2024

instead of series, may be as medial way from formula2 and text cvs input

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

Do mean middle way @nortikin ?

Anyway, a quick test what vector input could look like.
vecin

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

matrix-in
And just for fun, matrix input.

from sverchok.

zeffii avatar zeffii commented on July 30, 2024

i was looking for a simple identity matrix, this node could have presets!..edit: tho I don't know of any static matrices that would be handy

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

They are all basiclly ready. Yes or no? List Input feels good to have atleast.
For Matrix Input the ID matrix would be default of course.
We also need matrix math, did list once of the modes to make something like scalar math and vector math. It made my head hurt with socket handling idea I had then. Now know a bit more about that.

       m_in_m_out = {
            "MUL_MM"    :   (lambda m,n  : m*n , 2),
            "INV"       :   (lambda m    : m.inverted(), 1),
            "ADJ"       :   (lambda m    : m.adjugated(),1),
            "ADD"       :   (lambda m,n  : m+n, 2),
            "SUB"       :   (lambda m,n  : m-n, 2),
            "NORMALIZE" :   (lambda m    : m.normalized(),1),  
            "TRANSPOSE" :   (lambda m    : m.transposed(),1),
        }

        mv_in_v_out = {
            "MUL_MV"    :   (lambda m,v : m*v,2 )     
        }   
        vm_in_v_out = {
            "MUL_VM"    :   (lambda v,m : v*m,2 )     
        }
        m_in_s_out = {
            "DET"       :   (lambda m   : m.determinant(),1 )     
        }
        ms_in_s_out = {
            "SCALE_MUL"       :   (lambda m,s : m*s,2 )     
        }

from sverchok.

nortikin avatar nortikin commented on July 30, 2024

in has to have out

from sverchok.

zeffii avatar zeffii commented on July 30, 2024

believe it or not, I have not used Matrix yet in Sverchok :)

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

@nortikin "in has to have out"
I don't understand.

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

#125 List Input node

from sverchok.

nortikin avatar nortikin commented on July 30, 2024

i don't believe @zeffii
@ly29 in node always needs correspondint out node to it, so, node, that give matrix has to have node taking. But in this case i'm not sure.

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

@zeffii
Well, Otho projection to XY, YZ and XZ perhaps.

from sverchok.

zeffii avatar zeffii commented on July 30, 2024

yeah, drop vectors to ground plane

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

@nortikin
I understand, well it kind makes sense for Vector Input and Matrix Input to work like Integer and Float. But for List Input I don't think it makes sense.

from sverchok.

zeffii avatar zeffii commented on July 30, 2024

is this matrix node implemented yet?

from sverchok.

ly29 avatar ly29 commented on July 30, 2024

Yes, some small fixes, can do it tomorrow.
The vector one is not needed anymore with vector in list input and new vector in

from sverchok.

zeffii avatar zeffii commented on July 30, 2024

cool! I needed an easy way to make matrices

from sverchok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.