I’m trying to get a handle on nodes & have run across a few barriers.
I’ve found the Print node but am unable to get it to print out anything. Perhaps I’m looking in the wrong place though. I was expecting to see output in the console when running the game. How can i see print nodes’ output?
Is there a node that can be used to quit the game and close the game window?
Finally, where can properties of objects accessed via “get/set property” nodes be created?
Alright, so I figured out the problem causing my first issue/question:
- Print nodes only print when running in the viewport play-mode. Running the same game via ‘f5’, print seems to do nothing. Hopefully this is just something that’s overlooked for now and not a ‘feature’ (is this the case @lubos?).
The other two questions I still don’t have any leads on. Are there examples that show a quit game or get/set property via node setups? So far I haven’t come across any in the armory example content.
Hi @Dorsto, sorry about the late reply -
- Print node should write to the system console (Window - Toggle System Console on Windows). It looks like it’s working fine on MacOS/Linux but not on Windows - looking for a fix.
I am also thinking of enabling the print node to display text directly in player window, when running from editor/debug - so there is no need to switch windows.
- No dedicated node to achieve this yet, adding that in!
(Right now you would have to do the native function call manually, but even Call Static Function node is unfortunately broken in Build 10 so git version is needed…eh Will handle it properly in Build 11.)
- Get/Set Property nodes are aimed to access native properties of objects(which can be browsed in api or github). It is probably more useful for testing when implementing some new node functionality, otherwise using is it quite messy.
Thanks for the answers, @lubos!
My Linux version was acting just like the windows one iirc. Viewport run = OK, F5 run = No Good
I’ll wait for Build 11 then as I’ve not had much luck in the past compiling Blender myself. The image is helpful though.
I was able to get a property working thanks to your screenshot but have noticed something that seems weird. The following image shows my network. Its just supposed to count up from 0 and pretty much works except it always skips over 1 and goes straight to 2 the first time the key is pressed. Am I doing something wrong with this setup?
One more question: Is there a way to set a boolean to its opposite via nodes? So far I’ve come up short.
Thanks again for the help!
Thanks for the assistance!
A few comments:
- For others’/my own future reference: properties needs to be initiated before they can be tweaked it seems (otherwise ‘NaN’ just gets printed), otherwise your networks work great! One small quirk I’ve observed though is that on linux the initial “count” variable (in this case 0) gets printed when the game first starts even before the key is even pressed. Windows seems to function as expected though.
- You were indeed correct about the “not” node missing from the release of build 10. Updating via all that git stuff did the trick (in this case the whole kha git updating process was also necessary).
A few other questions (hopefully its OK to just tack them on this thread):
5) Are frames/groups for game nodes coming?
2017/05/05 Edit: Oops, I see the frame/grouping stuff works just fine!
- Have you considered adding something like Sverchok’s “Wifi in/out” nodes? They seem like they might be of great use for more complicated setups (in fact, I wish material nodes & other Blender node systems had something like them as well). If you’re unsure what I’m talking about, check out this post from rightclickselect.com down under the heading “A working example: Sverchok”.
Thanks again @lubos!
i am using the Linksys EA6900 router and having the canon printer. i set up the connection with the help of Linksys Support but the message appears" router not found". i am unable to connect with the router. what to do to solve this issue?
Sorry @riotaylor, the print node is for printing to the console, not to an actual printer.