mimo8
11-21-2010, 05:46 PM
Hello,
I am just trying to build something like renderlayers in cinema using Xpresso, but my xpresso and coffee scripting skills are too limited to manage it.
But I know very well what I need and how it should be done, so any help would be highly aprechiated. Here are the tasks I want to do:
1. Naming
I am using a Xref node to load and quickly exchange objets in the scene.
The name of the original file loaded through the Xref node should be in the render output format.
So lets say the objects name is "23charly" the rendering should be namend:
object_23charly_beauty_0000.exr
The orginal file is called "23charly.c4d" I can manage to get this name into the rendersettings output port, so I am getting "23charly.c4d" as a filename.
I do so by connecting the filename port from the Xref-node to the File... port of the rendersettings node.
What I am desperately searching now is an option to do some renaming in here,
so to kill the 4 last digits and ad "object_" in front and "_beauty_" at the end.
I believe this could be an easy task for anyone familiar with scripting, but for me I just wouldnt know how to solve it.
2.RenderSettings
I have several rendersettings saved with this scene.
So I have one rendersetting creating a beauty pass, another for a depthpass, another for normalmaps. I dont want to render this passes at one time using multipasses for certain reasons. (objects have to be hidden for those passes, normalmaps have to be rendered at double filesize to have good antialiasing).
Now I would love to create a switch, triggering between those rendersetting.
I just cannot find a port letting me adress those settings.
For sure the output name should change from "object_23charly_beauty_0000exr" to "object_23charly_normal_000.exr", but this should be easy once knowing how to do the renaming as asked above.
Perhaps there are some more little tasks I would like to get into this renderlayer-xpresso-switch but the two tasks above are certainly the most crucial points.
Thnx in advance for any help,
also for links to xpresso/coffee tutorials getting me closer to a solutions.
cheers
*m
I am just trying to build something like renderlayers in cinema using Xpresso, but my xpresso and coffee scripting skills are too limited to manage it.
But I know very well what I need and how it should be done, so any help would be highly aprechiated. Here are the tasks I want to do:
1. Naming
I am using a Xref node to load and quickly exchange objets in the scene.
The name of the original file loaded through the Xref node should be in the render output format.
So lets say the objects name is "23charly" the rendering should be namend:
object_23charly_beauty_0000.exr
The orginal file is called "23charly.c4d" I can manage to get this name into the rendersettings output port, so I am getting "23charly.c4d" as a filename.
I do so by connecting the filename port from the Xref-node to the File... port of the rendersettings node.
What I am desperately searching now is an option to do some renaming in here,
so to kill the 4 last digits and ad "object_" in front and "_beauty_" at the end.
I believe this could be an easy task for anyone familiar with scripting, but for me I just wouldnt know how to solve it.
2.RenderSettings
I have several rendersettings saved with this scene.
So I have one rendersetting creating a beauty pass, another for a depthpass, another for normalmaps. I dont want to render this passes at one time using multipasses for certain reasons. (objects have to be hidden for those passes, normalmaps have to be rendered at double filesize to have good antialiasing).
Now I would love to create a switch, triggering between those rendersetting.
I just cannot find a port letting me adress those settings.
For sure the output name should change from "object_23charly_beauty_0000exr" to "object_23charly_normal_000.exr", but this should be easy once knowing how to do the renaming as asked above.
Perhaps there are some more little tasks I would like to get into this renderlayer-xpresso-switch but the two tasks above are certainly the most crucial points.
Thnx in advance for any help,
also for links to xpresso/coffee tutorials getting me closer to a solutions.
cheers
*m
