forked from LeenkxTeam/LNXSDK
		
	Add leenkx/blender/lnx/logicnode/custom/LN_set_audio_position.py
This commit is contained in:
		
							
								
								
									
										20
									
								
								leenkx/blender/lnx/logicnode/custom/LN_set_audio_position.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								leenkx/blender/lnx/logicnode/custom/LN_set_audio_position.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
from lnx.logicnode.lnx_nodes import *
 | 
			
		||||
 | 
			
		||||
class SetAudioPositionNode(LnxLogicTreeNode):
 | 
			
		||||
    """Sets the playback position of 3D audio. This node allows you to "scrub" through 3D audio by setting the current playback position to a specific time in seconds."""
 | 
			
		||||
    bl_idname = 'LNSetAudioPositionNode'
 | 
			
		||||
    bl_label = 'Set Audio Position'
 | 
			
		||||
    bl_description = 'Sets the playback position of 3D audio'
 | 
			
		||||
    lnx_category = '3D_Audio'
 | 
			
		||||
    lnx_version = 1
 | 
			
		||||
 | 
			
		||||
    def lnx_init(self, context):
 | 
			
		||||
        self.add_input('LnxNodeSocketAction', 'In')
 | 
			
		||||
        self.add_input('LnxDynamicSocket', 'Audio')
 | 
			
		||||
        self.add_input('LnxFloatSocket', 'Position (seconds)')
 | 
			
		||||
        
 | 
			
		||||
        self.add_output('LnxNodeSocketAction', 'Out')
 | 
			
		||||
 | 
			
		||||
def register():
 | 
			
		||||
    add_category('3D_Audio', icon='SOUND')
 | 
			
		||||
    SetAudioPositionNode.on_register()
 | 
			
		||||
		Reference in New Issue
	
	Block a user