2
$\begingroup$

I have this group input that generates a "lens flare":

Node Tree

I would like to know if it is possible to 'parent' the location of the flare to the sphere at the bottom of the image. I do not want to use any scripts [yet]. Any help would be appreciated. :)

[EDIT]

My menu options:

Options

Blender Render vs. Cycles [Help!]

enter image description here

$\endgroup$
0
$\begingroup$

While you don't want to use scripts, I think you will have to use a driver to achieve what you want. Drivers can be a lot simpler than python scripts.

I'm thinking you want to alter the X value of the translate node. With your cursor over the X value, either press D or right click and select Add Driver, the value will then be highlighted in purple. The driver details are available in the graph editor, change F-Curve to Drivers in the graph editor header and select the value on the left, press N to show the properties panel on the right.

enter image description here

In this example the variable is named getVal and it will be equal to the X location of the object called Sphere. The scripted expression is set to getVal * 10, which means the X value of the translate node will be set to the Sphere's X location times 10.

$\endgroup$
2
$\begingroup$

Not sure if its what your looking for but the [Input > Object Info] node allows access to the vector location of the object in the current context...

from there basic maths should magic you up some results

best of luck =)

screenie =P

enter image description here

Here are some links to some decent youtube channels that have helped me learn cycles

https://www.youtube.com/user/AndrewPPrice

https://www.youtube.com/user/blendercookie

https://www.youtube.com/user/tutor4u

and of coarse blender.stackexchange is here for specific quesions

$\endgroup$
18
  • $\begingroup$ Didn't see the Object Info node... $\endgroup$ – ghipkins Mar 27 '14 at 0:21
  • $\begingroup$ what version of blender are you using? $\endgroup$ – Konner Rasmussen Mar 27 '14 at 0:22
  • $\begingroup$ 2.70 (Added this text to post the comment) $\endgroup$ – ghipkins Mar 27 '14 at 0:23
  • $\begingroup$ I am using the regular Blender Render, by the way $\endgroup$ – ghipkins Mar 27 '14 at 0:24
  • $\begingroup$ oh... my bad... i have no idea then... im sorry o.O $\endgroup$ – Konner Rasmussen Mar 27 '14 at 0:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.