Atom Posted June 11, 2018 Share Posted June 11, 2018 (edited) I thought I knew how to leverage the s@instancefile attribute but it does not seem to work anymore. Using H16.5.378. int index = int(fit01(rand(@ptnum),0,3)); s@instancefile = sprintf('$HIP/geo/forest_rock_%03d',index); // Set particle scale. f@pscale = fit01(rand(@ptnum),10.75,110.75); Does anyone have an example of s@instancefile working? instancefile_broken.zip Edited June 11, 2018 by Atom Quote Link to comment Share on other sites More sharing options...
3dome Posted June 11, 2018 Share Posted June 11, 2018 i might be mistaken but I think instancefile needs an absolute path Quote Link to comment Share on other sites More sharing options...
Atom Posted June 11, 2018 Author Share Posted June 11, 2018 I do see an absolute path inside the geometry spreadsheet so I think $HIP is being converted correctly. I also tried an absolute path with both forward and back slashes and neither attempt produces geometry displayed in my viewport. All I see are the points. I did test that my geometry loads using a File node so I know the geometry is ok. Quote Link to comment Share on other sites More sharing options...
3dome Posted June 11, 2018 Share Posted June 11, 2018 I rarely use the instance node so I can't really help, sorry. But I can offer one more way of instancing - via primintrinsics - but you might already know that dm_intrinsic_instancing.hipnc Quote Link to comment Share on other sites More sharing options...
toadstorm Posted June 11, 2018 Share Posted June 11, 2018 (edited) You forgot the file extension on your instancefile string. Also, switch to Fast Point Instancing on your container. Edited June 11, 2018 by toadstorm 1 Quote Link to comment Share on other sites More sharing options...
Atom Posted June 11, 2018 Author Share Posted June 11, 2018 Doh! Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.