Skip to content

Commit

Permalink
Merge pull request #7 from ivanimanishi/improvedPythonBindings
Browse files Browse the repository at this point in the history
AtomsGafferModule: Bindings allow subclassing in python
  • Loading branch information
andrewkaufman authored Jan 31, 2019
2 parents 9831868 + 947e58c commit 679a119
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/AtomsGafferModule/AtomsGafferModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,21 @@ BOOST_PYTHON_MODULE( _AtomsGaffer )
AtomsUtils::Logger::instance().setLogType(mayaLogger);
Atoms::initAtoms();

GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsCrowdReader>();
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsVariationReader>();
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsCrowdGenerator>();
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsAttributes>();
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsCrowdClothReader>();
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsMetadata>();
typedef GafferBindings::DependencyNodeWrapper<AtomsGaffer::AtomsCrowdReader> AtomsCrowdReaderWrapper;
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsCrowdReader, AtomsCrowdReaderWrapper>();

typedef GafferBindings::DependencyNodeWrapper<AtomsGaffer::AtomsVariationReader> AtomsVariationReaderWrapper;
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsVariationReader, AtomsVariationReaderWrapper>();

typedef GafferBindings::DependencyNodeWrapper<AtomsGaffer::AtomsCrowdGenerator> AtomsCrowdGeneratorWrapper;
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsCrowdGenerator, AtomsCrowdGeneratorWrapper>();

typedef GafferBindings::DependencyNodeWrapper<AtomsGaffer::AtomsAttributes> AtomsAttributesWrapper;
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsAttributes, AtomsAttributesWrapper>();

typedef GafferBindings::DependencyNodeWrapper<AtomsGaffer::AtomsCrowdClothReader> AtomsCrowdClothReaderWrapper;
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsCrowdClothReader, AtomsCrowdClothReaderWrapper>();

typedef GafferBindings::DependencyNodeWrapper<AtomsGaffer::AtomsMetadata> AtomsMetadataWrapper;
GafferBindings::DependencyNodeClass<AtomsGaffer::AtomsMetadata, AtomsMetadataWrapper>();
}

0 comments on commit 679a119

Please sign in to comment.