fake-bge-module-latest 20250102__py3-none-any.whl → 20250104__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bpy/types/__init__.pyi CHANGED
@@ -5731,86 +5731,273 @@ print(positions_data)
5731
5731
  This example shows an implementation of USDHook
5732
5732
 
5733
5733
  to extend USD
5734
- export and import functionalty.
5734
+ export and import functionality.
5735
+
5736
+
5737
+ --------------------
5735
5738
 
5736
5739
  One may optionally define any or all of the following callback functions
5737
5740
  in the USDHook
5738
5741
 
5739
5742
  subclass.
5740
5743
 
5741
- Hook function on_export()
5742
5744
 
5743
- is called before the USD export finalizes,
5744
- allowing modifications to the USD stage immediately before it is
5745
- saved. This function takes as an argument an instance of an
5746
- internally defined class USDSceneExportContext
5745
+ --------------------
5747
5746
 
5748
- which provides the
5749
- following accessors to the scene data:
5747
+ Called before the USD export finalizes, allowing modifications to the USD
5748
+ stage immediately before it is saved.
5750
5749
 
5751
- * get_stage()
5750
+ Args:
5752
5751
 
5753
- returns the USD stage to be saved.
5754
- * get_depsgraph()
5752
+ * export_context
5755
5753
 
5756
- returns the Blender scene dependency graph.
5754
+ (USDSceneExportContext): Provides access to the stage and dependency graph
5757
5755
 
5758
- Hook function on_material_export()
5756
+ Returns:
5759
5757
 
5760
- is called for each material that is exported,
5761
- allowing modifications to the USD material, such as shader generation.
5762
- It is called with three arguments:
5758
+ * True
5763
5759
 
5764
- -export_context
5760
+ on success or False
5765
5761
 
5766
- : An instance of the internally defined type USDMaterialExportContext
5762
+ if the operation was bypassed or otherwise failed to complete
5767
5763
 
5768
- .
5769
- -bl_material
5770
5764
 
5771
- : The source Blender material.
5772
- -usd_material
5765
+ --------------------
5773
5766
 
5774
- : The target USD material to be exported.
5767
+ Called for each material that is exported, allowing modifications to the USD material,
5768
+ such as shader generation.
5775
5769
 
5776
- USDMaterialExportContext
5770
+ Args:
5777
5771
 
5778
- implements a get_stage()
5772
+ * export_context
5779
5773
 
5780
- function which returns the
5781
- USD stage to be saved.
5774
+ (USDMaterialExportContext): Provides access to the stage and a texture export utility function
5775
+ * bl_material
5776
+
5777
+ (bpy.types.Material
5778
+
5779
+ ): The source Blender material
5780
+ * usd_material
5781
+
5782
+ (pxr.UsdShade.Material
5783
+
5784
+ ): The target USD material to be exported
5785
+
5786
+ Returns:
5787
+
5788
+ * True
5789
+
5790
+ on success or False
5791
+
5792
+ if the operation was bypassed or otherwise failed to complete
5782
5793
 
5783
5794
  Note that the target USD material might already have connected shaders created by the USD exporter or
5784
5795
  by other material export hooks.
5785
5796
 
5786
- Hook function on_import()
5787
5797
 
