leytonian Posted January 5, 2018 Share Posted January 5, 2018 Hi How do I return values in a channel like those we can with simple hscript commands? For instance, I wan to modify the file path of a file sop with inline code. I know I can modify it with global scripts or with a python sop by setting the parms directly but i cant seem to figure out how to do that inline. thanks Quote Link to comment Share on other sites More sharing options...
garf Posted January 5, 2018 Share Posted January 5, 2018 (edited) Stick a return statement at the end to return your value file= r'C:\myFolder\myFile.bgeo.sc' return file Edited January 5, 2018 by garf Quote Link to comment Share on other sites More sharing options...
BO RAIN Posted January 5, 2018 Share Posted January 5, 2018 like this? Quote Link to comment Share on other sites More sharing options...
leytonian Posted January 5, 2018 Author Share Posted January 5, 2018 Thanks for the replies. @Garf I would have never thought that I could just use a return without function. I actually tried a main function with a return before as king here. Thanks for the tip. @BO RAIN I cant exactly tell how your tool works but basically I am trying to export all groups as separate meshed. I can actaully do that using a python sop with a file saver inside a foreach loop. I was just trying to just even bypass an extra node if possible 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.