Hi folks,
what I am trying is to create and map a shading node like when you press the "map" button on an attribute in the AE - but in my case from a custom UI button and to a node/attribute specified by a variable. Also in this case it's concerning bump mapping, so additionally and dependend on the texture the user chooses in the "create render node" window, I need a bump2D/3D node to automatically be created and inserted (just like it works by default on every shaders bump slot).
Trying to trace down in the script editor what happens in such case wasn't much of success. Basically
CODE
createRenderNode (-allWithTexturesUp "defaultNavigation -connectToExisting -destination blinn2.normalCamera -source %node" "")
is called, which then seems to carry out everything else. But if I call only that line in my script, it directly connects and doesn't create the bump utility node.
The "defaultNavigation" command seems to play an important role here - I don't really understand why and how.
regards
Felix