5788
- is called after the USD import finalizes. This function takes
5789
- as an argument an instance of an internally defined class USDSceneImportContext
5798
+ --------------------
5799
+
5800
+ Called after the USD import finalizes.
5801
+
5802
+ Args:
5803
+
5804
+ * import_context
5805
+
5806
+ (USDSceneImportContext):
5807
+ Provides access to the stage and a map associating USD prim paths and Blender IDs
5808
+
5809
+ Returns:
5810
+
5811
+ * True
5812
+
5813
+ on success or False
5814
+
5815
+ if the operation was bypassed or otherwise failed to complete
5816
+
5817
+
5818
+ --------------------
5819
+
5820
+ Called to determine if the USDHook
5821
+
5822
+ implementation can convert a given USD material.
5823
+
5824
+ Args:
5825
+
5826
+ * import_context
5827
+
5828
+ (USDMaterialImportContext): Provides access to the stage and a texture import utility function
5829
+ * usd_material
5830
+
5831
+ (pxr.UsdShade.Material
5832
+
5833
+ ): The source USD material to be exported
5834
+
5835
+ Returns:
5836
+
5837
+ * True
5838
+
5839
+ if the hook can convert the material or False
5840
+
5841
+ otherwise
5842
+
5843
+ If any hook returns True
5844
+
5845
+ from material_import_poll
5846
+
5847
+ , the USD importer will skip standard USD Preview Surface
5848
+
5849
+
5850
+ or MaterialX
5851
+
5852
+ import and invoke the hook's on_material_import method to convert the material instead.
5853
+
5854
+
5855
+ --------------------
5856
+
5857
+ Called for each material that is imported, to allow converting the USD material to nodes on the Blender material.
5858
+ To ensure that this function gets called, the hook must also implement the material_import_poll()
5859
+
5860
+
5861
+ callback to return True
5862
+
5863
+ for the given USD material.
5864
+
5865
+ Args:
5866
+
5867
+ * import_context
5868
+
5869
+ (USDMaterialImportContext): Provides access to the stage and a texture import utility function
5870
+ * bl_material
5871
+
5872
+ (bpy.types.Material
5873
+
5874
+ ): The target Blender material with an empty node tree
5875
+ * usd_material
5876
+
5877
+ (pxr.UsdShade.Material
5878
+
5879
+ ): The source USD material to be imported
5880
+
5881
+ Returns:
5882
+
5883
+ * True
5884
+
5885
+ on success or False
5886
+
5887
+ if the conversion failed or otherwise did not complete
5888
+
5889
+
5890
+ --------------------
5891
+
5892
+ Instances of the following built-in classes are provided as arguments to the callbacks.
5893
+
5894
+
5895
+ --------------------
5790
5896
 
5791
- which provides the
5792
- following accessors to the scene data:
5897
+ Argument for on_export.
5898
+
5899
+ Methods:
5900
+
5901
+ * get_stage()
5902
+
5903
+ : returns the USD stage to be saved
5904
+ * get_depsgraph()
5905
+
5906
+ : returns the Blender scene dependency graph
5907
+
5908
+
5909
+ --------------------
5910
+
5911
+ Argument for on_material_export.
5912
+
5913
+ Methods:
5914
+
5915
+ * get_stage()
5916
+
5917
+ : returns the USD stage to be saved
5918
+ * export_texture(image: bpy.types.Image)
5919
+
5920
+ : Returns the USD asset path for the given texture image
5921
+
5922
+ The export_texture
5923
+
5924
+ function will save in-memory images and may copy texture assets,
5925
+ depending on the current USD export options.
5926
+ For example, by default calling export_texture(/foo/bar.png)
5927
+
5928
+ will copy the file to a textures
5929
+
5930
+
5931
+ directory next to the exported USD and will return the relative path ./textures/bar.png
5932
+
5933
+ .
5934
+
5935
+
5936
+ --------------------
5937
+
5938
+ Argument for on_import.
5939
+
5940
+ Methods:
5793
5941
 
5794
5942
  * get_prim_map()
5795
5943
 
5796
- returns a dict where the key is an imported USD Prim path and the value a list of
5797
- the IDs created by the imported prim.
5944
+ returns a dict
5945
+
5946
+ where the key is an imported USD Prim path and the value a list
5798
5947
 
5948
+
5949
+ of the IDs created by the imported prim.
5799
5950
  * get_stage()
5800
5951
 
5801
5952
  returns the USD stage which was imported.
5802
5953
 
5803
- The hook functions should return True
5804
5954
 
5805
- on success or False
5955
+ --------------------
5956
+
5957
+ Argument for material_import_poll and on_material_import.
5958
+
5959
+ Methods:
5960
+
5961
+ * get_stage()
5962
+
5963
+ :
5964
+ returns the USD stage to be saved.
5965
+ * import_texture(asset_path: str)
5966
+
5967
+ :
5968
+ for the given USD texture asset path, returns a tuple[str, bool]
5969
+
5970
+ ,
5971
+ containing the asset's local path and a bool indicating whether the path references a temporary file.
5972
+
5973
+ The import_texture
5974
+
5975
+ function may copy the texture to the local file system if the given asset path is a
5976
+ package-relative path for a USDZ archive, depending on the current USD Import Textures
5806
5977
 
5807
- if the operation was bypassed or
5808
- otherwise failed to complete. Exceptions raised by these functions will be reported in Blender, with
5809
- the exception details printed to the console.
5978
+ options.
5979
+ When the Import Textures
5980
+
5981
+ mode is Packed
5982
+
5983
+ , the texture is saved to a temporary location and the
5984
+ second element of the returned tuple is True
5985
+
5986
+ , indicating that the file is temporary, in which
5987
+ case it may be necessary to pack the image. The original asset path will be returned unchanged if it's
5988
+ already a local file or if it could not be copied to a local destination.
5989
+
5990
+
5991
+ --------------------
5992
+
5993
+ Exceptions raised by these functions will be reported in Blender with the exception details printed to the console.
5994
+
5995
+
5996
+ --------------------
5810
5997
 
