Giter Club home page Giter Club logo

mayafurplugin's Introduction

ExampleResult

  • mkdir build
  • cd build
  • cmake -G "Unix Makefiles" -DMAYA_VERSION=2017 ../
  • make

mayafurplugin's People

Contributors

carlbaum avatar novalain avatar danielholst avatar

Stargazers

Zipeng avatar Kthulhu avatar  avatar Tomás Poveda avatar  avatar scorza avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

Forkers

rishis3d jonntd

mayafurplugin's Issues

Create line in MEL?

And bind it to input in FurryNode, as Andrew suggested to keep a clean state in our application and be able to update in animation slider.

curve -p 0 0 0 -p 5 0 0 -p 5 0 5 -p 0 0 5;
createNode -n FurrySystem furry
connectAttr curve1 furry.strand // or connectAttr curve1.controlVertices furry.controlVertices
connecAttr time1.outTime furry.time

MEL-script to spawn start curves on sphere surface

Something like this...

  1. Get selected mesh (sphere)
  2. Get Sphere center (position)
  3. Get Sphere radius
  4. Strand length and number_of_points_per_strand must be defined
  5. createHairSystemNode (possibly also strand nodes)
  6. for ( int i = 0; i < num_of_hairs ; i++) {
    randomize start position (e.g. a = rand[0,2pi], x = rand(-r, r), or x =rand(0, pi) )
    direction = (randomPos - spherePos).normalized
    createNurbsCurve where p0 = randomPos, p1 = randomPos + direction
    segmentLength
    Attach curve to some node (either strand or hair system)
    }

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.