Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 67) sorted by relevance

123

/NW4C-1.3.3/tools/DccPlugin/Maya/scripts/
DNW4C_SetForceExportKey.mel17 proc int IsSceneAnimObject(string $node)
19 string $type = nodeType($node);
20 string $childs[] = `listRelatives -pa -s $node`;
32 return node size
39 for ($node in $nodes)
41 if (!IsSceneAnimObject($node))
43 $xforms[size($xforms)] = $node;
53 global proc int nw4cSetForceExportKey_Get_ForceExportTranslateKey(string $node)
55 return (`attributeQuery -n $node -ex "nw4cForceExportTranslateKey"`) ?
56 `getAttr ($node + ".nw4cForceExportTranslateKey")` : 0;
[all …]
DNW4C_SetMaterialAttr.mel75 global proc int nw4cSetMaterialAttr_Get_FaceCulling(string $node)
77 return (`attributeQuery -n $node -ex "nw4cFaceCulling"`) ?
78 `getAttr ($node + ".nw4cFaceCulling")` : 1;
81 global proc nw4cSetMaterialAttr_Add_FaceCulling(string $node)
83 if (!`attributeQuery -n $node -ex "nw4cFaceCulling"`)
86 -en "Front Face=0:Back Face=1:Always=2:Never=3" -dv 1 -h 1 $node;
90 global proc nw4cSetMaterialAttr_Set_FaceCulling(string $node, int $val)
92 nw4cSetMaterialAttr_Add_FaceCulling($node);
93 setAttr ($node + ".nw4cFaceCulling") $val;
96 proc SetJob_FaceCulling(string $node)
[all …]
DNW4C_SetNoCompressNode.mel5 Description: set no compress node
17 proc int IsSceneAnimObject(string $node)
19 string $type = nodeType($node);
20 string $childs[] = `listRelatives -pa -s $node`;
32 return node size
39 for ($node in $nodes)
41 if (!IsSceneAnimObject($node))
43 $xforms[size($xforms)] = $node;
53 global proc int nw4cSetNoCompressNode_Get_NoCompress(string $node)
55 return (`attributeQuery -n $node -ex "nw4cNoCompressNode"`) ?
[all …]
DNW4C_SetBillboard.mel17 proc int IsSceneAnimObject(string $node)
19 string $type = nodeType($node);
20 string $childs[] = `listRelatives -pa -s $node`;
32 return node size
39 for ($node in $nodes)
41 if (!IsSceneAnimObject($node))
43 $xforms[size($xforms)] = $node;
53 global proc int nw4cSetBillboard_Get_Billboard(string $node)
55 return (`attributeQuery -n $node -ex "nw4cBillboard"`) ?
56 `getAttr ($node + ".nw4cBillboard")` : 0;
[all …]
DNW4C_SetUserData.mel18 global proc int nw4cSetUserData_Get_UserDataSize(string $node)
20 return (`attributeQuery -n $node -ex "nw4cUserDataSize"`) ?
21 `getAttr ($node + ".nw4cUserDataSize")` : 0;
24 global proc nw4cSetUserData_Add_UserDataSize(string $node)
26 if (!`attributeQuery -n $node -ex "nw4cUserDataSize"`)
28 addAttr -ln "nw4cUserDataSize" -at "short" -dv 0 -h 1 $node;
32 global proc nw4cSetUserData_Set_UserDataSize(string $node, int $val)
34 nw4cSetUserData_Add_UserDataSize($node);
35 setAttr ($node + ".nw4cUserDataSize") $val;
41 global proc string nw4cSetUserData_Get_UserDataValue(string $node, int $index)
[all …]
DNW4C_SetFrameExtensionList.mel5 Description: set frame extension list to file node
15 global proc string nw4cSetFrameExtensionList_Get_FrameExtensionList(string $node)
17 string $val = (`attributeQuery -n $node -ex "nw4cFeList"`) ?
18 (string)`getAttr ($node + ".nw4cFeList")` : "";
22 global proc nw4cSetFrameExtensionList_Add_FrameExtensionList(string $node)
24 if (!`attributeQuery -n $node -ex "nw4cFeList"`)
26 addAttr -ln "nw4cFeList" -dt "string" -h 1 $node;
30 global proc nw4cSetFrameExtensionList_Set_FrameExtensionList(string $node, string $val)
32 nw4cSetFrameExtensionList_Add_FrameExtensionList($node);
33 setAttr ($node + ".nw4cFeList") -typ "string" $val;
[all …]
DNW4C_SetCombineGroup.mel17 proc int IsSceneAnimObject(string $node)
19 string $type = nodeType($node);
20 string $childs[] = `listRelatives -pa -s $node`;
32 return node size
39 for ($node in $nodes)
41 if (!IsSceneAnimObject($node))
43 $xforms[size($xforms)] = $node;
53 global proc int nw4cSetCombineGroup_Get_UseCombineGroup(string $node)
55 return (`attributeQuery -n $node -ex "nw4cUseCombineGroup"`) ?
56 `getAttr ($node + ".nw4cUseCombineGroup")` : 0;
[all …]
DNW4C_SetCameraFovy.mel17 proc int IsCameraTransform(string $node)
19 string $childs[] = `listRelatives -pa -s $node`;
24 get selected camera node
26 return node size
59 proc SetJob_Fovy(string $node)
61 string $cmd = "floatSliderGrp -e -v `camera -q -vfv " + $node +
64 scriptJob -p nw4cSetCameraFovy_Fovy -rp -ac ($node + ".focalLength") $cmd;
65 scriptJob -p nw4cSetCameraFovy_ApertureV -rp -ac ($node + ".verticalFilmAperture") $cmd;
77 for ($node in $cams)
79 camera -e -vfv $val $node;
[all …]
DNW4C_CreateMenu.mel84 -ann "Set material attributes of selected shadingEngine (material) node"
90 -ann "Set render priority of selected shadingEngine (material) node"
96 // -ann "Set normal mapping attributes of selected file node"
102 // no compress node
104 -ann "Set no compress flag of selected transform node"
110 -ann "Set billboard mode of selected transform node"
116 -ann "Set combine group of selected transform node"
122 -ann "Set force export key of selected transform node"
142 // -ann "Set shape anim attributes of selected blendShape (transform) node"
150 -ann "Set camera fovy of selected camera (transform) node"
[all …]
DNW4C_SetRenderPriority.mel58 global proc int nw4cSetRenderPriority_Get_UseRenderPriority(string $node)
60 return (`attributeQuery -n $node -ex "nw4cUseRenderPriority"`) ?
61 `getAttr ($node + ".nw4cUseRenderPriority")` : 0;
64 global proc nw4cSetRenderPriority_Add_UseRenderPriority(string $node)
66 if (!`attributeQuery -n $node -ex "nw4cUseRenderPriority"`)
68 addAttr -ln "nw4cUseRenderPriority" -at "bool" -dv 0 -h 1 $node;
72 global proc nw4cSetRenderPriority_Set_UseRenderPriority(string $node, int $val)
74 nw4cSetRenderPriority_Add_UseRenderPriority($node);
75 setAttr ($node + ".nw4cUseRenderPriority") $val;
78 proc SetJob_UseRenderPriority(string $node)
[all …]
/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_ParticleCollection.cpp560 ParticleCollection* node = new(nodeMemory) ParticleCollection( in Create() local
568 node->m_Capacity = capacity; in Create()
570 node->m_ParticleShape = shape; in Create()
577 node->m_IsStream[usage] = true; in Create()
580 node->m_StreamPtr[usage][i] = shape->GetPrimitiveStreamPtr((ParticleBuffer)i); in Create()
581 node->m_StreamStride[usage] = 2; in Create()
592 … &node->m_ParticleAttribute[usage], static_cast<ParticleUsage>(usage), capacity, &nodeMemory); in Create()
594 node->m_IsStream[usage] = true; in Create()
597 node->m_StreamPtr[usage][i] = node->m_ParticleAttribute[usage].m_Stream; in Create()
598 node->m_StreamStride[usage] = 2; in Create()
[all …]
Dgfx_SceneBuilder.cpp115 SceneNode* node = SceneNode::Create( in BuildSceneObject() local
117 object = node; in BuildSceneObject()
144 TransformNode* node = TransformNode::Create( in BuildSceneObject() local
149 object = node; in BuildSceneObject()
179 Model* node = Model::Create( in BuildSceneObject() local
184 object = node; in BuildSceneObject()
213 SkeletalModel* node = builder.Create(parent, resource, allocator); in BuildSceneObject() local
214 object = node; in BuildSceneObject()
249 ParticleModel* node = ParticleModel::Create( in BuildSceneObject() local
255 object = node; in BuildSceneObject()
[all …]
Dgfx_ParticleModel.cpp141 ParticleModel* node = new(memory) ParticleModel( in Create() local
147 Result result = node->Initialize(mainAllocator); in Create()
150 SafeDestroy(node); in Create()
179 node->AttachParticleShape(shapeNode); in Create()
187 node, in Create()
200 node->AttachParticleSet(setNode); in Create()
205 for (int i = 0; i < node->m_MaximumParticleSet; ++i) // TBD in Create()
207 if (node->m_ParticleSets[i] != NULL) in Create()
209 SafeDestroy(node->m_ParticleSets[i]); in Create()
210 node->m_ParticleSets[i] = NULL; in Create()
[all …]
Dgfx_SceneNode.cpp43 SceneNode* node = new(memory) SceneNode( in Create() local
46 Result result = node->Initialize(allocator); in Create()
50 return node; in Create()
70 SceneNode* node = new(memory) SceneNode( in Create() local
73 Result result = node->Initialize(allocator); in Create()
79 bool isAttached = parent->AttachChild(node); in Create()
82 return node; in Create()
Dgfx_TransformNode.cpp65 TransformNode* node = new(memory) TransformNode( in Create() local
70 Result result = node->Initialize(allocator); in Create()
74 return node; in Create()
93 TransformNode* node = new(memory) TransformNode( in Create() local
98 Result result = node->Initialize(allocator); in Create()
104 bool isAttached = parent->AttachChild(node); in Create()
107 return node; in Create()
Dgfx_SceneUpdater.cpp163 for (SceneNodeArray::iterator node = sceneContext->GetSceneNodesBegin(); node != end; ++node) in UpdateTransformNode() local
165 (*node)->PreUpdateSignal()(*node, sceneContext); in UpdateTransformNode()
168 (*node)->InheritTraversalResults(); in UpdateTransformNode()
170 (*node)->UpdateTransform(this->m_WorldMatrixUpdater.Get(), sceneContext); in UpdateTransformNode()
/NW4C-1.3.3/include/nw/font/
Dfont_PackedFont.h315 const OrderNode& node = GetNode(index); in IsLocked() local
316 return IsLockedNode(node); in IsLocked()
322 bool IsLockedNode(const OrderNode& node) const in IsLockedNode() argument
324 NN_ASSERT( ! (node.prevIndex == LOCKED_INDEX) ^ (node.nextIndex == LOCKED_INDEX) ); in IsLockedNode()
325 return (node.prevIndex == LOCKED_INDEX); in IsLockedNode()
328 void MarkLocked(OrderNode& node) const in MarkLocked() argument
330 node.prevIndex = LOCKED_INDEX; in MarkLocked()
331 node.nextIndex = LOCKED_INDEX; in MarkLocked()
334 void Unlink(OrderNode& node) in Unlink() argument
336 OrderNode& prev = GetNode(node.prevIndex); in Unlink()
[all …]
/NW4C-1.3.3/sources/libraries/demo/
Ddemo_Particle.cpp56 ParticleHandle* node = new(memory) ParticleHandle( in Create() local
62 gfx::Result result = node->Initialize(allocator); in Create()
65 SafeDestroy(node); in Create()
70 return node; in Create()
244 nw::gfx::SceneNode* node = nw::ut::DynamicCast<nw::gfx::SceneNode*>(sceneObject); in Allocate() local
245 sceneNodeArray.PushBack(node); in Allocate()
247 nw::gfx::ParticleModel* model = nw::ut::DynamicCast<nw::gfx::ParticleModel*>(node); in Allocate()
258 nw::gfx::SceneNode* node = nw::ut::DynamicCast<nw::gfx::SceneNode*>(sceneObject); in Allocate() local
259 sceneNodeArray.PushBack(node); in Allocate()
261 nw::gfx::ParticleEmitter* emitter = nw::ut::DynamicCast<nw::gfx::ParticleEmitter*>(node); in Allocate()
[all …]
/NW4C-1.3.3/demos/gfx/ParticleLowLayerDemo/sources/
DParticleLowLayerDemo.cpp111 void UpdateNode(nw::gfx::TransformNode* node);
354 nw::gfx::SceneNode* node = CreateSceneNode(*modelResource); in BuildResources() local
355 NW_NULL_ASSERT(node); in BuildResources()
357 sceneNodeArray.push_back(node); in BuildResources()
359 if (nw::ut::IsTypeOf<nw::gfx::ParticleModel>(node)) in BuildResources()
361 s_ParticleModels.push_back(static_cast<nw::gfx::ParticleModel*>(node)); in BuildResources()
364 static_cast<nw::gfx::ParticleModel*>(node); in BuildResources()
377 nw::gfx::SceneNode* node = CreateSceneNode(*emitterResource); in BuildResources() local
378 NW_NULL_ASSERT(node); in BuildResources()
380 sceneNodeArray.push_back(node); in BuildResources()
[all …]
/NW4C-1.3.3/include/nw/ut/
Dut_LinkList.h710 Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetPrev() local
711 node = node->GetPrev(); in GetPrev()
712 return ( node == baseNode )? NULL : GetPointerFromNode( node ); in GetPrev()
718 const Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetPrev() local
719 node = node->GetPrev(); in GetPrev()
720 return ( node == baseNode )? NULL : GetPointerFromNode( node ); in GetPrev()
733 Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetNext() local
734 node = node->GetNext(); in GetNext()
735 return ( node == baseNode )? NULL : GetPointerFromNode( node ); in GetNext()
741 const Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetNext() local
[all …]
/NW4C-1.3.3/demos/gfx/MultiAnimationDemo/sources/
DMultiAnimationDemo.cpp332 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local
336 NW_NULL_ASSERT(node); in BuildResources()
337 sceneNodeArray.push_back(node); in BuildResources()
339 s_AnimTargets.push_back(node); in BuildResources()
347 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local
351 NW_NULL_ASSERT(node); in BuildResources()
352 sceneNodeArray.push_back(node); in BuildResources()
354 s_AnimTargets.push_back(node); in BuildResources()
362 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local
366 NW_NULL_ASSERT(node); in BuildResources()
[all …]
/NW4C-1.3.3/include/nw/demo/
Ddemo_Particle.h616 ParticleHandle* node = this->m_FreeInstances.Back(); in LeaseInstance() local
618 this->m_ActiveInstances.PushBack(node); in LeaseInstance()
620 this->ResetParticle(node); in LeaseInstance()
622 return node; in LeaseInstance()
627 void ReleaseInstance(gfx::SceneNode* node) in ReleaseInstance() argument
629 ParticleHandle* topNode = ut::DynamicCast<ParticleHandle*>(node); in ReleaseInstance()
642 void DestroyParticleHandle(ParticleHandle* node);
643 void DestroyParticleNode(ParticleHandle* node) in DestroyParticleNode() argument
645 return DestroyParticleHandle(node); in DestroyParticleNode()
725 ParticleHandle* node = this->Allocate(); in AddPool() local
[all …]
/NW4C-1.3.3/include/nw/gfx/
Dgfx_SceneNode.h487 void CopyTraversalResults(const SceneNode* node) in CopyTraversalResults() argument
489 if (node != NULL) in CopyTraversalResults()
491 this->m_TraversalResults = node->GetTraversalResults(); in CopyTraversalResults()
669 TNode*& node in SafeDestroyBranch() argument
672 if (node == NULL) { return; } in SafeDestroyBranch()
673 node->DestroyBranch(); in SafeDestroyBranch()
674 node = NULL; in SafeDestroyBranch()
686 void operator()(TNode& node) const in operator()
688 SafeDestroyBranch(node); in operator()
/NW4C-1.3.3/demos/gfx/LowLayerDemo/sources/
DLowLayerDemo.cpp103 void UpdateNode(nw::gfx::TransformNode* node);
335 nw::gfx::SceneNode* node = CreateSceneNode(*modelResource); in BuildResources() local
336 NW_NULL_ASSERT(node); in BuildResources()
338 s_Models.push_back(static_cast<nw::gfx::Model*>(node)); in BuildResources()
345 nw::gfx::SceneNode* node = CreateSceneNode(*lightResource); in BuildResources() local
346 NW_NULL_ASSERT(node); in BuildResources()
347 NW_ASSERT(nw::ut::IsTypeOf<nw::gfx::FragmentLight>(node)); in BuildResources()
349 s_FragmentLights.push_back(static_cast<nw::gfx::FragmentLight*>(node)); in BuildResources()
454 UpdateNode(nw::gfx::TransformNode* node) in UpdateNode() argument
458 if (node->Transform().IsEnabledFlags(nw::gfx::CalculatedTransform::FLAG_IS_DIRTY)) in UpdateNode()
[all …]
/NW4C-1.3.3/demos/gfx/LowLayerAnimationDemo/sources/
DLowLayerAnimationDemo.cpp113 void UpdateNode(nw::gfx::TransformNode* node);
357 nw::gfx::SceneNode* node = CreateSceneNode(*modelResource); in BuildResources() local
358 NW_NULL_ASSERT(node); in BuildResources()
359 NW_ASSERT(nw::ut::IsTypeOf<nw::gfx::SkeletalModel>(node)); in BuildResources()
361 s_SkeletalModels.push_back(static_cast<nw::gfx::SkeletalModel*>(node)); in BuildResources()
368 nw::gfx::SceneNode* node = CreateSceneNode(*lightResource); in BuildResources() local
369 NW_NULL_ASSERT(node); in BuildResources()
370 NW_ASSERT(nw::ut::IsTypeOf<nw::gfx::FragmentLight>(node)); in BuildResources()
372 s_FragmentLights.push_back(static_cast<nw::gfx::FragmentLight*>(node)); in BuildResources()
499 UpdateNode(nw::gfx::TransformNode* node) in UpdateNode() argument
[all …]

123