5811
5998
  The USDHookExample
5812
5999
 
5813
- class in this example impements the fllowing functions:
6000
+ class in the example below implements the following functions:
5814
6001
 
5815
6002
  * on_export()
5816
6003
 
@@ -5819,10 +6006,24 @@ The USDHookExample
5819
6006
 
5820
6007
  function to create a simple MaterialX
5821
6008
 
5822
- shader on the givne USD material.
6009
+ shader on the given USD material.
5823
6010
  * on_import()
5824
6011
 
5825
6012
  function to create a text object to display the stage's custom layer data.
6013
+ * material_import_poll()
6014
+
6015
+ returns True
6016
+
6017
+ if the given USD material has an mtlx
6018
+
6019
+ context.
6020
+ * on_material_import()
6021
+
6022
+ function to convert a simple MaterialX
6023
+
6024
+ shader with a base_color
6025
+
6026
+ input.
5826
6027
 
5827
6028
  ```../examples/bpy.types.USDHook.py```
5828
6029
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fake-bge-module-latest
3
- Version: 20250102
3
+ Version: 20250104
4
4
  Summary: Collection of the fake Blender Game Engine (BGE) Python API module for the code completion.
5
5
  Author: nutti
6
6
  Author-email: nutti.metro@gmail.com
@@ -300,7 +300,7 @@ bpy/ops/workspace/__init__.pyi,sha256=4qG0-HkVfaGfdBe9QvBCKUox03nb1ZfeV1fz-0b3KJ
300
300
  bpy/ops/world/__init__.pyi,sha256=ytaDhwJ-K4SbWylChL1za6lvMNM2-RX1S0BR7892Afg,946
301
301
  bpy/path/__init__.pyi,sha256=b_M-IUy-VEWMDZJH0bP9P-HHcLLcQo59S1dARRQrP9E,5064
302
302
  bpy/props/__init__.pyi,sha256=k9vf7m3oEeYq3t2Ropv6BhzAk1cH5L-0qe9U5N9NZuA,31136
303
- bpy/types/__init__.pyi,sha256=PpJld7qRCLD9Jo-kMHuYXZsHlLN2MLg5R8AdTw5HnrU,5633512
303
+ bpy/types/__init__.pyi,sha256=SrSQy55vemDbyNn3DUJcMxyETleXEi-7GU30wAgqOk0,5636777
304
304
  bpy/typing/__init__.pyi,sha256=3KI4vqpVn5OlaoxmsWH9LYKDmNxRYltoP_Jid2cSOnE,139452
305
305
  bpy/utils/__init__.pyi,sha256=XXoE6J8aW13NQ-2FvnFORXyNVUFfO8hSno-xfgJ6ZNI,13078
306
306
  bpy/utils/previews/__init__.pyi,sha256=XEThA7jxMWet1sPTJ3mmngM6LdAdKiIVSZOKbCsbvzw,2217
@@ -383,7 +383,7 @@ rna_prop_ui/__init__.pyi,sha256=lShhkbbeJ_ANi2dy4J4HIkyp1HZrMqCfhcf8QpAQsj0,1281
383
383
  rna_prop_ui/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
384
384
  rna_xml/__init__.pyi,sha256=idYsAZj-_egBKMA2pQl2P9IoNhZxXIkBSALFuq-ylO8,577
385
385
  rna_xml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
386
- fake_bge_module_latest-20250102.dist-info/METADATA,sha256=7shsCtkLUg9nBXXzswLMRnrnbd9YftWoK8r8LVhUUzI,4794
387
- fake_bge_module_latest-20250102.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
388
- fake_bge_module_latest-20250102.dist-info/top_level.txt,sha256=G2g8DM6N1EXHQhWiW_lc0Dp7Tmqpop00oo_f2rdLQOU,520
389
- fake_bge_module_latest-20250102.dist-info/RECORD,,
386
+ fake_bge_module_latest-20250104.dist-info/METADATA,sha256=PD2uGv_Kg4nqmDXwF8q9fLjfk6LySEAQPS2HF1d6aOc,4794
387
+ fake_bge_module_latest-20250104.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
388
+ fake_bge_module_latest-20250104.dist-info/top_level.txt,sha256=G2g8DM6N1EXHQhWiW_lc0Dp7Tmqpop00oo_f2rdLQOU,520
389
+ fake_bge_module_latest-20250104.dist-info/RECORD,,