Hi,
We would like to set the company project, Seq/shot/Ver, Scene, job type and division parameters in the submitter (and render them uneditable) via a python script when submitting a job from Houdini Solaris. We have various folder structures for different project types and we cannot rely on the number of parts in a path only.
Where should I put that script if I don't want it to be overwritten every time there is an update to RR and how do I insert it in the submission process?
I saw this example in the documentation:
import htorr
rrnode = htorr.node('/out/mantra1')
print(rrnode.jobs())
rrnode.jobs().submit(gui=True)
I would need to know how to set the values for the parameters listed above before calling submit(). I tried
jobs = rrnode.jobs
jobs.add_param_override("CustomSceneName", "1~mySceneName")
rrnode.jobs().submit(gui=True)
That didn't work.
Thanks!
F
Hi
> I don't want it to be overwritten every time there
If you change a submission plugin, then the update does not overwrite it.
A file will be updated if it is the same as in subfolder rr_original
(If you see this folder in some place in RR, then you know these files will not be overwritten on change)
But: If you change it, you have to take care to update the file yourself.
RR\updateinfo.txt states the files it has not updated.
So you do not need to do that on every update.
I recommend to duplicate/rename the file you want to change to .txt.
In this case you can compare it to an updated rr_original
and you can apply the fixes/changes to your file as well.
A git version control might help as well. (See Git files in RR root)
> We have various folder structures for different project types and we cannot rely on the number of parts in a path only
If you have the same issue with all apps, please note the on-submission script “calcSeqShotVersion” in the rrSubmitter.
It is an example to set the Seq/Shot/Version at submission and can be used to set the company project or scene display name as well.
BUT: It runs within the rrSubmitter and while it can access the same environment as you started Houdini with, you cannot browse the scene itself for data.
> I would need to know how to set the values for the parameters listed above before calling submit().
I will ask our Houdini dev and/or take a look myself.
I only know that there are function that collect data for a job.
And then this data is merged into a job that can be submitted.
So settings custom vars it is not be the same function as the functions used while parsing ROPs.
regards,
Holger Schönberger
Craftsman and Keeper of the Royal Render Flame
Please use the rrKnights Tavern
or our support system for new questions.
The calcSeqShotVersion script that runs in the submitter looks like what I'm looking for. I only need the scene path to make all decisions so it should be good. I'll try something with this.
Thanks!
F
--
If you reply, the message is send to the user group which is sufficient and desired.
("Reply All" might send the message twice to the last author which is not required.
Replying "in private" prevents other users to see the answers and might not be seen by the single receiver if he has email rules in place.
If you want to talk to us in private, please use support (at) RoyalRender instead)
---
You received this message because you are subscribed to the Google Groups "Royal Render Knights Tavern" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rrKnights+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rrKnights/000001dc5677%24adf7fe00%2409e7fa00%24%40RoyalRender.de.
How do we get the on-submission script to be triggered? I made a new script for our needs but it's not run when I submit something. DO I have to put it somewhere special?
Thanks!
F
Ok nevermind, I got it. It has to be set as a default in one of the config files.
F
To view this discussion visit https://groups.google.com/d/msgid/rrKnights/2771cf26-e4be-4773-9c98-17d27227bf90%40gmail.com.
Hi
> I got it. It has to be set as a default in one of the config files.
Yes, either in the Submitter Defaults files for all/user/project/machine (rrSubmitter Menu)
or in the render config files for 3D/Comp/Archive/per-Render-App, ….