Upbge: Upbge 0.3.0 - restore timer in the material node editor

Created on 18 Nov 2019  路  4Comments  路  Source: UPBGE/upbge

Is it possible to restore the timer node in the material node editor as the old versione of upbge ?

All 4 comments

idk if someone is interested to work on this but if you want there are several ways to use "time" in shader node editor.

  1. Python:

import bpy

material = bpy.data.materials["Material"]
node_tree = material.node_tree
nodes = node_tree.nodes
musgrave = nodes["Musgrave Texture"]
musgrave.inputs["Scale"].default_value += 0.1

I hope i remembered correctly the API.

  1. Action actuator.

In the timeline, on frame 1 press i on a value in shader notree.
Go to frame 30.
Change value and press i again.
Add an action actuator, and play Shader Nodtree action.

musgrave and a few others also have a 4d mode now*

you can set a time offset -> even make it loop

https://wiki.blender.org/wiki/User:OmarSquircleArt/GSoC2019/Final_User_Report

Thanks for the reply, i will try

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cederom picture cederom  路  7Comments

vlad0337187 picture vlad0337187  路  7Comments

IzaZed picture IzaZed  路  6Comments

IzaZed picture IzaZed  路  7Comments

EndSSgamesStudio picture EndSSgamesStudio  路  7Comments