Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2 REPLIES 2
Reply
Message 1 of 3
Adrian_Tsang
621 Views, 2 Replies

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

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.

2 REPLIES 2
Message 2 of 3

Same question.

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

4577-aovs.jpg

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

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report