Activity › Forums › Maxon Cinema 4D › Change Displacement layer seed with Xpresso
-
Change Displacement layer seed with Xpresso
Posted by Mike Lynam on January 26, 2016 at 6:57 pmI’ve got a cool little stop motion rig set up and I’ve only got one more item to tackle. I need a parameter to reference the appropriate material. The parameter is the seed of a noise layer in the displacement channel. The displacement works (animates) but I don’t know how to link it to the correct material in Xpresso.
Mike Lynam replied 10 years, 7 months ago 2 Members · 6 Replies -
6 Replies
-
Brian Jones
January 27, 2016 at 8:48 amThe subject says change layer seed with xpresso but you are asking to change a material according to the seed. Which is the control? Put on a material and the displacement changes or change the displacement and the material changes? Or neither?
-
Mike Lynam
January 27, 2016 at 2:31 pmPut on a new material and a randomly generated number affects that materials displacement. Specifically a noise layer’s seed in the displacement channel. It is animated based on user input (rate of change).
In thinking I may have to go with Python to get this to work. Since material nodes can’t be relative. But I was thinking maybe someone would know a way around it.
-
Brian Jones
January 28, 2016 at 4:28 amexpresso wants to calculate every frame, it might be possible but a python plugin that, given a material as input, generates a displacement (or just sets the seed) would be more what you’re after. Not that I know enough python to be a help…
-
Mike Lynam
January 28, 2016 at 4:09 pmYeah. I can control the seed of the displacement layer with Xpresso but I’m unable to change the Material it’s linked to without physically dragging the the layer icon of the new material into the node updating the link. Wow that’s sounds even more confusing when I type it out. haha. I’ll try investigating into using Python. I’m assuming there’s a way for Python to interact with Xpresso. Thanks Brian!
-
Brian Jones
January 28, 2016 at 4:19 pmI wouldn’t think you’d want python to interact with xpresso in this case, only with the material
-
Mike Lynam
January 28, 2016 at 4:41 pmWell a random number is being generated in Xpresso based on user input. That random number needs to affect the seed of the current material applied to the object. The user selects a frequency and the random number changes the seed based on that frequency.
Reply to this Discussion! Login or Sign Up