Notifications
Clear all

[Closed] Offset Strobing

  1. My end effect will be multiple cylinders with a strobe goign down the length of them. I want to pull this off with an animated UVW Gizmo so I don’ thave to have multiple materials. Its a simple gradient material.

  2. The strobe will have to speed up over time. To manager this, I’ve created a controller object (a rectangle) with a custom attribute.This goes from 1 to 100. This is the speed of the strobe.

  3. Each cylinder has an instanced UVW Mapping modifier with a script controller to the gizmo position.z that reads off of the custom strobe attribute value. This results in all my gizmos strobing perfectly. Too uniform. I need to offset the z position by a static value that is unique or near unique to the node, such as node.handle. However, I cannot call a discreet node by name because the modifier is instanced and in the preservation of easy control in the future I’d like to keep it that way.

Q: Is there a way to get the node of a modifier from within the modifier’s script (something like this.parent). Is there a better way I could grab a unique offset for each node?


Edit: I found UVW Xform, which allows me to offset. If someone knows a scripting solution I’d still like to hear it.