Clarisse Python (get / set values)

to get a value (even if its a float, string OR a vector.x ) it should be grabbed like this:

ix.get_item(‘project://scene/sphere.scale’)[0]

another approach to get value:

x = ix.selection
x[0].attrs.filename[0]

ix.get_item(‘project://scene/girl_B_minijeep_obj.translate’)[0]


to set a value:

ix.cmds.SetValue(‘project://scene/sphere.scale[1]’, [‘1.2’])

another approaches to set value:

x = ix.selection
x[0].attrs.filename[0] = ‘D:/All_Projects/assets/girl_B.obj’

ix.get_item(‘project://scene/girl_B_obj.translate’)[0] = ’20’

Leave a Reply

Your email address will not be published. Required fields are marked *