This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config3d = { | |
extensions: ["Autodesk.InViewerSearch"], | |
inViewerSearchConfig: { | |
uiEnabled: true, | |
clientId: "adsk.forge.default", | |
sessionId: "Session-ID-example-F969EB70-242F-11E6-BDF4-0800200C9A66", | |
loadedModelTab: { | |
enabled: true, //if false we hide the tab | |
displayName: 'This View', | |
pageSize: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <maya/MFnPlugin.h> | |
#include <maya/MIOStream.h> | |
#include <maya/MStatus.h> | |
#include <maya/MEvent.h> | |
#include <maya/MGlobal.h> | |
#include <maya/MItSelectionList.h> | |
#include <maya/MFnSingleIndexedComponent.h> | |
#include <maya/MDagPath.h> | |
#include <maya/MFn.h> | |
#include <maya/MFnMesh.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MFnDagNode fnDagNode(m_dagPath); | |
// Apply the render overrides | |
static const MString sApplyRenderOverrideCmd = "xgmSplineApplyRenderOverride "; | |
MGlobal::executeCommand(sApplyRenderOverrideCmd + fnDagNode.partialPathName()); | |
// Stream out the spline data | |
std::string data; | |
MPlug outPlug = fnDagNode.findPlug("outRenderData"); | |
MObject outObj = outPlug.asMObject(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
env: 'AutodeskProduction', | |
getAccessToken: function (onGetAccessToken) { | |
// Asynchronous request from your app to request | |
// access token from your server ... | |
yourAppGetAccessTokenAsync(function (tokenResponse) { | |
onGetAccessToken ( | |
tokenResponse.access_token, |