TonyL Posted March 24, 2010 Share Posted March 24, 2010 I'm sure this is a basic question, but I created an attribute that I don't know how to access in Python. I used an AttribCreate SOP to create a detail variable called LMO. In HScript I could just use it in other SOPs as in "x = $LMO", or "$LMO/2", but that's not working for me in Python. What's the right syntax for accessing this attribute using Python? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted March 24, 2010 Share Posted March 24, 2010 I'm sure this is a basic question, but I created an attribute that I don't know how to access in Python. I used an AttribCreate SOP to create a detail variable called LMO. In HScript I could just use it in other SOPs as in "x = $LMO", or "$LMO/2", but that's not working for me in Python. What's the right syntax for accessing this attribute using Python? Thanks hou.lvar() ? Quote Link to comment Share on other sites More sharing options...
TonyL Posted March 24, 2010 Author Share Posted March 24, 2010 hou.lvar() ? That works, thanks! 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.