How to add arnold override attributes to objectSets using python or mel

How to add arnold override attributes to objectSets using python or mel

Adrian_Tsang
Not applicable
1,110 Views
2 Replies
Message 1 of 3

How to add arnold override attributes to objectSets using python or mel

Adrian_Tsang
Not applicable

Does anyone know how to add arnold overrides in script? (the ones you get when you optionally add overrides to objectSets specifically in this case), aiSubdivType for example. I'm looking through the mota package and I've found the attribute editor templates but I;m having trouble digging out what I need to be able to create those attributes without pressing the buttons.

0 Likes
1,111 Views
2 Replies
Replies (2)
Message 2 of 3

Christoph_Schaedl
Mentor
Mentor

Same question.

How do i add those extra attributes to an selection set with Python.?

4577-aovs.jpg

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 3 of 3

Stephen.Blair
Community Manager
Community Manager

Ultimately it's just addAttr.
If you save your scene as MA:

createNode objectSet -n "set1";
	rename -uid "79DDEA53-4BC2-E395-2E6F-1F8A86E10A58";
	addAttr -ci true -sn "ai_disp_autobump" -ln "aiDispAutobump" -nn "Ai Disp Autobump" 
		-ct "arnold" -min 0 -max 1 -at "bool";
	setAttr ".ihi" 0;
	setAttr -s 4 ".dsm";


// Stephen Blair
// Arnold Renderer Support