blob: 2e8d6ba05a50a21908a244e74daac2e36cab1a63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#ifndef shaveUtilCmd_h
#define shaveUtilCmd_h
// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962
#include <maya/MArgList.h>
#include <maya/MPxCommand.h>
#include <maya/MSyntax.h>
#include <maya/MString.h>
class shaveUtilCmd : public MPxCommand
{
public:
shaveUtilCmd();
virtual ~shaveUtilCmd();
MStatus doIt( const MArgList& args );
bool isUndoable() const;
static void* createCmd();
static MSyntax createSyntax();
static const MString commandName;
private:
MStatus scaleAll(float s);
MStatus scaleCurrent(float s);
MStatus copyAttr(
MString origPlugName,
MString dupPlugName,
bool dupInConns,
bool moveOutConns
) const;
MStatus copyInboundConnection(
MPlug& origPlug, MPlug& dupPlug
) const;
MStatus copyPlug(
MPlug origPlug,
MPlug dupPlug,
bool dupInConns,
bool moveOutConns,
bool checkOnly
) const;
static void finishPluginInitialization();
static MString getAttrType(MString plugName);
MStatus moveOutboundConnections(
MPlug& origPlug, MPlug& dupPlug
) const;
#ifdef PROFILE
static bool gProfiling;
#endif
bool mForce;
bool mSilent;
};
inline bool shaveUtilCmd::isUndoable() const
{ return false; }
#endif
|