Hello everyone,
here you have a script to make animations with "V-Ray for Rhino" plugin, using materials in .vismat or .vrmat formats.
My thanks and appreciation to Pieter Segeren for helping me to polish the script and to Matt Newberg for his advice. Matt has just published (a few minutes before this post) the .dll of VRay for Rhino in .NET, you can find it here. Due to I already got what I wanted, I will not continue with this script. But the door is open to a much deeper code, as well as a component for creating materials or for settings of V-Ray.
Enjoy it :)
Nick Tyrer
Dude, you are on a roll recently! Keep it up
note: pretty bizarre behaviour that timer needs to be in foreground.
May 28, 2015
Yevgeny Koramblyum
Thanks for posting! This would be a great tool. Unfortunately, I get this in the log:
0. error: Conversion from type 'Object()' to type 'String()' is not valid. (line: 0)
any ideas?
Jun 2, 2015
chrisk
Hi Daniel,
Thanks for this script! Two questions:
- Even though I refer the path to a vismat file, it renders grey. Any suggestions?
- Is there an easy way to implement a dynamic change in the selected materials (such as it's self-illumination or opacity)? In my script I simulate changing light conditions by changing the color from yellow to black in GH. Now I need to find a way to render this effect :) (possiblity with light souces that change in brightness)
thx
Jul 19, 2015
Daniel González Abalde
Hi Chrisk,
1. Take a look at the output, if it says that the material is not applied, try to first load manually the material in the material editor of vray.
2. I have not dug anything about custom vismat, but can be done from code... I made a change in the script to allow lights, but is not tested at all (so not updated it here), but you can try it, find the file in the comments:
http://www.grasshopper3d.com/forum/topics/rendered-animation-with-m...
Jul 19, 2015
Maria-89
Hi Daniel,
Thanks again for your great work!
I created a rotating building during a day. I used your definition with lighting.
The thing is, the shadow is not rotating, it stays on the same position. How can I solve this?
Another question, I would like to use the sun as a light. So the intensity of the light changes over time. Do you know how to do this?
Thanks in advance!
Aug 20, 2015
Kim hauer
Fantastic! Ive been waiting to do that in Key Shot :(
Oct 10, 2015
Andy Charles
Hey Guys, I am trying to get this Vray animation script to plug into a slider!!
ie. so instead of animating the list items, it animates slider items.
I can't figure it out..
Can anyone help?
Apr 6, 2016
Andy Charles
Also, can anyone help as to how to change the code to output .jpg files as well????
Apr 6, 2016
GuangYang
thank you for your selflessly sharing,i learn a lot from your code!
Sep 28, 2016
mohamadmahdi
Hi Daniel
I`ve just wanted to use your definition but it didn`t work out properly. Actually the problem is in the last component that is the VBscript. Everytime I run the defenition, I face to this error in the end:
0. error: Value cannot be null.
Parameter name: source (line: 0)
Could you help me get through it?
Jun 3, 2017
ricardo weissenberg
I'm getting the same error than mohamadmahdi. Can you help us?
Sep 12, 2017