So I’m trying to create a custom event function for turning on visibility of items in an array. I want it to have an input param as a float value - based on this value, will remap it from 360 based on number of planes in the array. Based on the remap value, it will get the array index and turn that card visibility on. Only thing is I don’t know where to start with this as I’ve never done anything like it before. Any help would be appreciated.
Hi Jason,
I’d be curious to know more about the ‘big picture’ for this mechanic/feature - what will it be used for?
Let us know how far you get, but to get you started I want to point out ‘Map Range’ , ‘For Each Loop’ (or for loop if you want to show/hide certain segments of planes) and if you drag out from an array you can get the ‘Length’ of it. (To be used with remapping)
Another important tip - If you create your Plane inside of a Blueprint actor, you can create a Variable Type of that BP (It’s in the dropdown with bool int etc, just start typing the BP’s name) and then operate on an array of Blueprints. (Could be useful for adding extra functions in the BP)
Cheers
Thanks for the reply.
So I work in VP and the use case for this is to turn the visibility on and off for planes in an array that are instanced along a spline. These planes have an emissive material and will be use to control our dmx pixel map which will control the lights around our stage. It will also be controlled by monogram console.
(pics below to show where I’m at so far)
This is in the actor BP of the spline. Only thing is I get 0 when printing the value from the trancate which should be controlling each plane in the array. Not sure how the get the correct values to set the visibility.
This pic just shows the set up in the monogram BP
This pic just show the the planes along the spline. Want to control each of the planes visibility
Cool, thanks for the pics,
So what you’re looking for is a way to turn them on/off in sequence right? Like you have a spinnable wheel on monogram console thing you’re hooking up to this circle? (As opposed to toggling specific planes or groups of planes)
Focusing on the truncate returning zero - DMXLights is set? (I think getting the length of ‘Planes’ array might also be good to feed into that (and then tweak for ‘off by 1’ errors)
Exactly that yeah. Turn the planes on/off from where I’m touching the wheel.
DMXLights is set to 71 (relates to number of lights surrounding the stage.) and that is the number that controls how many planes are being instanced along the circle spline. I know that the planes are being added to the array as it prints out the correct number. Will try to get the length of the planes array