question

Ariff Jeff avatar image
Ariff Jeff asked ·

Strings: number character interpretation bug?

C4DtoA 2.6.0 [509cf977]
Arnold core 5.4.0.0

I'm not sure if this is a bug with how Arnold interprets number characters in strings or if this is part of the methodology of Arnold. To see what I'm talking about, do the following:

1. New scene, create a sphere, make it editable. Move it away from the origin to the side.

2. Ass export the sphere as a procedural. Give it the file name 'test2.ass'

3. Create a procedural object. In the ASS tab click on the Path param ellipses to bring up the windows explorer Open File dialogue. Find and grab 'test2.ass'.

4. Notice how the procedural object didn't bring in the file. This is because the Path param shows that the character '#' was substituted for the '2' in 'test2.ass' since Arnold thinks that number is a frame number.

5. Grabbing the file again via the Open File dialogue shows that Arnold corrects this mistake and replaces the string with what we want so that the path is correct. Therefore the sphere actually shows up, providing we enable the create objects param.

Is this a bug? I've had the same problem in the past with other projects and Arnold getting confused over whether the numbers in my file names are referring to frame numbers or file iterations. Sometimes, in an Arnold Driver object, I would have to fight the File Path parameter text box to change the # characters to numbers. i.e. I would hit backspace on # but it wouldn't get deleted.

Side note: Referring to step 1 - moving the sphere away from the origin: Bringing the procedural in shows that its bounding box is in the correct position in world space (off to the side like the original sphere) but the procedural object's axis is at the origin. Shouldn't the axis be at the center of the bounding box, similar to how the axis of the original sphere is at the center of itself?

assproceduralsbug
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Peter Horvath avatar image
Peter Horvath answered ·

It's on purpose actually and the plugin works like this since the first release. If you open a file which contains numbers then the plugin assumes it's from a sequence and replaces them with # characters. Opening the path again or correcting the value by typing does not do the replacement, allowing you to load just a single frame.

I may be able to make the logic a bit more clever.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Peter Horvath avatar image
Peter Horvath answered ·

On the side note, it's correct, the procedural is in the origo, it has it's own transformation matrix which is added to the content. That's by design.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.