BryanCrotaz / blender-artnet

Blender script to push artnet data to Evee lights
GNU General Public License v3.0
37 stars 8 forks source link

Spot Rotation #8

Closed Atreyus86 closed 3 years ago

Atreyus86 commented 3 years ago

is it possible to block the refresh of a value that you don't want to be changed? for example when I have the moving heads in a horizontal position I need to turn the spots on the Z axis to align with the scene on the blender when they are in "locate" mode 127 tilt and 127 pan then with the beam perfectly straight, but when I send again with artnet it resets returning to the zero set by the script and the locate loses its setting. How can I fix this little problem?

BryanCrotaz commented 3 years ago

You’re essentially looking for a fixed offset plus or minus artnet movement?

BryanCrotaz commented 3 years ago

You’re essentially rotating the base of a moving spot?

Atreyus86 commented 3 years ago

essentially you would need an offset to be set directly on the spots where you need to act, and that offset must be available for all three axes. I have already managed to change the order directly from the script [pan, tilt, 0] or [pan, 0, tilt] but in this particular case where I have to work on a project already done I need to change the degrees of an axis without then it is refreshed by the artnet.

For example: [pan, tilt, null]

Because there are many moving heads with parent factors, modifiers and more already active

BryanCrotaz commented 3 years ago

we could put a checkbox against every DMX channel in the selected fixture. But for a big fixture That would get unwieldy.

Can you just define a fixture that only has the channels you want to animate?

Atreyus86 commented 3 years ago

The Issue is that if i patch the spot on the original position, everything works fine. But if i rotate the spot 90° on the X axis because i need the spot rigged in the default position looking in front of the audience (see the attached screenshot) i need to set the offset of the Z axis and leave it there without refresh from the addon. If you try with Blender, when you set the Z axis of the spot, when you switch on the addon, if i don't touch the Z Value, the addon automatically set the value on zero. Hope to be clear, thanks a lot for the support. screenshot1 screenshot2

BryanCrotaz commented 3 years ago

I think I know what you mean. Please post that second screenshot before and after you patch it so I can see exactly what’s happening and which axis is misbehaving.

Atreyus86 commented 3 years ago

Before: Screenshot (5)

After: Screenshot (4)

As you can see in the first image i've set up the offset on Z axes without settings the ArtNet values (Pan and Tilt are on X,Y asxes). When i switch on the ArtNet addon, the value of Z become 0 fron the original 65 degrees. It happens only when i add the ArtNet node in a project that i have created before.

BryanCrotaz commented 3 years ago

Please log the second problem as a separate issue

BryanCrotaz commented 3 years ago

So actually you don’t want to rotate the light, you want to rotate the housing. And you want the artnet rotation to be relative to your starting point, not from zero?

Wondering if the lamp body can be set as the parent of the light, and we could have a check box to rotate parent instead of rotating the light?

Atreyus86 commented 3 years ago

This is a great idea, thank you! After we do this, will the fixture be the same?

BryanCrotaz commented 3 years ago

Try the new version 1.4. Pan and tilt are now written to the delta rotation so you can use the rotation transform to set the centre position.

You also have the option to map pan and tilt to parent or grandparent axes.

Atreyus86 commented 3 years ago

the new version for now is stable and very useful, the option that you added is very helpful, now the workflow is very smooth,more fast and simple. Thanks a lot. We keep you updated in case of bugs

BryanCrotaz commented 3 years ago

If you find it useful commercially I'd be grateful for a Patreon subscription so I can dedicate more time to this.