When I run the following code in the script editor of Omniverse Code, it runs as it should. When I import this code to VStudio, I get this error: Import “omni.kit.sequencer.core” could not be resolved. How could I fix this error?
manager = omni.kit.app.get_app().get_extension_manager()
manager.set_extension_enabled_immediate(“omni.kit.sequencer.core”, True)
import omni.kit.commands
from pxr import Sdf
from omni import kit.sequencer.core.scripts.sequencer_track_types
omni.kit.commands.execute(‘SequencerCreateSequenceCommand’)
omni.kit.commands.execute(‘SequencerTrackCreateCommand’,
sequence_path=Sdf.Path(‘/World/Sequence’),
track_name=‘Cone’,
track_type=<TrackTypes.ASSET: ‘Asset’>,
location=-1)