Hi,
I've tried to find this in the docs and on this forum, but what's the proper way to rename a node that is an instance of an asset using the C++ API?  I've enumerated the list of the parameters on the node, but didn't see anything matching “name”.  The hou.Node class has the name property, but I couldn't find anything matching this functionality in the C++ API.
There's the HAPI_NodeInfo::nameSH, but there isn't any documentation for how to set this value.  The docs only have information for how to query HAPI_StringHandle values and not how to create them.
                    
					
                    
                        
                    
					
						
					
                    [HE1.9] Renaming a loaded asset instance node
4754 3 0- 
                               
                                
                                
 - aldenc98
 - Member
 - 2 posts
 - Joined: Oct. 2015
 - Offline
 
- 
                               
                                
                                
 - damian
 - Member
 - 402 posts
 - Joined: March 2013
 - Offline
 
                        There's HAPI_RenameNode() if you just want to rename a node you created via HAPI_CreateNode().
Any other node not created via HAPI_CreateNode() cannot be renamed via HAPI. This is something we're working on for the next version.
Furthermore, HAPI_StringHandle is and will always be a HAPI-side handle. Input strings are passed into HAPI as just const char*'s.
					
                    
                        
                    
					
						
					
                    
                    
                Any other node not created via HAPI_CreateNode() cannot be renamed via HAPI. This is something we're working on for the next version.
Furthermore, HAPI_StringHandle is and will always be a HAPI-side handle. Input strings are passed into HAPI as just const char*'s.
- 
                               
                                
                                
 - aldenc98
 - Member
 - 2 posts
 - Joined: Oct. 2015
 - Offline
 
                        Awesome, thanks for the quick response, damian!
I'm still really new to Houdini programming, but I couldn't find neither the HAPI_CreateNode nor the HAPI_RenameNode functions when searching in the docs for 1.9 (http://www.sidefx.com/docs/hengine1.9/index.html) [sidefx.com] Am I looking on the correct page, or were these functions only added in HE2.0?
					
                    
                        
                    
					
						
					
                    
                    
                I'm still really new to Houdini programming, but I couldn't find neither the HAPI_CreateNode nor the HAPI_RenameNode functions when searching in the docs for 1.9 (http://www.sidefx.com/docs/hengine1.9/index.html) [sidefx.com] Am I looking on the correct page, or were these functions only added in HE2.0?
- 
                               
                                
                                
 - damian
 - Member
 - 402 posts
 - Joined: March 2013
 - Offline
 
- 
                    
- Quick Links
 
 

