dhessel Posted February 13, 2014 Share Posted February 13, 2014 I have a sub newtork called 'car_rig' that has a null inside named 'OUT_SIM the default output is named 'OUT''. Car_rig is connected to another sub network in the first input. From that subnet I want to object merge in the geo from 'OUT_SIM'. I have had a lot of trouble getting this to work, I tried using 'opinputpath(",", 0)' in the objects to merge field to test as I figured it should at least get me the geo from the 'OUT' node but no luck. How can I object merge the geo from 'OUT_SIM'? I am trying not to use any names for the sub network in the path as it is likely to change. Thanks. Quote Link to comment Share on other sites More sharing options...
kgoossens Posted February 13, 2014 Share Posted February 13, 2014 Hi David, can you add your scene, or an example scene of what you want to achieve? If you want to get the geo of another node you'll have to use "object merge" node. Quote Link to comment Share on other sites More sharing options...
dhessel Posted February 13, 2014 Author Share Posted February 13, 2014 (edited) opinputpath.hip Here is a sample file, I want to get the box from the first geometry subnet but I want to do it using the connection between subnet's not by name so it can change the connection to another subnet and it will still work. Edited February 13, 2014 by dhessel Quote Link to comment Share on other sites More sharing options...
kgoossens Posted February 13, 2014 Share Posted February 13, 2014 Okay there are a few thing you should change If you want to use an expression in a string operator you have to use backticks not single quotes. So use ` (key next to 1) instead of ' Only the expression needs to be placed between backticks. if you want to get the inputpath of the geonode then you have to go one level up so "." is checking the inputpath of the node the expression is in. What you need is the geo1 node. so that would be "../" so try this. `opinputpath("../",0)`/OUT_BOX If you MMB click on the Object1 label, left of the inputfield. You'll see the evaluation of the expression. Quote Link to comment Share on other sites More sharing options...
dhessel Posted February 13, 2014 Author Share Posted February 13, 2014 Thanks, I completely missed the back tick. That would explain why it looked like the expression wasn't even being evaluated. 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.