Custom script for rendering?

Custom script for rendering?

k_hendriksHGY4Z
Observer Observer
192 Views
4 Replies
Message 1 of 5

Custom script for rendering?

k_hendriksHGY4Z
Observer
Observer

I want to render an object. In the environment settings i can set the position (-180 degrees to 180 degrees).
Every render takes about 10 minutes time and i want to create an animation that renders every x degrees of environment position. (to get a light movement over my device)

 

Is this possible with a script or any other option?
I tried with a python script but i can't select the script in the Render menu and also i don't exactly know how to change the environment position in an script, and then render.

 

Thanks in advance!

0 Likes
193 Views
4 Replies
Replies (4)
Message 2 of 5

kandennti
Mentor
Mentor

Hi @k_hendriksHGY4Z -san.

Two years ago, but I have tried it.
It is all in Japanese, but I think the code is helpful.
https://kantoku.hatenablog.com/entry/2023/06/02/093654 

The script just creates a rendered jpeg. gif animation was done using a web service.

If you want to run the script from the rendering, you should be able to install and run the add-in here in advance and it will add the tabs.
https://github.com/kantoku-code/Fusion360_AddScriptsManagerCommand 

0 Likes
Message 3 of 5

k_hendriksHGY4Z
Observer
Observer

Thank you! I will look into that

0 Likes
Message 4 of 5

BrianEkins
Mentor
Mentor

I would look at this sample script and this API property. 

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-AC5A8134-2634-4077-9BD5-16B2945CBFDD

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-58E944C4-895B-40BA-959A-14A17601E14E

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 5 of 5

k_hendriksHGY4Z
Observer
Observer

I got it "working", unfortunately, i can't find how to rotate the environment position but i rotate the object now and render it per frame.

 

Edit:
I just saw that you posted this:

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-58E944C4-895B-40BA-959A-14A17601E14E

 

I will try to see if i can use this

0 Likes