question

Marc Angele avatar image
Marc Angele asked ·

c4dtoa exr driver - custom attributes

hey guys,

currently, i'm trying to write some custom attributes in a arnold driver, but have no idea how the syntax should be. could someone help me with that?

in maya it looks very easy. there are three options: one for the name of the metadata, one for the type of value and one for the value it self. but in cinema4d is just one option.

and then i would like to add some information via xpresso to this attributes, but i can't find any input.

finally, the idea is to transport some camera information to nuke.

it would be great if someone have a solution to this.

thanks,

marc

c4dtoa
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 ·

The fix is now available in 2.3.1.3.

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.

Marc Angele avatar image
Marc Angele answered ·

thank you! your support is awesome!

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 ·

Hmm, seems like a problem in the export code. I will probably make a new bugfix release with this fix this week.

1 comment 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.

Here's a wip build with the fix, please give it a go if you have some time:

https://safeshare.solidangle.com/index.php/s/ljxlVTXMM3eaGLz

password: c4dtoawip

0 Likes 0 · ·
Marc Angele avatar image
Marc Angele answered ·

hello peter,

i've been testing the last day a lot and have not gotten it to work.

even the simplest thing, as you described in the documetation, did not work:

INT myattr 1

am i doing something wrong or have I missed something?

thank you a lot!

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 ·

Sure, I'll definitely edit the docs.

For the python script look at the example here:

https://support.solidangle.com/display/A5AFCUG/Custom+GUI+%7C+Python#CustomGUI|Python-Arrays

You have to call SetParameter() with a sublevel to change the number of items and the values in the array.

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.

Marc Angele avatar image
Marc Angele answered ·

hey peter,

thank you for your quick anwser! this is very cool, here in the forum!

yes i already expected that i have to do that with python, but I did not know about the format.

i thing it's oke how it works now. you don't have to change the UI, but maby it is good to write some comment in the user guide.

thanks again,

marc.

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 ·

Indeed, the UI is not really user friendly at the moment. I'm gonna improve it in a future release.

The format is [type] [name] [value], where [type] can be INT, FLOAT, VECTOR2, MATRIX or STRING.

You won't be able to use Xpresso on this parameter because it uses a custom GUI widget. You can maybe write a little script in a Python tag to modify the value.

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.