Enable/disable objects within .ass file

Enable/disable objects within .ass file

t_krajcovic
Explorer Explorer
404 Views
3 Replies
Message 1 of 4

Enable/disable objects within .ass file

t_krajcovic
Explorer
Explorer

Hi, I must be overlooking something simple, but how do I override object (or light) visibility in an .ass file? E.g. there's a polymesh I want to disable in the Arnold procedural.

Thanks,

0 Likes
Accepted solutions (1)
405 Views
3 Replies
Replies (3)
Message 2 of 4

peter_horvath
Autodesk
Autodesk
Accepted solution

In general, you can use operators to modify nodes within a procedural, specifically the set_parameter operator: https://help.autodesk.com/view/ARNOL/ENU/?guid=arnold_for_cinema_4d_ci_Operator_Tutorials_ci_Introdu...

 

The simplest workflow is to setup parameter overrides on the Overrides tab of the Arnold Procedural object. See: https://help.autodesk.com/view/ARNOL/ENU/?guid=arnold_for_cinema_4d_ci_Operator_Tutorials_ci_Procedu...

 

To hide a polymesh, you have to select it (click on the small button next to the Selection field and select the polymesh from the dialog) and set 'visibility = 0'.

peter_horvath_0-1678126270491.png

To hide a light, you have to set 'intensity = 0'.


// Peter Horvath
// C4DtoA developer
0 Likes
Message 3 of 4

t_krajcovic
Explorer
Explorer

Thanks a lot, that's exactly what I was looking for!

Just one follow-up question, is there a way to manually select USD components in the IPR window (like you can do in Maya)? Imagine you have a USD that used to be a CAD which has hundreds of poly objects, each called mesh_something, so picking them in the Selection dialog is not really an option.

0 Likes
Message 4 of 4

peter_horvath
Autodesk
Autodesk

There's no selection tool, like in Maya, sorry. You can use a selection expression to select multiple objects with the same prefix or within a group, but of course you have to setup your asset accordingly beforehand.


// Peter Horvath
// C4DtoA developer
0 Likes