15#include "MaxUsd/MaxUSDAPI.h"
82 static MaxUSDAPI
const int invalidChannel = INT_MIN;
85 std::map<std::string, int> primvarToChannnelMappings;
86 bool importUnmappedPrimvars =
false;
This class exposes methods for getting and setting primvar/channel mapping options.
Definition: PrimvarMappingOptions.h:19
MaxUSDAPI void GetMappedPrimvars(std::vector< std::wstring > &primvars) const
Returns the list of all currently mapped primvars.
MaxUSDAPI void SetDefaultPrimvarChannelMappings()
Sets defaults primvar to channels mappings.
MaxUSDAPI void ClearMappedPrimvars()
Clears all primvar mappings.
MaxUSDAPI int GetPrimvarChannelMapping(const std::string &primvar) const
Gets the channel to which a primvar maps to.
MaxUSDAPI void SetImportUnmappedPrimvars(bool importUnmappedPrimvars)
Sets whether or not to import primvars that are not explicitely mapped. If true, try to find the most...
MaxUSDAPI bool IsMappedPrimvar(const std::string &primvar) const
Checks if a primvar is currently mapped to a channel.
MaxUSDAPI bool GetImportUnmappedPrimvars() const
Gets whether or not to import primvars that are not explicitely mapped.
MaxUSDAPI const std::map< std::string, int > & GetPrimvarMappings() const
Returns the primvar to channel map.
MaxUSDAPI PrimvarMappingOptions()
Constructor.
MaxUSDAPI void SetPrimvarChannelMapping(const std::string &primvar, int channel)
Sets a primvar to channel mapping.