Commit 190a2ad 1 parent fb8905e commit 190a2ad Copy full SHA for 190a2ad
File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -608,6 +608,19 @@ Asset::findObjectById(int id)
608
608
return myObjects [id ];
609
609
}
610
610
611
+ MString
612
+ Asset ::getRelativePath (HAPI_NodeId id )
613
+ {
614
+ HAPI_StringHandle relativePathHandle ;
615
+ CHECK_HAPI (HAPI_GetNodePath (
616
+ Util ::theHAPISession .get (),
617
+ id ,
618
+ myNodeInfo .id ,
619
+ & relativePathHandle
620
+ ));
621
+ return Util ::HAPIString (relativePathHandle );
622
+ }
623
+
611
624
void
612
625
Asset ::resetSimulation ()
613
626
{
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Asset {
33
33
OutputObject* findObjectById (int id);
34
34
HAPI_AssetInfo getAssetInfo () { return myAssetInfo; }
35
35
HAPI_NodeInfo getNodeInfo () { return myNodeInfo; }
36
+ MString getRelativePath (HAPI_NodeId id);
36
37
37
38
void resetSimulation ();
38
39
You can’t perform that action at this time.
0 commit comments