All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyUtils.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/usd/sdf/layer.h"
#include <hboost/python/dict.hpp>
#include <string>
+ Include dependency graph for pyUtils.h:

Go to the source code of this file.


SDF_API bool 
SdfFileFormatArgumentsFromPython (const hboost::python::dict &dict, SdfLayer::FileFormatArguments *args, std::string *errMsg=NULL)

Function Documentation

PXR_NAMESPACE_OPEN_SCOPE SDF_API bool SdfFileFormatArgumentsFromPython ( const hboost::python::dict &  dict,
SdfLayer::FileFormatArguments args,
std::string errMsg = NULL 

Convert the Python dictionary dict to an SdfLayer::FileFormatArguments object and return it via args.

If a non-string key or value is encountered, errMsg will be filled in (if given) and this function will return false. Otherwise, this function will return true.