#ifndef _HAIR_P2T_COMMAND_H_ #define _HAIR_P2T_COMMAND_H_ // Shave and a Haircut // (c) 2019 Epic Games // US Patent 6720962 /********************************************************************** *< FILE: shavePack2TexCmd.h DESCRIPTION: command for packing hair data to image file HISTORY: created 23-04-2013 *> **********************************************************************/ #include #include #include #include #include class shavePack2TexCmd : public MPxCommand { public: // command // static MString cmd; // flags // //destinatin file static char* sf_file; static char* lf_file; //hair node name static char* sf_hair; static char* lf_hair; shavePack2TexCmd(){} virtual ~shavePack2TexCmd(){} static void *creator() {return new shavePack2TexCmd;} static MSyntax newSyntax(); virtual MStatus doIt(const MArgList&); protected: bool findNodeByName(const MString& name, MObject& thenode) const; bool copyToImage(MObject thenode, MImage& image) const; }; #endif