Anatol Posted May 24, 2016 Share Posted May 24, 2016 Hi guys. I have a point with an attribute @mesh_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file? Quote Link to comment Share on other sites More sharing options...
Atom Posted May 25, 2016 Share Posted May 25, 2016 (edited) What you can do is place a Python node before the file node and simply assign a string to the file parameter of the file node. file_node = hou.node('/obj/geo1/file1') file_node.parm("file").set("/Users/artist/Desktop/cell_sequence/ap_cell_sequence_001.obj") You may not even have points before a file node, if you think about it. Edited May 25, 2016 by Atom Quote Link to comment Share on other sites More sharing options...
Skybar Posted May 25, 2016 Share Posted May 25, 2016 Use point/prim/detail expression. Something like `details("../null1", "attributename")`. Using "details" instead of "detail" returns a string, it's the same for the point and prim expressions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.