cPy.cNodeSystem module#
- class NodeGraph[source]#
Bases:
BaseClass- static dynamic_cast(pObject: BaseClass) NodeGraph[source]#
- An analogue of the dynamic_cast function from C++, it checks whether the object pObject is a NodeGraph class or its descendant, and if so, returns the specified object, but of the NodeGraph type.
- KeepIconsFBO: bool = False#
- OpenGLInitialized: bool = True#
- previewRender: any#
- NeedMakeScript: bool#
- NeedRefreshResult: bool#
- HasCompileError: bool#
- CompileLog: str#
- RampListTexture: any#
- RampListGLTexture: int#
- NodeGraphPreviewFBO: int#
- CentralImagePreviewHash: int#
- NodeAllowGizmo: bool = False#
- GlobalPropertyVisibilityLevel: int = 0#
- ShowAllOutPropertiesInNodeInspector: bool = False#
- BuildTimeKnotId: int = 100#
- HasAlbedoOut: bool#
- HasMetalOut: bool#
- HasNormalOut: bool#
- HasGlossOut: bool#
- HasDisplacementOut: bool#
- HasPositionOut: bool#
- HasReflectionColorOut: bool#
- HasEmissiveOut: bool#
- HasOpacityOut: bool#
- HasCavityOut: bool#
- HasGeometryInfoOut: bool#
- HasOcclusionOut: bool#
- HasBugleOut: bool#
- Nodes: ClassArray_BaseNode#
- nodes and knots in scene
- LayersList: any#
- isActive: bool#
- SkipValidator: bool = False#
- ForceCheckAllErrors: bool = False#
- isAnyActive: bool = True#
- isAVUsed: bool#
- UsedCavity: bool#
- UsedAO: bool#
- UsedGeometryInfo: bool#
- FilterByTag: bool#
- RenderGlobalVars: bool#
- RenderObjectVars: bool#
- ComputeShaderID: int#
- index of defined texture(FBO) by array define name
- NeedRecenterNodes: bool#
- NeedCheckAOCavity: bool#
- iNeedMakeScript: any#
- bPropertiesChanged: bool#
- iPropertiesChanged: any#
- bCurvesTrivialChanged: bool#
- iCurvesTrivialChanged: any#
- LastRampBuildHash: any#
- FindElement(point: cVec2, res: any, find_in_knots: bool, find_out_knots: bool, findnodes: bool, exceptcaptured: bool, Type: any = None) bool[source]#
- BreakRender: bool#
- m_pUIWidget: any#
- OwnerComponent: any#
- nodeAllowGizmo: bool#
- static System() NodeGraph[source]#
- extract NodeGraph from curent UI context - should be called within any UI callback
- static Node(pos: cVec2) any[source]#
- extract BaseNode from curent UI context - should be called within any UI callback
- Save(xml: any, ClassPtr: any, Extra: any)[source]#
- Save class to the XML structure
- Parameters:
xml – The result
ClassPtr – The pointer to the data, equals to this if class is directly castable
Extra – Extra data pointer
- Load(xml: any, ClassPtr: any, Extra: any) bool[source]#
- Load the class from the XML structure
- Parameters:
xml – The source XML
ClassPtr – The pointer to the data, equals to this if class is directly castable
Extra – Extra data pointer
- Returns:
true if successful
- Return type:
bool
- class BaseNode[source]#
Bases:
BaseClass- static dynamic_cast(pObject: BaseClass) BaseNode[source]#
- An analogue of the dynamic_cast function from C++, it checks whether the object pObject is a BaseNode class or its descendant, and if so, returns the specified object, but of the BaseNode type.
- ShowPreview: bool#
- ShowInObjectInspector: bool#
- InlineNode: bool#
- WasInlineNode: bool#
- NodeGraphLayerIdx: int#
- NGLSrcPropertiesHash: int#
- DefinesHash: int#
- SourceRevisionID: int#
- AllowSubNodes: bool#
- NGLNodeReference: any#
- UICompilerERROR: bool#
- An error or warning message for a node
- IsGlobalVarNode: bool#
- IsObjectVarNode: bool#
- NodeIdx: int#
- position on local space of the canvas
- NeedDelete: bool#
- Selected: bool#
- Disabled: bool#
- disabled, should not be used incalculations
- Captured: bool#
- the node is catured to be draged
- DefinesExpanded: bool#
- TextWithShadow: bool#
- Draw txt with shadows
- ShowKnotsNames: bool#
- Display knots names in UI
- LoadSaveExtension: cStr#
- set extension there if you need Load/Save botton in node editor triggered by doubleclick
- WithoutHeader: bool#
- optional feature - node without header
- CentralImage: int#
- central image over the node, -1 means no image
- CentralImageIsFBO: bool#
- CentralImagePreviewHash: int#
- IconStyle: bool#
- wrap central image to the whole node
- WrapCentralImage: bool#
- wrap central image to the whole node
- Color: int#
- color of the node below the header
- HeaderColor: int#
- color of the header
- CommentColor: int#
- NodesDistance: int#
- vertical distance between the knots
- TypeName: cStr#
- Text in the node header, this is also listed in RMB menu. You may change it after adding node to the scene.
- HelperText: cStr#
- The ID used in editor of the node (if available) as desciption text in the message box. Should be filled in the constructor.
- In: ClassArray_knProperty#
- input connections
- Out: ClassArray_knProperty#
- output connections
- HasConnectionToAnyNodeInList(list: ClassArray_BaseNode) bool[source]#
- UserDefines: any#
- Values of Defines that have been set by the user for this node.
- Save(xml: any, ClassPtr: any = None, Extra: any = None)[source]#
- Save class to the XML structure
- Parameters:
xml – The result
ClassPtr – The pointer to the data, equals to this if class is directly castable
Extra – Extra data pointer
- class ndNGLNode[source]#
Bases:
BaseNode- static dynamic_cast(pObject: BaseClass) ndNGLNode[source]#
- An analogue of the dynamic_cast function from C++, it checks whether the object pObject is a ndNGLNode class or its descendant, and if so, returns the specified object, but of the ndNGLNode type.
- NeedSecondBuild: bool#
- customSource: any#
- class BaseKnot[source]#
Bases:
BaseClass- static dynamic_cast(pObject: BaseClass) BaseKnot[source]#
- An analogue of the dynamic_cast function from C++, it checks whether the object pObject is a BaseKnot class or its descendant, and if so, returns the specified object, but of the BaseKnot type.
- CurrentOIPaddingCount: int#
- Image: int#
- isInputKnot: bool#
- HiddenWOKnot: bool#
- Captured: bool#
- HasConnection: bool#
- AllowEditKnotColor: bool#
- KnotUsage: int#
- Color: int#
- PropertyType: any#
- CodeFuncAttrType: cStr#
- 0 - no default value; 1 - Float; 2 - Vector2D; 3 - Vector3D; 4 - Vector4D; 5 - Color;
- PInConnection: any#
- CompatibleWithOutput(InKnot: BaseKnot) bool[source]#
- check if knot may accept this type of output knots, no need to override it if you written own MayBeCastedTo function
- CompatibleWithInput(OutKnot: BaseKnot) bool[source]#
- check if knot may accept this type of input knots, no need to override it if you written own MayBeCastedTo function
- class knProperty(CL: int, _1: str, aDefaultValue: cVec4, aMin: float = 0, aMax: float = 10, aKnot: cStr = '', aAllowCurves: bool = False, aAllowDefineTexture: bool = False)[source]#
Bases:
BaseKnot- static dynamic_cast(pObject: BaseClass) knProperty[source]#
- An analogue of the dynamic_cast function from C++, it checks whether the object pObject is a knProperty class or its descendant, and if so, returns the specified object, but of the knProperty type.
- PropertyIdx: int#
- NodeSystemRampIdx: int#
- isOutProperty: bool#
- CustomProperty: bool#
- inlineExpression: bool#
- AllowCurve: bool#
- AllowDefineTexture: bool#
- Invert: bool#
- IsExpandedInOI: int#
- VisLevel: int#
- BoundValue: bool#
- For whom to show this attribute (for everyone, favorite, for experts or hide)
- CodeFuncAttrID: int#
- ElementCount: int#
- ShowCurveUI: bool#
- CustomExpression: bool#
- SetInConnection(aInConnection: knProperty)[source]#
- bool InlineNode = false;
- GetV4() cVec4[source]#
- knPropertyType PropertyType = ptDefault; // 0 - no default value; 1 - Float; 2 - Vector2D; 3 - Vector3D; 4 - Vector4D; 5 - Color;
- Deform: any#
- LastTrivialState: bool#
- spHash: int#
- Expression: any#
- UserDefines: any#
- DefaultMin: float#
- DefaultMax: float#
- CopyTypeTo(aDst: knProperty)[source]#
- UpdateTypeTo(aDst: knProperty)[source]#
- Save(xml: any, ClassPtr: any = None, Extra: any = None)[source]#
- Save class to the XML structure
- Parameters:
xml – The result
ClassPtr – The pointer to the data, equals to this if class is directly castable
Extra – Extra data pointer