Jump to content
Sign in to follow this  
Atom

[SOLVED]Is instancefile broken?

Recommended Posts

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 by Atom

Share this post


Link to post
Share on other sites

i might be mistaken but I think instancefile needs an absolute path

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

You forgot the file extension on your instancefile string. Also, switch to Fast Point Instancing on your container.

Edited by toadstorm
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×