.. | ||
python | ||
src | ||
CMakeLists.txt | ||
README.md |
Snap to closest vertices/surface.
Build
MacOS/Linux
mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DMAYA_ROOT_DIR="path/to/maya/dir" ../
cmake --build . --config Release --target install
Windows
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DMAYA_ROOT_DIR="path/to/maya/dir" ../
cmake --build . --config Release --target install
Flags
Longname | Shortname | Argument types | default | Properties |
---|---|---|---|---|
mode | m | string | C | |
searchDistance | d | float | 10 | C |
Python examples
Snap selected vertices to specified closest vertex or surface.
cmds.snapToClosest("Plane1", mode="normal")