question

Michał Frątczak avatar image
Michał Frątczak asked ·

Writing mtoa translator with many ginstance nodes

Getting my feet wet with arnold translators.

For start I try to create exporter that would create many instances of another node (sphere for now).

I'm not sure how/where should I create and setup "ginstance" nodes. I have something working but it doesn't update correctly, and I don't know if what I do is optimal.

Can anybody point me to similar example or take a look at my minimal code ?

Here's code

https://pastebin.com/BgGTuh1x

Screengrab showing Update problems:

https://www.youtube.com/watch?v=s88Jk6t8QsI&feature=youtu.be

thanks for any tips

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.

Ashley Handscomb Retallack avatar image
Ashley Handscomb Retallack answered ·

This is the only official Arnold development forum really. And the docs for writing extensions for MtoA have now been updated: https://docs.arnoldrenderer.com/x/ow1kAg

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.

Ashley Handscomb Retallack avatar image
Ashley Handscomb Retallack answered ·

Here's an example of your translator with some fixes, you need to give the instances a name so they can be cleared on refresh. There is also no need for an Update function now as it's all taken care of by the export and update method.

I'll look in to updating the tutorials on the MtoA docs as well.

sphereinstancertranslator.zip


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.

Michał Frątczak avatar image
Michał Frątczak answered ·

Thanks @Ashley Handscomb Retallack !

All is working OK now and I can go on with next challenges.

Can you point me to any arnold-dev related resources? Wiki, example plugins, any opensource projects, etc. ?

Is there an official arnold-dev forum where I could ask api specific questions ?

thanks

-michal

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.

Ashley Handscomb Retallack avatar image
Ashley Handscomb Retallack answered ·

It looks like the docs for creating extensions needs updating. A lot of this has changed for MtoA 2.x.x, I will see what I can mock up for you and add it to here.

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.