Import from the stock library
import_stockImport one item from search_stock into the project as an asset. Pass its id. A device frame becomes an image asset and installs DeviceFrame (a picture on its screen) and DeviceFrameVideo (a video on its screen); the answer is the clip with every number filled in: bind your picture or video and place it with patch_film. A sound becomes an audio asset; the answer says where its loudest point is, so you put it on the action. A music track becomes an audio asset; the answer says its bpm, its length, its loudness and the second its big hit lands, so you slide its offset to put that hit on the payoff and set its volume from the measured level. A sound's or a track's source, author and license stay with the asset (read_asset shows them) and the answer says whether its license asks for a credit line in the video's description. A 3D model becomes a model asset; the answer lists its materials and a 3D clip that puts a picture on its screen, and a template slot takes its Asset ID (the laptop-showcase template takes macbook-pro). A green screen becomes a video asset; the answer is the that keys it and where it goes on the film for its use (a subject over footage, footage under a green device screen, a wipe, a new sky). A VFX clip becomes two video assets, the effect and its alpha, and the answer is the effect's clip with the alpha as its mask, so its light adds to the footage like a screen blend; an ink matte becomes the mask of a that holds the incoming shot. A library model (an id starting polyhaven-, kenney-, khronos-, nasa- or polypizza-) is converted to an optimised GLB like an upload. A texture (an id starting texture-) becomes one image asset a map (colour, normal, roughness); the answer is a 3D world material with its maps and the repeat that tiles them. A library item's source, author and licence stay with its asset: read_asset shows them, and a credit line its licence asks for (CC BY, NASA) goes in the video's description. Nothing is charged. Do not invent ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | An id from search_stock, for example iphone-pro-frame-front-black, macbook-pro or music-happy-times. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. |