Jump to content

Point String Attribute to a FILE_NAME in a FILE SOP


Recommended Posts

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?

Link to comment
Share on other sites

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 by Atom
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...