Akabane Posted May 3, 2010 Share Posted May 3, 2010 (edited) Hi, i'm trying to use the vars $HITID and $PSTATE to drive a stamp variable on a copy SOP, but it states that it's an Undefined Variable. But it's not! I see those attributes in the spreadsheet of the pop entering the copy sop. Of course i set "use template point attributes" and "copy local variables" but no luck. Any other vars, like $ID or the 3 of $V work...any tips? EDIT: Just saw the helpcard of Copy, it seems that hitid, pstate etc are not computed, but it's possible that i can only use the attrs stated in the help of the node? Edited May 4, 2010 by Akabane Quote Link to comment Share on other sites More sharing options...
graham Posted May 3, 2010 Share Posted May 3, 2010 The attributes stated in the help card are just ones that that current operator supports. Some operators don't support various variables. Also, getting actual variable references out of POPs can be hit or miss. You can use a point() expression to reference the attribute values from the template geometry instead of the variable. For example, point(opinputpath(".", 1), $PT, "pstate", 0) instead of $PSTATE. Quote Link to comment Share on other sites More sharing options...
Akabane Posted May 4, 2010 Author Share Posted May 4, 2010 Thanks, it works flawlessly! A curiosity anyway, can i use this expression to create a new attribute called $PSTATE (for example) outside of the pops, overriding the original one, making it accessible outside? Thanks again, didn't know about point() Quote Link to comment Share on other sites More sharing options...
anim Posted May 4, 2010 Share Posted May 4, 2010 you can create Attribute Create SOP Name: pstate Variable: PSTATE Class: Point Type: Integer Write Values: off this will only update variable mappings since Write Values is off it will use values from POPs Quote Link to comment Share on other sites More sharing options...
cabra Posted May 17, 2010 Share Posted May 17, 2010 (edited) you can create Attribute Create SOP Name: pstate Variable: PSTATE Class: Point Type: Integer Write Values: off this will only update variable mappings since Write Values is off it will use values from POPs Very usefull! thanks! Edited May 17, 2010 by cabra Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.