Isotropix Forums

Edit a file reference after creating

Clarisse Scripting related topics

Edit a file reference after creating

Unread postby luke » Wed Jun 14, 2017 5:50 pm

I would like to create a reference and then immediately assign a custom attribute to it. I can create the reference easy enough as such:

Code: Select all
ix.cmds.CreateFileReference("project://scene", [<path to reference>])


But I am not sure how to find/access the newly created reference afterwards to set the custom attribute.

I would also like to iterate over all the references in my project and check the value of my attribute. Can you show me how to do this as well?

Thanks in advance
luke
 
Posts: 19
Joined: Fri Jan 27, 2017 11:51 pm

Re: Edit a file reference after creating

Unread postby luke » Wed Jun 14, 2017 8:31 pm

After posting this, I learned that CreateFileReference returns the object it created, so that part of my question is solved :)

I would still like to know the best way to iterate over all contexts in the scene.
luke
 
Posts: 19
Joined: Fri Jan 27, 2017 11:51 pm


Return to Scripting