Hello,
Here is the Arnold API question that I'm not sure how to solve as AiNodeLookUpByName() does not work for scene nodes that are not translated yet.
In the case like below, during the translation of instancer, the polymesh /Box001 does not exists yet, while /Teapot001 works okay.
If I use AtNode *rinode = arnold_translation->GetOutput(0, AtString("polymesh"), AtString("/Box001"));
then our instancer does not render.
..not sure what Output index really should be but have tried 0,1.
The GetNode(NodeType type, ReferenceTarget* ref) looks promissing, the NodeType does not support geometry node.
Any suggestions appreciated.
polymesh
{
name /Teapot001
matrix
…
}
instancer
{
name /MyInstancer
id 2705291497
nodes "/Teapot001"
node_idxs 10 1 b85UINT
..
}
polymesh
{
name /Box001
matrix
..
}
Thank you