Get Absolute Override name, attribute and value via python?

Get Absolute Override name, attribute and value via python?

carterh26AHQ
Explorer Explorer
217 Views
0 Replies
Message 1 of 1

Get Absolute Override name, attribute and value via python?

carterh26AHQ
Explorer
Explorer

Hello all, I know how to query the AbsoluteOverride but I am having problems with how to get the attribute and value of the said override?

 

here is what I have so far

layers = rs.getRenderLayers()
for layer in layers:
	currentLayer = "Master"
	print "renderLayer is ",layer.name()
	if layer.name()==currentLayer:
		print layer.name(),'layer found'
		groups = layer.getGroups()
		for thisGroup in groups:
			if "Floorplan_Details" in thisGroup.name():
				print "Group name is ",thisGroup.name()
				thisChild = thisGroup.getChildren()
				for child in thisChild:
					print child.name()
					if "Styling" in child.name():
						print 'copy this styling'
						thisOR = child.getOverrides()
						for override in thisOR:
							print '****', override.attributeName()
							print 'get the override values here!'
						
					break
				
		break		

 

Overrides.jpg

0 Likes
218 Views
0 Replies
Replies (0)