Environment variables changing slash direction

19 views
Skip to first unread message

Francois Kruger

unread,
Apr 28, 2022, 6:45:22 AM4/28/22
to Royal Render Knights Tavern
Hi,

Not sure if this is a bug or not. But we are submitting a value in the environment variables, and the slashes seem to get turned around as soon as Royal Render loads them.

For example, we submit this "CAM" key with a value of "/obj/cam1" in a job.xml like this:
<rrEnvLine>
CAM=/obj/cam1
</rrEnvLine>

And then the log in rrControl is this:
S 9| >set "CAM=\obj\cam1"

This is under the section:
S 0| ++++++++++++ Environment Variables Done +++++++++++++++++++ 

This is for a Houdini Arnold job, if that matters.

Thanks for the help in advance,
Francois Kruger     

RR, Schoenberger

unread,
Apr 28, 2022, 9:43:13 AM4/28/22
to rrKn...@googlegroups.com

Hi

 

This is a feature.

But there is a workaround, please see last column with the info about [BSlashConvert]

http://www.royalrender.de/help/RenderEnvironment.html

 

 

 

regards,
Holger Schönberger

 

 

RR, Schoenberger

unread,
Apr 28, 2022, 9:56:15 AM4/28/22
to rrKn...@googlegroups.com

PS:
Why don’t you use <Camera> for the camera of the job?

RR switches the camera at render time to it.

 

 

regards,
Holger Schönberger

 

Please use the rrKnights Tavern
or our support system for new questions.

Francois Kruger

unread,
Apr 28, 2022, 10:30:03 AM4/28/22
to Royal Render Knights Tavern
Ah ok! Well that worked for the slashes. Weird thing though, it is now creating two entries for this CAM key. Any idea why that is happening? It doesn't really break anything, it just seems wrong.

My key is getting supplied like this:
(other keys)...%%[BSlashConvert] CAM=/obj/cam1%%...(other keys)

And here is the double log from rrControl:
Screenshot 2022-04-28 at 16.27.45.png

Reason why I can't just use the <Camera> is because we are using the $CAM in many other places. It's not just the export rop. But regardless, [BSlashConvert] seems to do what I need.

Thanks!
Francois Kruger

RR, Schoenberger

unread,
Apr 29, 2022, 2:42:38 AM4/29/22
to rrKn...@googlegroups.com

The BSlashConvert does work with variables only on Windows.

So the first line sets %CAM% tot he value.

The second line converts backslashes and overwrites the variable.

Reply all
Reply to author
Forward
0 new messages